MCPcopy Create free account
hub / github.com/TanStack/ai / modelToFeature

Function modelToFeature

testing/e2e/src/routes/api.audio.stream.ts:11–19  ·  view source on GitHub ↗
(model: ElevenLabsAudioModel | undefined)

Source from the content-addressed store, hash-verified

9// only in which `music_v1` / `eleven_text_to_sound_v*` model the
10// elevenlabs branch hardcodes.
11function modelToFeature(model: ElevenLabsAudioModel | undefined): Feature {
12 if (
13 model === 'eleven_text_to_sound_v1' ||
14 model === 'eleven_text_to_sound_v2'
15 ) {
16 return 'sound-effects'
17 }
18 return 'audio-gen'
19}
20
21export const Route = createFileRoute('/api/audio/stream')({
22 server: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected