Error streaming back the ResponseFunctionCallArgumentsDoneEvent
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu với ResponseFunctionCallArgumentsDoneEvent tại phần validation được thêm vào khoảng dòng 318 trong commit được liên kết. Tái hiện stream event response.function_call_arguments.done bằng curl request được cung cấp và xác minh rằng event có thể được xử lý khi name bị thiếu; done có nghĩa là lệnh gọi Java streaming API bị lỗi không còn ném OpenAIInvalidDataException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have an API using the responses streaming API. I am using it to route requests to specific tools, however after upgrading to 4.0+ these calls are failing with: java.util.concurrent.CompletionException: com.openai.errors.OpenAIInvalidDataException: name is not set
It looks like the issue was introduced here on line 318 of the ResponseFunctionCallArgumentsDoneEvent: https://github.com/openai/openai-java/commit/d58091bb3f9971f1354bcab8bff26bfe6efa4ad4#diff-d211a6e0ed129a3b2af84098071931cd23c4f078d175146d241dd15bf1cb9731R318
Now it is validating that name is set in this event, however OpenAI is not setting it in this use case.
You can see with this CURL, the streamed back event does not have name set.
curl -i -X POST \ -H "Authorization:Bearer <INSERT CLIENT ID>" \ -H "Content-Type:application/json" \ -d \ '{ "input": [ { "content": "What is the current situation in Minnesota?", "role": "user", "type": "message" } ], "instructions": "You act as the central router, deciding which specialized agent should handle the user\''s request based on the request itself and the conversational context.", "model": "gpt-4.1-mini", "store": false, "temperature": 0.2, "tool_choice": "auto", "tools": [ { "name": "transfer_to_location_intel_agent", "parameters": { "type": "object", "properties": { }, "additionalProperties": false, "required": [ ] }, "strict": true, "type": "function", "description": "Handoff to the location_intel_agent agent to handle the request." } ], "top_p": 0.1, "stream": true }' \ 'https://api.openai.com/v1/responses'
And here is the event:
event: response.function_call_arguments.done data: {"type":"response.function_call_arguments.done","arguments":"{}","item_id":"fc_071179986c0b4d5f016977cf066b3481939993c816cc22819c","output_index":0,"sequence_number":4}
- Ngôn ngữ chính
- Kotlin
- Star
- 1.5k
- Fork
- 264
- Merge trung bình
- 13 giờ 51 phút
- Pull request đã merge (30 ngày)
- 113
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openai/openai-java
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/openai-java#886 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openai/openai-java#802 · 2 bình luận · 3 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openai/openai-java#755 · 1 bình luận ·
-
bug sdk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openai/openai-java#652 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
openai/openai-java#973 ·
Tất cả issue của openai/openai-java
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Richie97/track-history#325 ·
-
bug CLI documentation reliability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
KW-related Type:bug UI / UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RevenueCat/purchases-android#4299 · 1 bình luận ·
-
[Bug] 统计页面无法重置token和汇率 Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AAswordman/Operit#1265 · 3 bình luận ·