[BOT ISSUE] RubyLLM embed, paint, and transcribe APIs not instrumented
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- ruby
调研方向
先查看 lib/braintrust/contrib/ruby_llm/patcher.rb 和 lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb,了解现有的 ChatPatcher 和 Chat#complete instrumentation。然后检查 lib/braintrust/contrib/ruby_llm/integration.rb,该文件目前只注册 ChatPatcher。完成的标准是:RubyLLM.embed、RubyLLM.paint 和 RubyLLM.transcribe 与现有的 chat API 一起完成 instrumentation。
由索引模型根据 Issue 内容生成。
描述
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
- RubyLLM GitHub: https://github.com/crmne/ruby_llm
- RubyLLM docs for embeddings: https://rubyllm.com/guides/embeddings
- RubyLLM docs for image generation: https://rubyllm.com/guides/image-generation
- RubyLLM docs for audio transcription: https://rubyllm.com/guides/audio-transcription
- RubyLLM changelog: https://github.com/crmne/ruby_llm/releases — all three features predate the 1.8 minimum version
Local repo files inspected
lib/braintrust/contrib/ruby_llm/patcher.rb— defines onlyChatPatcher, noEmbeddingPatcher,ImagePatcher, orTranscriptionPatcherlib/braintrust/contrib/ruby_llm/instrumentation/chat.rb— only wrapsChat#completeandChat#execute_toollib/braintrust/contrib/ruby_llm/integration.rb— registers only theChatPatcher
- 主要语言
- Ruby
- 星标
- 9
- 派生
- 11
- 平均合并
- 3 天 43 分钟
- 30 天内合并 PR
- 9
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
braintrustdata/braintrust-sdk-ruby 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
braintrustdata/braintrust-sdk-ruby#155 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
braintrustdata/braintrust-sdk-ruby#143 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
braintrustdata/braintrust-sdk-ruby#137 ·
维护者通常 1 天内回复
-
ruby
难度 3/5 半天 新手友好度 62/100
braintrustdata/braintrust-sdk-ruby#229 ·
维护者通常 1 天内回复
-
ruby
难度 3/5 1-2 天 新手友好度 45/100
braintrustdata/braintrust-sdk-ruby#228 ·
维护者通常 1 天内回复
查看 braintrustdata/braintrust-sdk-ruby 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 85/100
temporalio/sdk-ruby#625 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 94/100
zerocracy/judges-action#2803 ·
维护者通常 5 天内回复
-
empty tone.rb未关闭
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 1/5 1-3 小时 新手友好度 92/100