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

Missing `name` field in Realtime function-call event in OpenAPI spec breaks generated SDK models

Abierto
#683 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java, openapi

Línea de trabajo

Comienza con el esquema de OpenAPI y la documentación del evento de Realtime response.function_call_arguments.done, utilizando como contexto la referencia enlazada de la Realtime API. Confirma que el evento incluye name como una cadena, luego vuelve a generar los modelos afectados del Java SDK y verifica que el modelo generado represente el payload del servidor.

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

Descripción

bug spec

Summary

The Realtime API returns a name field in the response.function_call_arguments.done event payload, but this field is not documented and not present in the OpenAPI spec. Because the Java SDK is generated from the spec, the resulting model does not include the field, causing incomplete deserialization and forcing manual workarounds.

This is a Bug + Spec fix + Enhancement issue.


Impacted Endpoint / Event

response.function_call_arguments.done (Realtime API)

Docs reference:
https://platform.openai.com/docs/api-reference/realtime-server-events/response/function_call_arguments/done


Current Docs & Spec Behavior

Docs example (no name field):

{
  "event_id": "event_5556",
  "type": "response.function_call_arguments.done",
  "response_id": "resp_002",
  "item_id": "fc_001",
  "output_index": 0,
  "call_id": "call_001",
  "arguments": "{\"location\": \"San Francisco\"}"
}

Actual Server Behavior

Actual Realtime events include a name field, for example:

{
  "type": "response.function_call_arguments.done",
  "name": "getWeather",
  ...
}

Expectation

The OpenAPI spec and documentation should include the name field so that SDK models (including Java) correctly represent function-calling data.


Impact / Severity

Severity: B — Major (workaround possible but painful)

Consequences:

  • Generated models are incomplete

  • Function name context is lost

  • Cannot rely on strongly-typed SDK

  • Cannot round-trip Realtime function-calling data via SDK


Workaround

Currently working around this by parsing raw JSON event payloads.


Root Cause

Spec / docs mismatch → incorrect OpenAPI → incorrect SDK generation.


Proposed Fix

  • Add name: string to the response.function_call_arguments.* events in the OpenAPI specification and documentation

  • Regenerate affected SDKs (Java + others)


Environment

Component | Value -- | -- SDK | openai-java v4.16.1 Java | 21 OS | Windows 11

Type of Issue

  • Bug

  • Spec / Documentation

  • Enhancement (generated SDK)


Why Combined

Fixing the spec resolves the SDK issue automatically without needing separate work.


Closing Note

This issue makes Realtime function-calling harder to use via strongly-typed models. Aligning the spec/docs with server behavior would resolve the bug and improve developer ergonomics across generator-based SDKs.

Thanks! 🙏

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.