Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BOT ISSUE] RubyLLM embed, paint, and transcribe APIs not instrumented

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
ruby
Lĩnh vực
observability

Hướng nghiên cứu

Bắt đầu với lib/braintrust/contrib/ruby_llm/patcher.rb và lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb để hiểu instrumentation hiện có của ChatPatcher và Chat#complete. Sau đó kiểm tra lib/braintrust/contrib/ruby_llm/integration.rb, hiện chỉ đăng ký ChatPatcher. Công việc được xem là hoàn tất khi RubyLLM.embed, RubyLLM.paint và RubyLLM.transcribe được instrument cùng với các chat API hiện có.

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

Mô tả

Summary

RubyLLM provides three AI inference APIs beyond chat completions — RubyLLM.embed, RubyLLM.paint, and RubyLLM.transcribe — none of which are instrumented by this SDK. The current RubyLLM integration only instruments Chat#complete and Chat#execute_tool.

What is missing

1. Embeddings — RubyLLM::Embedding.embed / RubyLLM.embed

Creates vector embeddings from text. Returns an Embedding object with vectors, model, and input_tokens. Supports provider/model selection and dimensions parameter. This is a core inference API used for RAG and semantic search.

2. Image generation — RubyLLM::Image.paint / RubyLLM.paint

Generates images from text prompts. Returns an Image object with url, data, mime_type, revised_prompt, model_id. Supports model/provider/size selection.

3. Audio transcription — RubyLLM::Transcription.transcribe / RubyLLM.transcribe

Converts audio files to text. Returns a Transcription object with text, model, language, duration, segments, input_tokens, output_tokens. Has built-in token tracking useful for cost attribution.

All three are stable public APIs available since RubyLLM 1.8+ (the minimum version this SDK targets). Each is a single-method call with a simple request/response pattern (no streaming), making instrumentation straightforward.

Braintrust docs status

not_found — The Braintrust RubyLLM integration docs at https://www.braintrust.dev/docs/integrations/ai-sdks/ruby-llm describe support for chat completions across multiple providers and tool/function call tracing but do not mention embeddings, image generation, or transcription.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/ruby_llm/patcher.rb — defines only ChatPatcher, no EmbeddingPatcher, ImagePatcher, or TranscriptionPatcher
  • lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb — only wraps Chat#complete and Chat#execute_tool
  • lib/braintrust/contrib/ruby_llm/integration.rb — registers only the ChatPatcher
Ngôn ngữ chính
Ruby
Star
9
Fork
10
Merge trung bình
22 giờ 10 phút
Pull request đã merge (30 ngày)
6

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 braintrustdata/braintrust-sdk-ruby

Tất cả issue của braintrustdata/braintrust-sdk-ruby

Issue tương tự

Thêm issue về Ruby

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.