Skip to content

Commit

Permalink
✨ feat: add online search support for available providers (#6475)
Browse files Browse the repository at this point in the history
* ✨ feat: add online search support for available providers

* 🔨 chore: rollback changes for minimax
  • Loading branch information
hezhijie0327 authored Feb 27, 2025
1 parent 257a87e commit cb0a3bc
Show file tree
Hide file tree
Showing 15 changed files with 302 additions and 30 deletions.
4 changes: 4 additions & 0 deletions src/config/aiModels/ai360.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const ai360ChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 8000,
description:
Expand All @@ -64,6 +65,9 @@ const ai360ChatModels: AIChatModelCard[] = [
input: 2,
output: 5,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
Expand Down
16 changes: 16 additions & 0 deletions src/config/aiModels/baichuan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const baichuanChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_768,
description:
Expand All @@ -17,11 +18,15 @@ const baichuanChatModels: AIChatModelCard[] = [
input: 100,
output: 100,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_768,
description:
Expand All @@ -35,11 +40,15 @@ const baichuanChatModels: AIChatModelCard[] = [
input: 15,
output: 15,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_768,
description:
Expand All @@ -53,11 +62,15 @@ const baichuanChatModels: AIChatModelCard[] = [
input: 0.98,
output: 0.98,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_768,
description:
Expand All @@ -70,6 +83,9 @@ const baichuanChatModels: AIChatModelCard[] = [
input: 12,
output: 12,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
Expand Down
40 changes: 40 additions & 0 deletions src/config/aiModels/hunyuan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const hunyuanChatModels: AIChatModelCard[] = [
type: 'chat',
},
{
abilities: {
search: true,
},
contextWindowTokens: 32_000,
description:
'采用更优的路由策略,同时缓解了负载均衡和专家趋同的问题。长文方面,大海捞针指标达到99.9%。MOE-32K 性价比相对更高,在平衡效果、价格的同时,可对实现对长文本输入的处理。',
Expand All @@ -33,9 +36,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 2,
},
releasedAt: '2025-02-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
search: true,
},
contextWindowTokens: 256_000,
description:
'采用更优的路由策略,同时缓解了负载均衡和专家趋同的问题。长文方面,大海捞针指标达到99.9%。MOE-256K 在长度和效果上进一步突破,极大的扩展了可输入长度。',
Expand All @@ -49,11 +58,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 2,
},
releasedAt: '2025-02-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_000,
description:
Expand All @@ -68,11 +81,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 50,
},
releasedAt: '2025-01-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_000,
description:
Expand All @@ -86,11 +103,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 50,
},
releasedAt: '2025-01-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_000,
description:
Expand All @@ -104,11 +125,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 50,
},
releasedAt: '2025-01-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_000,
description:
Expand All @@ -122,9 +147,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 50,
},
releasedAt: '2024-11-20',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
search: true,
},
contextWindowTokens: 32_000,
description:
'Hunyuan-large 模型总参数量约 389B,激活参数量约 52B,是当前业界参数规模最大、效果最好的 Transformer 架构的开源 MoE 模型。',
Expand All @@ -138,9 +169,15 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 12,
},
releasedAt: '2025-02-10',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
search: true,
},
contextWindowTokens: 134_000,
description:
'擅长处理长文任务如文档摘要和文档问答等,同时也具备处理通用文本生成任务的能力。在长文本的分析和生成上表现优异,能有效应对复杂和详尽的长文内容处理需求。',
Expand All @@ -154,6 +191,9 @@ const hunyuanChatModels: AIChatModelCard[] = [
output: 18,
},
releasedAt: '2024-12-18',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
Expand Down
32 changes: 32 additions & 0 deletions src/config/aiModels/moonshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const moonshotChatModels: AIChatModelCard[] = [
{
abilities: {
functionCall: true,
search: true,
vision: true,
},
contextWindowTokens: 131_072,
Expand All @@ -19,11 +20,15 @@ const moonshotChatModels: AIChatModelCard[] = [
output: 60,
},
releasedAt: '2025-02-17',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 131_072,
description:
Expand All @@ -35,11 +40,15 @@ const moonshotChatModels: AIChatModelCard[] = [
input: 60,
output: 60,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 8192,
description:
Expand All @@ -51,11 +60,15 @@ const moonshotChatModels: AIChatModelCard[] = [
input: 12,
output: 12,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 32_768,
description:
Expand All @@ -67,11 +80,15 @@ const moonshotChatModels: AIChatModelCard[] = [
input: 24,
output: 24,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
},
contextWindowTokens: 131_072,
description:
Expand All @@ -83,11 +100,15 @@ const moonshotChatModels: AIChatModelCard[] = [
input: 60,
output: 60,
},
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
vision: true,
},
contextWindowTokens: 8192,
Expand All @@ -101,11 +122,15 @@ const moonshotChatModels: AIChatModelCard[] = [
output: 12,
},
releasedAt: '2025-01-14',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
vision: true,
},
contextWindowTokens: 32_768,
Expand All @@ -119,11 +144,15 @@ const moonshotChatModels: AIChatModelCard[] = [
output: 24,
},
releasedAt: '2025-01-14',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
search: true,
vision: true,
},
contextWindowTokens: 131_072,
Expand All @@ -137,6 +166,9 @@ const moonshotChatModels: AIChatModelCard[] = [
output: 60,
},
releasedAt: '2025-01-14',
settings: {
searchImpl: 'params',
},
type: 'chat',
},
];
Expand Down
Loading

0 comments on commit cb0a3bc

Please sign in to comment.