agentscope-ai / agentscope-ai/agentscope-java

[Bug]: Agentscope will throw an error when OpenAI model providers' services are missing certain non-essential fields.

Đang mở
#157 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/core/model bug
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ả

Some model providers may omit certain parameters in their responses, which can cause Agentscope to throw an error.

Note: Some response parameters are not exposed as they are not relevant to IdeaLab. The specific differences are as follows:

id, object, created, model, system_fingerprint: not provided
choices: consistent with OpenAI, but logprobs is omitted when null
usage: consistent with OpenAI

Exception:

Caused by: com.openai.errors.OpenAIInvalidDataException: `id` is not set
at com.openai.core.JsonField.getRequired$openai_java_core(Values.kt:174)
at com.openai.models.chat.completions.ChatCompletionChunk.id(ChatCompletionChunk.kt:76)

Image

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.