agentscope-ai / agentscope-ai/agentscope-java

[Bug]: OpenAI Api Structured Outputs 报错

オープン
#2,548 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/core/model bug help wanted
主要言語
Java
スター
5.6k
フォーク
1.3k
平均マージ
4日 12時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。