Discussion: Type handling for OpenAI finish_reasons (Ref PR #8028)

Abierto
#8,263 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

This is an open design question, not a task with a defined change. It asks maintainers to decide how the OpenAI integration should handle finish_reasons types (replacing a hasattr() check from closed PR #8028) and whether the gen_ai.response.finish_reasons attribute should be a list[str] or a JSON string, as raised in issue #7873. Wait for a maintainer decision on the format before reading the OpenAI integration code, and only then consider a new PR.

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

Descripción

Waiting for: Product Owner

Hi, following up on closed PR #8028 regarding the OpenAI integration. @alexander-alderman-webb mentioned that using hasattr() isn't the right approach here.

Could you provide guidance on the correct way to handle these types within the integration?

Also, to clarify an unresolved point from @chrikrah on issue #7873: should gen_ai.response.finish_reasons be formatted as a list[str] or a JSON string?

Happy to submit a new PR once we agree on the approach!

Lenguaje dominante
Python
Estrellas
2.2k
Forks
713
Merge medio
1 d 16 min
PR fusionados (30 d)
113

Preparar el entorno

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 getsentry/sentry-python

Todos los issues de getsentry/sentry-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.