-
Notifications
You must be signed in to change notification settings - Fork 117
面试功能最后的格式化错误 #22
Copy link
Copy link
Open
Description
我使用的docker部署的, 我完成了面试的问题后它生成最后的结构化数据的时候出错了,
我看来如果选openai它会有思考字段(我用的openrouter的免费模型qwen3.6), 最后这个生成结构化的数据的时候能不能不使用response_format这种功能, 改用提示词里面定义结构然后尝试从ai回复中提取json数据
Error message: [
{
"expected": "object",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected object, received array"
}
]
at async A (.next/server/chunks/[root-of-the-server]__6718d7cf._.js:1:9877) {
value: [ [Object] ],
context: undefined,
[cause]: Error [ZodError]: [
{
"expected": "object",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected object, received array"
}
]
at ignore-listed frames
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels