Description
Error message:
[
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"received": null,
"code": "invalid_literal",
"expected": "function",
"path": [
"choices",
0,
"delta",
"tool_calls",
0,
"type"
],
"message": "Invalid literal value, expected \"function\""
}
],
"name": "ZodError"
},
{
"issues": [
{
"code": "invalid_type",
"expected": "object",
"received": "undefined",
"path": [
"error"
],
"message": "Required"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
here is chunk
{
"id": "chatcmpl-BRfoGEp7fK6ZJgOFxL1aBjgKCiu2d",
"object": "chat.completion.chunk",
"created": 1745935272,
"model": "o4-mini",
"system_fingerprint": null,
"choices": [
{
"delta": {
"tool_calls": [
{
"index": 0,
"type": null,
"function": {
"arguments": "\":[\""
}
}
]
},
"logprobs": null,
"finish_reason": null,
"index": 0
}
],
"usage": null
}
Description
Error message:
[ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "received": null, "code": "invalid_literal", "expected": "function", "path": [ "choices", 0, "delta", "tool_calls", 0, "type" ], "message": "Invalid literal value, expected \"function\"" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "error" ], "message": "Required" } ], "name": "ZodError" } ], "path": [], "message": "Invalid input" } ]here is chunk
{ "id": "chatcmpl-BRfoGEp7fK6ZJgOFxL1aBjgKCiu2d", "object": "chat.completion.chunk", "created": 1745935272, "model": "o4-mini", "system_fingerprint": null, "choices": [ { "delta": { "tool_calls": [ { "index": 0, "type": null, "function": { "arguments": "\":[\"" } } ] }, "logprobs": null, "finish_reason": null, "index": 0 } ], "usage": null }