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

Đang mở
#8,263 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
observability

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
Python
Star
2.2k
Fork
713
Merge trung bình
1 ngày 16 phút
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-python

Tất cả issue của getsentry/sentry-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.