Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Error streaming back the ResponseFunctionCallArgumentsDoneEvent

Abierto
#682 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
java, kotlin
Área
api

Línea de trabajo

Comienza con ResponseFunctionCallArgumentsDoneEvent en la validación introducida alrededor de la línea 318 en el commit enlazado. Reproduce el evento de stream response.function_call_arguments.done usando la solicitud curl proporcionada y verifica que el evento pueda procesarse cuando name está ausente; done significa que la llamada a la Java streaming API que fallaba ya no lanza OpenAIInvalidDataException.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug spec

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}

Lenguaje dominante
Kotlin
Estrellas
1.5k
Forks
264
Merge medio
13 h 31 min
PR fusionados (30 d)
89

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openai/openai-java

Todos los issues de openai/openai-java

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.