Skip to content

Add openAI websearch and claude 4 to modelproviders #7988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/config/aiModels/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,28 @@ export const openaiChatModels: AIChatModelCard[] = [
releasedAt: '2024-07-18',
type: 'chat',
},
{
abilities: {
functionCall: false,
search: true,
},
contextWindowTokens: 128_000,
description: 'GPT-4o mini search preview 是一个专门为搜索功能优化的预览版本,具有增强的网络搜索能力和实时信息检索功能。',
displayName: 'GPT-4o mini Search Preview',
enabled: true,
id: 'gpt-4o-mini-search-preview',
maxOutput: 16_384,
pricing: {
cachedInput: 0.075,
input: 0.15,
output: 0.6,
},
releasedAt: '2024-12-01',
settings: {
searchImpl: 'tool',
},
type: 'chat',
},
{
abilities: {
functionCall: true,
Expand Down
41 changes: 30 additions & 11 deletions src/config/modelProviders/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,44 @@ const Anthropic: ModelProviderCard = {
{
contextWindowTokens: 200_000,
description:
'Claude 3.7 sonnet 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.7 Sonnet 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.7 Sonnet',
'Claude 4 Opus 是 Anthropic 最强大的下一代模型,具有卓越的推理能力和创造力,适用于最复杂的任务和高级分析。',
displayName: 'Claude 4 Opus',
enabled: true,
functionCall: true,
id: 'claude-3-7-sonnet-20250219',
maxOutput: 8192,
id: 'claude-opus-4-20250514',
maxOutput: 32_000,
pricing: {
cachedInput: 0.1,
input: 1,
output: 5,
writeCacheInput: 1.25,
cachedInput: 7.5,
input: 30,
output: 150,
writeCacheInput: 37.5,
},
releasedAt: '2025-02-24',
releasedAt: '2025-05-14',
vision: true,
},
{
contextWindowTokens: 200_000,
description:
'Claude 4 Sonnet 提供了优异的性能和速度平衡,是新一代模型中的理想选择,适用于广泛的企业和创意任务。',
displayName: 'Claude 4 Sonnet',
enabled: true,
functionCall: true,
id: 'claude-sonnet-4-20250514',
maxOutput: 64_000,
pricing: {
cachedInput: 1.5,
input: 6,
output: 30,
writeCacheInput: 7.5,
},
releasedAt: '2025-05-14',
vision: true,
},
{
contextWindowTokens: 200_000,
description:
'Claude 3.7 sonnet Extended thinking 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.7 Sonnet 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.7 Sonnet Extended thinking',
'Claude 3.7 sonnet 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.7 Sonnet 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
displayName: 'Claude 3.7 Sonnet',
enabled: true,
functionCall: true,
id: 'claude-3-7-sonnet-20250219',
Expand Down
15 changes: 15 additions & 0 deletions src/config/modelProviders/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ const OpenAI: ModelProviderCard = {
},
vision: true,
},
{
contextWindowTokens: 128_000,
description: 'GPT-4o mini search preview 是一个专门为搜索功能优化的预览版本,具有增强的网络搜索能力和实时信息检索功能。',
displayName: 'GPT-4o mini Search Preview',
enabled: true,
functionCall: true,
id: 'gpt-4o-mini-search-preview',
maxOutput: 16_384,
pricing: {
input: 0.15,
output: 0.6,
},
releasedAt: '2024-12-01',
vision: true,
},
{
contextWindowTokens: 128_000,
description:
Expand Down
Loading