mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-17 13:06:21 +00:00
💄 style: add hunyuan-t1-latest from Hunyuan (#7123)
This commit is contained in:
@@ -3,6 +3,51 @@ import { AIChatModelCard } from '@/types/aiModel';
|
||||
// https://cloud.tencent.com/document/product/1729/104753
|
||||
|
||||
const hunyuanChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 92_000,
|
||||
description:
|
||||
'业内首个超大规模 Hybrid-Transformer-Mamba 推理模型,扩展推理能力,超强解码速度,进一步对齐人类偏好。',
|
||||
displayName: 'Hunyuan T1',
|
||||
enabled: true,
|
||||
id: 'hunyuan-t1-latest',
|
||||
maxOutput: 64_000,
|
||||
pricing: {
|
||||
currency: 'CNY',
|
||||
input: 1,
|
||||
output: 4,
|
||||
},
|
||||
releasedAt: '2025-03-21',
|
||||
settings: {
|
||||
searchImpl: 'params',
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 92_000,
|
||||
description:
|
||||
'全面搭建模型文理科能力,长文本信息捕捉能力强。支持推理解答各种难度的数学/逻辑推理/科学/代码等科学问题。',
|
||||
displayName: 'Hunyuan T1 20250321',
|
||||
id: 'hunyuan-t1-20250321',
|
||||
maxOutput: 64_000,
|
||||
pricing: {
|
||||
currency: 'CNY',
|
||||
input: 1,
|
||||
output: 4,
|
||||
},
|
||||
releasedAt: '2025-03-21',
|
||||
settings: {
|
||||
searchImpl: 'params',
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
contextWindowTokens: 256_000,
|
||||
description:
|
||||
|
||||
@@ -40,6 +40,10 @@ export const LobeHunyuanAI = LobeOpenAICompatibleFactory({
|
||||
'hunyuan-pro',
|
||||
];
|
||||
|
||||
const reasoningKeywords = [
|
||||
'hunyuan-t1',
|
||||
];
|
||||
|
||||
const modelsPage = await client.models.list() as any;
|
||||
const modelList: HunyuanModelCard[] = modelsPage.data;
|
||||
|
||||
@@ -57,7 +61,8 @@ export const LobeHunyuanAI = LobeOpenAICompatibleFactory({
|
||||
|| false,
|
||||
id: model.id,
|
||||
reasoning:
|
||||
knownModel?.abilities?.reasoning
|
||||
reasoningKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
||||
|| knownModel?.abilities?.reasoning
|
||||
|| false,
|
||||
vision:
|
||||
model.id.toLowerCase().includes('vision')
|
||||
|
||||
Reference in New Issue
Block a user