agentscope-ai / agentscope-ai/agentscope-java

[Bug]: OpenAI Api Structured Outputs 报错

Đang mở
#2,548 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/core/model bug help wanted
Ngôn ngữ chính
Java
Star
5.6k
Fork
1.3k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
77

Mô tả

定义返回结构:
@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**

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.