feat: Add Hunyuan TurboS model (launched on February 26)

- Add hunyuan-turbos-latest
- Add hunyuan-embedding
- Fix the issue of the embedding model displaying the internet icon (when the provider fully supports web search)
This commit is contained in:
Jorben 2025-03-01 16:46:30 +08:00 committed by 亢奋猫
parent 94d9b79957
commit d01f793558

View File

@ -1408,6 +1408,18 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
provider: 'hunyuan', provider: 'hunyuan',
name: 'hunyuan-turbo', name: 'hunyuan-turbo',
group: 'Hunyuan' group: 'Hunyuan'
},
{
id: 'hunyuan-turbos-latest',
provider: 'hunyuan',
name: 'hunyuan-turbos-latest',
group: 'Hunyuan'
},
{
id: 'hunyuan-embedding',
provider: 'hunyuan',
name: 'hunyuan-embedding',
group: 'Embedding'
} }
], ],
nvidia: [ nvidia: [
@ -1858,6 +1870,12 @@ export function isWebSearchModel(model: Model): boolean {
return false return false
} }
const isEmbedding = isEmbeddingModel(model)
if (isEmbedding) {
return false
}
if (provider?.type === 'openai') { if (provider?.type === 'openai') {
if (model?.id?.includes('gemini-2.0-flash-exp')) { if (model?.id?.includes('gemini-2.0-flash-exp')) {
return true return true