@langchain/openai 0.0.23 → 0.0.24

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.
@@ -818,7 +818,7 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
818
818
  }
819
819
  else {
820
820
  openAIFunctionDefinition = {
821
- name: functionName,
821
+ name: schema.title ?? functionName,
822
822
  description: schema.description ?? "",
823
823
  parameters: schema,
824
824
  };
@@ -814,7 +814,7 @@ export class ChatOpenAI extends BaseChatModel {
814
814
  }
815
815
  else {
816
816
  openAIFunctionDefinition = {
817
- name: functionName,
817
+ name: schema.title ?? functionName,
818
818
  description: schema.description ?? "",
819
819
  parameters: schema,
820
820
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {