revert(asr): restore asr files to previous commit
This commit is contained in:
parent
5cfb0ad193
commit
9759e39385
2 changed files with 4 additions and 46 deletions
|
|
@ -24,8 +24,8 @@ func supportsAudioTranscription(model string) bool {
|
|||
|
||||
switch protocol {
|
||||
case "openai", "azure", "azure-openai",
|
||||
"litellm", "openrouter", "groq", "zhipu", "gemini", "nvidia", "venice",
|
||||
"ollama", "lmstudio", "moonshot", "shengsuanyun", "deepseek", "cerebras",
|
||||
"litellm", "openrouter", "groq", "zhipu", "gemini", "nvidia",
|
||||
"ollama", "moonshot", "shengsuanyun", "deepseek", "cerebras",
|
||||
"vivgrid", "volcengine", "vllm", "qwen", "qwen-intl", "qwen-international", "dashscope-intl",
|
||||
"qwen-us", "dashscope-us", "mistral", "avian", "minimax", "longcat", "modelscope", "novita",
|
||||
"coding-plan", "alibaba-coding", "qwen-coding":
|
||||
|
|
@ -45,8 +45,8 @@ func supportsWhisperTranscription(model string) bool {
|
|||
protocol, _ := providers.ExtractProtocol(model)
|
||||
|
||||
switch protocol {
|
||||
case "openai", "litellm", "openrouter", "groq", "zhipu", "gemini", "nvidia", "venice",
|
||||
"ollama", "lmstudio", "moonshot", "shengsuanyun", "deepseek", "cerebras",
|
||||
case "openai", "litellm", "openrouter", "groq", "zhipu", "gemini", "nvidia",
|
||||
"ollama", "moonshot", "shengsuanyun", "deepseek", "cerebras",
|
||||
"vivgrid", "volcengine", "vllm", "qwen", "qwen-intl", "qwen-international", "dashscope-intl",
|
||||
"qwen-us", "dashscope-us", "mistral", "avian", "minimax", "longcat", "modelscope", "novita",
|
||||
"coding-plan", "alibaba-coding", "qwen-coding", "mimo":
|
||||
|
|
|
|||
|
|
@ -74,20 +74,6 @@ func TestDetectTranscriber(t *testing.T) {
|
|||
},
|
||||
wantName: "whisper",
|
||||
},
|
||||
{
|
||||
name: "lmstudio whisper alias selects whisper transcriber",
|
||||
cfg: &config.Config{
|
||||
Voice: config.VoiceConfig{ModelName: "my-asr-model"},
|
||||
ModelList: []*config.ModelConfig{
|
||||
{
|
||||
ModelName: "my-asr-model",
|
||||
Model: "lmstudio/whisper-1",
|
||||
APIKeys: config.SimpleSecureStrings("sk-lmstudio-model"),
|
||||
},
|
||||
},
|
||||
},
|
||||
wantName: "whisper",
|
||||
},
|
||||
{
|
||||
name: "whisper via model list fallback",
|
||||
cfg: &config.Config{
|
||||
|
|
@ -116,34 +102,6 @@ func TestDetectTranscriber(t *testing.T) {
|
|||
},
|
||||
wantName: "audio-model",
|
||||
},
|
||||
{
|
||||
name: "voice model name selects venice audio model transcriber",
|
||||
cfg: &config.Config{
|
||||
Voice: config.VoiceConfig{ModelName: "voice-venice"},
|
||||
ModelList: []*config.ModelConfig{
|
||||
{
|
||||
ModelName: "voice-venice",
|
||||
Model: "venice/venice-uncensored",
|
||||
APIKeys: config.SimpleSecureStrings("venice-key"),
|
||||
},
|
||||
},
|
||||
},
|
||||
wantName: "audio-model",
|
||||
},
|
||||
{
|
||||
name: "voice model name selects lmstudio audio model transcriber",
|
||||
cfg: &config.Config{
|
||||
Voice: config.VoiceConfig{ModelName: "voice-lmstudio"},
|
||||
ModelList: []*config.ModelConfig{
|
||||
{
|
||||
ModelName: "voice-lmstudio",
|
||||
Model: "lmstudio/openai/gpt-4o-audio-preview",
|
||||
APIKeys: config.SimpleSecureStrings("sk-lmstudio-model"),
|
||||
},
|
||||
},
|
||||
},
|
||||
wantName: "audio-model",
|
||||
},
|
||||
{
|
||||
name: "voice model name selects azure audio model transcriber",
|
||||
cfg: &config.Config{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue