Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[bot] HuggingFace Inference `textToImage()` not instrumented

オープン
#1,877 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
huggingface, typescript
領域
observability

調査の方向性

まず、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 for chatCompletion, chatCompletionStream, textGeneration, textGenerationStream, and featureExtraction. No config for textToImage.
  • Channels (js/src/instrumentation/plugins/huggingface-channels.ts): No channel definition for textToImage.
  • Plugin (js/src/instrumentation/plugins/huggingface-plugin.ts): No handler for image generation calls.

Upstream reference

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 — no textToImage config entry
  • js/src/instrumentation/plugins/huggingface-channels.ts — no textToImage channel
  • js/src/instrumentation/plugins/huggingface-plugin.ts — no image generation handler
  • js/src/vendor-sdk-types/huggingface.ts — no textToImage types
  • e2e/scenarios/huggingface-instrumentation/ — no image generation test scenarios
主要言語
TypeScript
スター
29
フォーク
16
平均マージ
1日 20時間
マージ済み PR(30日)
70

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

braintrustdata/braintrust-sdk-javascript のほかの issue

braintrustdata/braintrust-sdk-javascript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。