agentscope-ai / agentscope-ai/agentscope-java

[Bug]: OpenAI Api Structured Outputs 报错

未關閉
#2,548 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area/core/model bug help wanted
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

定义返回结构:
@Data
public static class Test {
String name;
int age;
}

调用: agent.call(msg,Test.class)
报错:
{"message":"{\n \"error\": {\n \"message\": \"Invalid schema for response_format 'generate_response': In context=(), 'additionalProperties' is required to be supplied and to be false.\",\n \"type\": \"invalid_request_error\",\n \"param\": \"response_format\",\n \"code\": null\n }\n}","retcode":40000})

备注:只有 openai 的 api 有这个问题, gemini ,qwen 都没有这个问题
**'additionalProperties' is required to be supplied and to be false**

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。