@langchain/openai 0.5.11 → 0.5.12
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.
- package/dist/chat_models.cjs +1 -1
- package/dist/chat_models.js +1 -1
- package/package.json +3 -3
package/dist/chat_models.cjs
CHANGED
|
@@ -300,7 +300,7 @@ function _convertMessagesToOpenAIResponsesParams(messages, model, zdrEnabled) {
|
|
|
300
300
|
return {
|
|
301
301
|
type: "function_call_output",
|
|
302
302
|
call_id: toolMessage.tool_call_id,
|
|
303
|
-
id: toolMessage.id,
|
|
303
|
+
id: toolMessage.id?.startsWith("fc_") ? toolMessage.id : undefined,
|
|
304
304
|
output: typeof toolMessage.content !== "string"
|
|
305
305
|
? JSON.stringify(toolMessage.content)
|
|
306
306
|
: toolMessage.content,
|
package/dist/chat_models.js
CHANGED
|
@@ -295,7 +295,7 @@ function _convertMessagesToOpenAIResponsesParams(messages, model, zdrEnabled) {
|
|
|
295
295
|
return {
|
|
296
296
|
type: "function_call_output",
|
|
297
297
|
call_id: toolMessage.tool_call_id,
|
|
298
|
-
id: toolMessage.id,
|
|
298
|
+
id: toolMessage.id?.startsWith("fc_") ? toolMessage.id : undefined,
|
|
299
299
|
output: typeof toolMessage.content !== "string"
|
|
300
300
|
? JSON.stringify(toolMessage.content)
|
|
301
301
|
: toolMessage.content,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/openai",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"description": "OpenAI integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@azure/identity": "^4.2.1",
|
|
48
48
|
"@jest/globals": "^29.5.0",
|
|
49
|
-
"@langchain/core": "
|
|
49
|
+
"@langchain/core": "0.3.57",
|
|
50
50
|
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
51
51
|
"@langchain/standard-tests": "0.0.0",
|
|
52
52
|
"@swc/core": "^1.3.90",
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
"index.d.ts",
|
|
104
104
|
"index.d.cts"
|
|
105
105
|
]
|
|
106
|
-
}
|
|
106
|
+
}
|