Commit 823e2630 by Seefs Committed by GitHub

fix(channels): classify Qwen TTS models correctly (#6711)

parent 2399de97
...@@ -38,7 +38,6 @@ const MODEL_CATEGORY_RULES: readonly ModelCategoryRule[] = [ ...@@ -38,7 +38,6 @@ const MODEL_CATEGORY_RULES: readonly ModelCategoryRule[] = [
'codex-', 'codex-',
'dall-e-', 'dall-e-',
'whisper-', 'whisper-',
'tts-',
'omni-moderation-', 'omni-moderation-',
'text-moderation-', 'text-moderation-',
'text-embedding-ada-', 'text-embedding-ada-',
...@@ -51,7 +50,7 @@ const MODEL_CATEGORY_RULES: readonly ModelCategoryRule[] = [ ...@@ -51,7 +50,7 @@ const MODEL_CATEGORY_RULES: readonly ModelCategoryRule[] = [
'computer-use-preview', 'computer-use-preview',
'sora', 'sora',
], ],
pattern: /(?:^|[/.:])o(?:1|3|4)(?=$|[-.:])/, pattern: /(?:^|[/.:])(?:o(?:1|3|4)(?=$|[-.:])|tts-)/,
}, },
{ name: 'Anthropic', keywords: ['anthropic', 'claude'] }, { name: 'Anthropic', keywords: ['anthropic', 'claude'] },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment