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

Aperta
#8,263 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
observability

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Python
Stelle
2.2k
Fork
713
Merge medio
1g 16m
PR unite (30g)
113

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-python

Tutte le issue di getsentry/sentry-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.