@langchain/openai 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -754,7 +754,7 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
754
754
  {
755
755
  type: "function",
756
756
  function: {
757
- name,
757
+ name: functionName,
758
758
  description: asZodSchema.description,
759
759
  parameters: asZodSchema,
760
760
  },
@@ -778,7 +778,7 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
778
778
  {
779
779
  type: "function",
780
780
  function: {
781
- name,
781
+ name: functionName,
782
782
  description: schema.description,
783
783
  parameters: schema,
784
784
  },
@@ -787,7 +787,7 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
787
787
  tool_choice: {
788
788
  type: "function",
789
789
  function: {
790
- name,
790
+ name: functionName,
791
791
  },
792
792
  },
793
793
  });
@@ -750,7 +750,7 @@ export class ChatOpenAI extends BaseChatModel {
750
750
  {
751
751
  type: "function",
752
752
  function: {
753
- name,
753
+ name: functionName,
754
754
  description: asZodSchema.description,
755
755
  parameters: asZodSchema,
756
756
  },
@@ -774,7 +774,7 @@ export class ChatOpenAI extends BaseChatModel {
774
774
  {
775
775
  type: "function",
776
776
  function: {
777
- name,
777
+ name: functionName,
778
778
  description: schema.description,
779
779
  parameters: schema,
780
780
  },
@@ -783,7 +783,7 @@ export class ChatOpenAI extends BaseChatModel {
783
783
  tool_choice: {
784
784
  type: "function",
785
785
  function: {
786
- name,
786
+ name: functionName,
787
787
  },
788
788
  },
789
789
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {