You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion: Type handling for OpenAI finish_reasons (Ref PR #8028) #8263
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!
Activity
linear-code commentedon Nov 12, 2026
PY-3076