Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#136 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
ruby
Ambito
observability

Direzione di ricerca

Inizia da lib/braintrust/contrib/ruby_llm/patcher.rb e lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb per comprendere l’instrumentazione esistente di ChatPatcher e Chat#complete. Poi esamina lib/braintrust/contrib/ruby_llm/integration.rb, che attualmente registra solo ChatPatcher. Il lavoro è completo quando RubyLLM.embed, RubyLLM.paint e RubyLLM.transcribe sono strumentati insieme alle API chat esistenti.

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

Descrizione

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
Lingua principale
Ruby
Stelle
9
Fork
10
Merge medio
22h 10m
PR unite (30g)
6

Guida per i contributori

Apri la guida per i contributori

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

Tutte le issue di braintrustdata/braintrust-sdk-ruby

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.