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:
parent
94d9b79957
commit
d01f793558
@ -1408,6 +1408,18 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user