[bot] HuggingFace Inference `textToImage()` not instrumented
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- huggingface, typescript
調査の方向性
まず、js/src/auto-instrumentations/configs/huggingface.ts、js/src/instrumentation/plugins/huggingface-channels.ts、js/src/instrumentation/plugins/huggingface-plugin.ts にある既存のメソッドエントリを比較し、次に js/src/vendor-sdk-types/huggingface.ts を確認します。参照として既存の e2e/scenarios/huggingface-instrumentation/ のカバレッジを実行します。textToImage が対応するテストカバレッジとともに期待される Braintrust span を生成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The @huggingface/inference SDK provides a textToImage() method for AI-powered image generation (Stable Diffusion, FLUX, etc.), but the auto-instrumentation does not cover it. Calls to textToImage() produce no Braintrust spans, while the five other HuggingFace Inference methods — chatCompletion, chatCompletionStream, textGeneration, textGenerationStream, and featureExtraction — are all instrumented.
What instrumentation is missing
- Auto-instrumentation config (
js/src/auto-instrumentations/configs/huggingface.ts): Defines configs forchatCompletion,chatCompletionStream,textGeneration,textGenerationStream, andfeatureExtraction. No config fortextToImage. - Channels (
js/src/instrumentation/plugins/huggingface-channels.ts): No channel definition fortextToImage. - Plugin (
js/src/instrumentation/plugins/huggingface-plugin.ts): No handler for image generation calls.
Upstream reference
@huggingface/inferenceSDK: https://huggingface.co/docs/huggingface.js/en/inference/README- npm package: https://www.npmjs.com/package/@huggingface/inference (latest v4.13.15)
textToImage(params)accepts{ model, inputs, parameters }and returns a generated imageBlob.- Supports models like
stabilityai/stable-diffusion-xl-base-1.0,black-forest-labs/FLUX.1-schnell, and other Diffusers-based models. - Works across all HuggingFace Inference Providers (serverless, dedicated, AWS, Google, Azure).
- This is a stable API method — not experimental or deprecated.
Braintrust docs status
not_found — The Braintrust docs do not list specific HuggingFace Inference methods. textToImage is not mentioned.
Precedent in this repo
Image generation instrumentation gaps are tracked for other providers:
- OpenAI
images.generate(): BT-4495 - Google GenAI
models.generateImages(): BT-4562 - Vercel AI SDK
generateImage(): BT-4468
The five other HuggingFace Inference execution methods are all instrumented, making textToImage() the only uninstrumented generative method in the HuggingFace plugin.
Local files inspected
js/src/auto-instrumentations/configs/huggingface.ts— notextToImageconfig entryjs/src/instrumentation/plugins/huggingface-channels.ts— notextToImagechanneljs/src/instrumentation/plugins/huggingface-plugin.ts— no image generation handlerjs/src/vendor-sdk-types/huggingface.ts— notextToImagetypese2e/scenarios/huggingface-instrumentation/— no image generation test scenarios
- 主要言語
- TypeScript
- スター
- 29
- フォーク
- 16
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
braintrustdata/braintrust-sdk-javascript のほかの issue
-
typescript
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
braintrustdata/braintrust-sdk-javascript#2578 ·
メンテナーはふだん 1 日以内に返信
-
typescript
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
braintrustdata/braintrust-sdk-javascript#2577 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
braintrustdata/braintrust-sdk-javascript#2527 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 65/100
braintrustdata/braintrust-sdk-javascript#2526 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
braintrustdata/braintrust-sdk-javascript#2482 ·
メンテナーはふだん 1 日以内に返信
braintrustdata/braintrust-sdk-javascript の issue をすべて見る