From d01f79355852388a7a71f5b1df4544a393e25db7 Mon Sep 17 00:00:00 2001 From: Jorben Date: Sat, 1 Mar 2025 16:46:30 +0800 Subject: [PATCH] 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) --- src/renderer/src/config/models.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index 6a344b69..e6416b8d 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -1408,6 +1408,18 @@ export const SYSTEM_MODELS: Record = { provider: 'hunyuan', name: 'hunyuan-turbo', 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: [ @@ -1858,6 +1870,12 @@ export function isWebSearchModel(model: Model): boolean { return false } + const isEmbedding = isEmbeddingModel(model) + + if (isEmbedding) { + return false + } + if (provider?.type === 'openai') { if (model?.id?.includes('gemini-2.0-flash-exp')) { return true