[bot] OpenAI Live API (`client.live`) not instrumented
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ruby
- Lĩnh vực
- backend-api-design, observability
Hướng nghiên cứu
Start with lib/braintrust/contrib/openai/patcher.rb and the existing files under lib/braintrust/contrib/openai/instrumentation/, especially the Chat and Responses implementations. Compare their instrumentation approach with the Live API create and sessions.fork entry points described here, then check lib/braintrust/contrib.rb for registration. Done means the actionable Live session calls are instrumented with the listed input, metadata, and safe output fields, with session-stream handling scoped as appropriate.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The official openai Ruby gem added a top-level Live API (client.live) in v0.89.0 (2026-09-10, "api: Add Live API"). This is OpenAI's GPT-Live real-time, full-duplex voice-conversation execution surface (spoken input/output, with server-side or client-delegated backend reasoning) — a distinct generative execution path from Chat Completions, Responses, and the already-tracked Realtime API (#206). No Patcher in this repo wraps any part of it.
What is missing
Per the official Ruby API reference (developers.openai.com/api/reference/ruby/resources/live):
client.live.create(session:, transport:, **kwargs)→POST /live/sessions— creates a Live session (returnssession,transport, e.g. an SDP answer for WebRTC). This is the generation-session-initiating call.client.live.sessions.fork(session_id, **kwargs)→POST /live/sessions/{session_id}/fork— forks a live session into a new one, returning a new session/transport pair.client.live.sessions.accept/hangup/refer/reject(session_id, **kwargs)→ SIP-style session lifecycle control.client.live.sessions.download_recording(session_id)→ retrieves the session's recorded audio.- Session interaction itself happens over
ClientEvent/ServerEventstreams (Primary/Sideband/Fork WebSocket connections) once a session is created — analogous to the streaming event model already instrumented for Chat Completions/Responses in this repo, but for a new resource family.
What a span should capture
- Input: session config (
model,audio,clientdelegation settings) passed tolive.create/sessions.fork - Metadata: provider (
openai), sessionid,model,expires_at, transport type - Output: resolved session/transport response (excluding any secret/credential values)
- Given the live/bidirectional nature of the session,
live.create(andsessions.fork) are the actionable, well-defined instrumentation points — matching the pattern already proposed for other session-initiating calls in this repo (e.g. #206 for the Realtime API, #223 for the Agents API)
Braintrust docs status
not_found — Neither https://www.braintrust.dev/docs/integrations/ai-providers/openai nor https://www.braintrust.dev/docs/integrations/sdk-integrations mention "Live API," "GPT-Live," or client.live for any language, including Ruby.
Upstream sources
- openai-ruby CHANGELOG: https://raw.githubusercontent.com/openai/openai-ruby/main/CHANGELOG.md (v0.89.0 "Add Live API")
- Ruby API reference for the Live resource: https://developers.openai.com/api/reference/ruby/resources/live
- GPT-Live getting-started guide: https://developers.openai.com/api/docs/guides/live
Braintrust docs sources checked
- https://www.braintrust.dev/docs/integrations/ai-providers/openai
- https://www.braintrust.dev/docs/integrations/sdk-integrations
Local repo files inspected
lib/braintrust/contrib/openai/patcher.rb— definesChatPatcher,ResponsesPatcher,ModerationsPatcher; no live/session patcherlib/braintrust/contrib/openai/instrumentation/— containschat.rb,responses.rb,moderations.rb,common.rb; nolive.rblib/braintrust/contrib.rb— registers only the three existing OpenAI patchers- Grep for
live,client.live,GPT-Liveacrosslib/braintrust/returns zero relevant matches
- Ngôn ngữ chính
- Ruby
- Star
- 9
- Fork
- 10
- Merge trung bình
- 3 ngày 43 phút
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của braintrustdata/braintrust-sdk-ruby
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
braintrustdata/braintrust-sdk-ruby#155 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BOT ISSUE] OpenAI Chat Completions missing reasoning model and web search metadata parametersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
braintrustdata/braintrust-sdk-ruby#143 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
braintrustdata/braintrust-sdk-ruby#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
braintrustdata/braintrust-sdk-ruby#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ruby
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
braintrustdata/braintrust-sdk-ruby#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của braintrustdata/braintrust-sdk-ruby
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
thewca/worldcubeassociation.org#16088 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ecosyste-ms/repos#1215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
WikiEducationFoundation/WikiEduDashboard#7157 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày