[bot] Vercel AI SDK `experimental_generateSpeech` and `experimental_transcribe` not instrumented
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- typescript
- Ambito
- observability
Direzione di ricerca
Inizia con le voci AI SDK esistenti in js/src/auto-instrumentations/configs/ai-sdk.ts e le definizioni dei canali in js/src/instrumentation/plugins/ai-sdk-channels.ts, quindi segui i relativi handler in ai-sdk-plugin.ts e i tipi in ai-sdk-common.ts. Confronta il wrapper in js/src/wrappers/ai-sdk/ai-sdk.ts e gli scenari e2e esistenti. Il lavoro è completato quando entrambe le funzioni sperimentali producono span Braintrust attraverso i percorsi del plugin e del wrapper, con la copertura del nuovo comportamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The Vercel AI SDK (ai package) exports experimental_generateSpeech (text-to-speech) and experimental_transcribe (speech-to-text) as core functions. Neither the wrapper (wrapAISDK) nor the auto-instrumentation plugin instruments them. Calls to these functions produce no Braintrust spans.
Every other AI SDK core execution function — generateText, streamText, generateObject, streamObject, embed, embedMany, rerank, and the Agent class methods — is fully instrumented, making these the only uninstrumented generative execution functions in the AI SDK plugin.
What instrumentation is missing
- Auto-instrumentation config (
js/src/auto-instrumentations/configs/ai-sdk.ts): No config entries forexperimental_generateSpeechorexperimental_transcribe. Configs exist for 13 other AI SDK functions. - Channels (
js/src/instrumentation/plugins/ai-sdk-channels.ts): No channel definitions for speech generation or transcription. 14 channels are defined for other functions. - Plugin (
js/src/instrumentation/plugins/ai-sdk-plugin.ts): No handler for speech or transcription calls. - Vendor types (
js/src/vendor-sdk-types/ai-sdk-common.ts):AISDKNamespaceBasedoes not includeexperimental_generateSpeechorexperimental_transcribe.
A grep for generateSpeech or transcribe across js/src/ returns zero matches.
Upstream reference
Both functions are documented core exports of the ai package (v6+):
| Function | Description | Reference |
|---|---|---|
experimental_generateSpeech |
Converts text to speech audio using a SpeechModelV3. Accepts model, text, voice, outputFormat, instructions, speed, language. Returns generated audio as base64/Uint8Array with media type. |
https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-speech |
experimental_transcribe |
Generates a text transcript from audio input using a TranscriptionModelV3. Accepts model, audio (string/Uint8Array/ArrayBuffer/URL). Returns transcript text, segments with timing, detected language, and duration. |
https://ai-sdk.dev/docs/reference/ai-sdk-core/transcribe |
Both are imported from 'ai' (the same package instrumented by this repo) and are available in AI SDK v6, which is already instrumented for other functions (ToolLoopAgent.generate, ToolLoopAgent.stream).
Note: Both carry the experimental_ prefix, indicating the API surface may evolve. However, they are documented, functional, and available in the same SDK version that this repo already instruments for other v6-only features.
Braintrust docs status
not_found — The Braintrust AI SDK integration docs do not enumerate specific supported functions. generateSpeech and transcribe are not mentioned.
Precedent in this repo
- AI SDK
generateImageis tracked as a separate gap in #1626. - OpenAI audio APIs (
audio.speech.create,audio.transcriptions.create) are tracked in #1629. - Mistral audio APIs are tracked in #1749.
- Groq audio APIs are tracked in #1864.
- The AI SDK plugin already instruments 13 other core functions across text generation, structured output, embeddings, reranking, and agent execution — speech/transcription is the remaining uninstrumented modality.
Local files inspected
js/src/auto-instrumentations/configs/ai-sdk.ts— no speech/transcribe configsjs/src/instrumentation/plugins/ai-sdk-channels.ts— no speech/transcribe channelsjs/src/instrumentation/plugins/ai-sdk-plugin.ts— no speech/transcribe handlersjs/src/vendor-sdk-types/ai-sdk-common.ts— no speech/transcribe typesjs/src/wrappers/ai-sdk/ai-sdk.ts— no speech/transcribe wrappinge2e/scenarios/ai-sdk-instrumentation/— no speech/transcribe test scenarios
- Lingua principale
- TypeScript
- Stelle
- 27
- Fork
- 13
- Merge medio
- 2g 20h
- PR unite (30g)
- 66
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di braintrustdata/braintrust-sdk-javascript
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di braintrustdata/braintrust-sdk-javascript
Issue simili
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Crush Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ElementsProject/cln-application#167 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Quantco/pnpm-licenses#17 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100