Error streaming back the ResponseFunctionCallArgumentsDoneEvent
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia con ResponseFunctionCallArgumentsDoneEvent nella validazione introdotta intorno alla riga 318 nel commit collegato. Riproduci l’evento di stream response.function_call_arguments.done usando la richiesta curl fornita e verifica che l’evento possa essere elaborato quando name è assente; done significa che la chiamata alla Java streaming API che falliva non genera più OpenAIInvalidDataException.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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}
- Lingua principale
- Kotlin
- Stelle
- 1.5k
- Fork
- 264
- Merge medio
- 13h 31m
- PR unite (30g)
- 89
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openai/openai-java
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openai/openai-java#890 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openai/openai-java#886 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openai/openai-java#802 · 2 commenti · 3 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openai/openai-java#755 · 1 commento ·
-
bug sdk
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openai/openai-java#652 · 2 commenti ·
Tutte le issue di openai/openai-java
Issue simili
-
[Bug] 统计页面无法重置token和汇率 Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
AAswordman/Operit#1265 · 3 commenti ·
-
Source is down
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
keiyoushi/extensions-source#19317 ·
-
Tambahkan bahasa Indonesia Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
acristescu/OnlineGo#216 ·
-
Remove custom segment colors Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
libre-tube/LibreTube#8803 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100