mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-13 07:40:56 +00:00
fix(channels): classify Qwen TTS models correctly (#6711)
This commit is contained in:
@@ -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[] = [
|
|||||||
'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'] },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user