@lobehub/chat 1.111.1 → 1.111.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/.cursor/rules/code-review.mdc +2 -19
  2. package/.cursor/rules/cursor-ux.mdc +0 -72
  3. package/.cursor/rules/project-introduce.mdc +5 -5
  4. package/.cursor/rules/react-component.mdc +92 -73
  5. package/.cursor/rules/rules-attach.mdc +28 -61
  6. package/.cursor/rules/system-role.mdc +8 -20
  7. package/.cursor/rules/typescript.mdc +55 -14
  8. package/CHANGELOG.md +25 -0
  9. package/changelog/v1.json +5 -0
  10. package/package.json +1 -1
  11. package/packages/types/src/aiModel.ts +67 -46
  12. package/packages/types/src/llm.ts +3 -3
  13. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx +23 -12
  14. package/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx +23 -10
  15. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +21 -12
  16. package/src/config/aiModels/ai21.ts +8 -4
  17. package/src/config/aiModels/ai360.ts +28 -14
  18. package/src/config/aiModels/aihubmix.ts +174 -86
  19. package/src/config/aiModels/anthropic.ts +97 -38
  20. package/src/config/aiModels/azure.ts +54 -32
  21. package/src/config/aiModels/azureai.ts +63 -37
  22. package/src/config/aiModels/baichuan.ts +24 -12
  23. package/src/config/aiModels/bedrock.ts +60 -30
  24. package/src/config/aiModels/cohere.ts +60 -30
  25. package/src/config/aiModels/deepseek.ts +10 -6
  26. package/src/config/aiModels/fireworksai.ts +88 -44
  27. package/src/config/aiModels/giteeai.ts +1 -1
  28. package/src/config/aiModels/github.ts +44 -26
  29. package/src/config/aiModels/google.ts +119 -68
  30. package/src/config/aiModels/groq.ts +48 -24
  31. package/src/config/aiModels/higress.ts +617 -310
  32. package/src/config/aiModels/hunyuan.ts +105 -54
  33. package/src/config/aiModels/infiniai.ts +104 -52
  34. package/src/config/aiModels/internlm.ts +16 -8
  35. package/src/config/aiModels/jina.ts +4 -2
  36. package/src/config/aiModels/minimax.ts +11 -10
  37. package/src/config/aiModels/mistral.ts +40 -20
  38. package/src/config/aiModels/moonshot.ts +42 -22
  39. package/src/config/aiModels/novita.ts +196 -98
  40. package/src/config/aiModels/openai.ts +270 -137
  41. package/src/config/aiModels/openrouter.ts +205 -100
  42. package/src/config/aiModels/perplexity.ts +36 -6
  43. package/src/config/aiModels/ppio.ts +76 -38
  44. package/src/config/aiModels/qwen.ts +257 -133
  45. package/src/config/aiModels/sambanova.ts +56 -28
  46. package/src/config/aiModels/sensenova.ts +100 -50
  47. package/src/config/aiModels/siliconcloud.ts +224 -112
  48. package/src/config/aiModels/stepfun.ts +44 -22
  49. package/src/config/aiModels/taichu.ts +8 -4
  50. package/src/config/aiModels/tencentcloud.ts +12 -6
  51. package/src/config/aiModels/upstage.ts +8 -4
  52. package/src/config/aiModels/v0.ts +15 -12
  53. package/src/config/aiModels/vertexai.ts +49 -27
  54. package/src/config/aiModels/volcengine.ts +110 -51
  55. package/src/config/aiModels/wenxin.ts +179 -73
  56. package/src/config/aiModels/xai.ts +33 -19
  57. package/src/config/aiModels/zeroone.ts +48 -24
  58. package/src/config/aiModels/zhipu.ts +118 -69
  59. package/src/config/modelProviders/ai21.ts +0 -8
  60. package/src/config/modelProviders/ai360.ts +0 -20
  61. package/src/config/modelProviders/anthropic.ts +0 -56
  62. package/src/config/modelProviders/baichuan.ts +0 -30
  63. package/src/config/modelProviders/bedrock.ts +0 -74
  64. package/src/config/modelProviders/deepseek.ts +0 -13
  65. package/src/config/modelProviders/fireworksai.ts +0 -88
  66. package/src/config/modelProviders/google.ts +0 -59
  67. package/src/config/modelProviders/groq.ts +0 -48
  68. package/src/config/modelProviders/higress.ts +0 -727
  69. package/src/config/modelProviders/hunyuan.ts +0 -45
  70. package/src/config/modelProviders/infiniai.ts +0 -60
  71. package/src/config/modelProviders/internlm.ts +0 -8
  72. package/src/config/modelProviders/mistral.ts +0 -48
  73. package/src/config/modelProviders/modelscope.ts +2 -1
  74. package/src/config/modelProviders/openai.ts +5 -100
  75. package/src/config/modelProviders/openrouter.ts +0 -77
  76. package/src/config/modelProviders/ppio.ts +0 -95
  77. package/src/config/modelProviders/qwen.ts +0 -165
  78. package/src/config/modelProviders/sensenova.ts +0 -45
  79. package/src/config/modelProviders/siliconcloud.ts +0 -266
  80. package/src/config/modelProviders/stepfun.ts +0 -60
  81. package/src/config/modelProviders/taichu.ts +0 -10
  82. package/src/config/modelProviders/wenxin.ts +0 -90
  83. package/src/config/modelProviders/xai.ts +0 -16
  84. package/src/config/modelProviders/zeroone.ts +0 -60
  85. package/src/config/modelProviders/zhipu.ts +0 -80
  86. package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +4 -3
  87. package/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts +25 -15
  88. package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts +7 -5
  89. package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts +6 -5
  90. package/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts +54 -8
  91. package/src/server/routers/lambda/agent.ts +2 -2
  92. package/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap +0 -28
  93. package/src/server/services/discover/index.ts +7 -6
  94. package/src/server/services/user/index.ts +1 -2
  95. package/src/utils/__snapshots__/parseModels.test.ts.snap +28 -4
  96. package/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap +0 -8
  97. package/src/utils/parseModels.test.ts +60 -9
  98. package/src/utils/pricing.test.ts +183 -0
  99. package/src/utils/pricing.ts +90 -0
@@ -11,11 +11,6 @@ const Hunyuan: ModelProviderCard = {
11
11
  enabled: true,
12
12
  id: 'hunyuan-lite',
13
13
  maxOutput: 6000,
14
- pricing: {
15
- currency: 'CNY',
16
- input: 0,
17
- output: 0,
18
- },
19
14
  },
20
15
  {
21
16
  contextWindowTokens: 32_000,
@@ -25,11 +20,6 @@ const Hunyuan: ModelProviderCard = {
25
20
  enabled: true,
26
21
  id: 'hunyuan-standard',
27
22
  maxOutput: 2000,
28
- pricing: {
29
- currency: 'CNY',
30
- input: 4.5,
31
- output: 5,
32
- },
33
23
  },
34
24
  {
35
25
  contextWindowTokens: 256_000,
@@ -39,11 +29,6 @@ const Hunyuan: ModelProviderCard = {
39
29
  enabled: true,
40
30
  id: 'hunyuan-standard-256K',
41
31
  maxOutput: 6000,
42
- pricing: {
43
- currency: 'CNY',
44
- input: 15,
45
- output: 60,
46
- },
47
32
  },
48
33
  {
49
34
  contextWindowTokens: 32_000,
@@ -54,11 +39,6 @@ const Hunyuan: ModelProviderCard = {
54
39
  functionCall: true,
55
40
  id: 'hunyuan-turbo',
56
41
  maxOutput: 4000,
57
- pricing: {
58
- currency: 'CNY',
59
- input: 15,
60
- output: 50,
61
- },
62
42
  },
63
43
  {
64
44
  contextWindowTokens: 32_000,
@@ -69,11 +49,6 @@ const Hunyuan: ModelProviderCard = {
69
49
  functionCall: true,
70
50
  id: 'hunyuan-pro',
71
51
  maxOutput: 4000,
72
- pricing: {
73
- currency: 'CNY',
74
- input: 30,
75
- output: 100,
76
- },
77
52
  },
78
53
  {
79
54
  contextWindowTokens: 8000,
@@ -82,11 +57,6 @@ const Hunyuan: ModelProviderCard = {
82
57
  enabled: true,
83
58
  id: 'hunyuan-vision',
84
59
  maxOutput: 4000,
85
- pricing: {
86
- currency: 'CNY',
87
- input: 18,
88
- output: 18,
89
- },
90
60
  vision: true,
91
61
  },
92
62
  {
@@ -96,11 +66,6 @@ const Hunyuan: ModelProviderCard = {
96
66
  displayName: 'Hunyuan Code',
97
67
  id: 'hunyuan-code',
98
68
  maxOutput: 4000,
99
- pricing: {
100
- currency: 'CNY',
101
- input: 4,
102
- output: 8,
103
- },
104
69
  },
105
70
  {
106
71
  contextWindowTokens: 32_000,
@@ -110,11 +75,6 @@ const Hunyuan: ModelProviderCard = {
110
75
  functionCall: true,
111
76
  id: 'hunyuan-functioncall',
112
77
  maxOutput: 4000,
113
- pricing: {
114
- currency: 'CNY',
115
- input: 4,
116
- output: 8,
117
- },
118
78
  },
119
79
  {
120
80
  contextWindowTokens: 8000,
@@ -123,11 +83,6 @@ const Hunyuan: ModelProviderCard = {
123
83
  displayName: 'Hunyuan Role',
124
84
  id: 'hunyuan-role',
125
85
  maxOutput: 4000,
126
- pricing: {
127
- currency: 'CNY',
128
- input: 4,
129
- output: 8,
130
- },
131
86
  },
132
87
  ],
133
88
  checkModel: 'hunyuan-lite',
@@ -11,11 +11,6 @@ const InfiniAI: ModelProviderCard = {
11
11
  displayName: 'DeepSeek R1',
12
12
  enabled: true,
13
13
  id: 'deepseek-r1',
14
- pricing: {
15
- currency: 'CNY',
16
- input: 0,
17
- output: 0,
18
- },
19
14
  },
20
15
  {
21
16
  contextWindowTokens: 65_536,
@@ -24,11 +19,6 @@ const InfiniAI: ModelProviderCard = {
24
19
  displayName: 'DeepSeek V3',
25
20
  enabled: true,
26
21
  id: 'deepseek-v3',
27
- pricing: {
28
- currency: 'CNY',
29
- input: 0,
30
- output: 0,
31
- },
32
22
  },
33
23
  {
34
24
  contextWindowTokens: 65_536,
@@ -37,11 +27,6 @@ const InfiniAI: ModelProviderCard = {
37
27
  displayName: 'QwQ',
38
28
  enabled: true,
39
29
  id: 'qwq-32b',
40
- pricing: {
41
- currency: 'CNY',
42
- input: 0,
43
- output: 0,
44
- },
45
30
  },
46
31
  {
47
32
  contextWindowTokens: 32_768,
@@ -50,11 +35,6 @@ const InfiniAI: ModelProviderCard = {
50
35
  displayName: 'DeepSeek R1 Distill Qwen 32B',
51
36
  enabled: true,
52
37
  id: 'deepseek-r1-distill-qwen-32b',
53
- pricing: {
54
- currency: 'CNY',
55
- input: 0,
56
- output: 0,
57
- },
58
38
  },
59
39
  {
60
40
  contextWindowTokens: 32_768,
@@ -63,11 +43,6 @@ const InfiniAI: ModelProviderCard = {
63
43
  displayName: 'Qwen2.5 72B Instruct',
64
44
  enabled: true,
65
45
  id: 'qwen2.5-72b-instruct',
66
- pricing: {
67
- currency: 'CNY',
68
- input: 0,
69
- output: 0,
70
- },
71
46
  },
72
47
  {
73
48
  contextWindowTokens: 32_768,
@@ -76,11 +51,6 @@ const InfiniAI: ModelProviderCard = {
76
51
  displayName: 'Qwen2.5 32B Instruct',
77
52
  enabled: true,
78
53
  id: 'qwen2.5-32b-instruct',
79
- pricing: {
80
- currency: 'CNY',
81
- input: 0,
82
- output: 0,
83
- },
84
54
  },
85
55
  {
86
56
  contextWindowTokens: 32_768,
@@ -89,11 +59,6 @@ const InfiniAI: ModelProviderCard = {
89
59
  displayName: 'Qwen2.5 Coder 32B Instruct',
90
60
  enabled: true,
91
61
  id: 'qwen2.5-coder-32b-instruct',
92
- pricing: {
93
- currency: 'CNY',
94
- input: 0,
95
- output: 0,
96
- },
97
62
  },
98
63
  {
99
64
  contextWindowTokens: 32_768,
@@ -102,11 +67,6 @@ const InfiniAI: ModelProviderCard = {
102
67
  displayName: 'Qwen2.5 14B Instruct',
103
68
  enabled: true,
104
69
  id: 'qwen2.5-14b-instruct',
105
- pricing: {
106
- currency: 'CNY',
107
- input: 0,
108
- output: 0,
109
- },
110
70
  },
111
71
  {
112
72
  contextWindowTokens: 32_768,
@@ -115,11 +75,6 @@ const InfiniAI: ModelProviderCard = {
115
75
  displayName: 'Qwen2.5 7B Instruct',
116
76
  enabled: true,
117
77
  id: 'qwen2.5-7b-instruct',
118
- pricing: {
119
- currency: 'CNY',
120
- input: 0,
121
- output: 0,
122
- },
123
78
  },
124
79
  {
125
80
  contextWindowTokens: 32_768,
@@ -128,11 +83,6 @@ const InfiniAI: ModelProviderCard = {
128
83
  displayName: 'Qwen 2 72B Instruct',
129
84
  enabled: true,
130
85
  id: 'qwen2-72b-instruct',
131
- pricing: {
132
- currency: 'CNY',
133
- input: 0,
134
- output: 0,
135
- },
136
86
  },
137
87
  {
138
88
  contextWindowTokens: 32_768,
@@ -141,11 +91,6 @@ const InfiniAI: ModelProviderCard = {
141
91
  displayName: 'Qwen 2 7B Instruct',
142
92
  enabled: true,
143
93
  id: 'qwen2-7b-instruct',
144
- pricing: {
145
- currency: 'CNY',
146
- input: 0,
147
- output: 0,
148
- },
149
94
  },
150
95
  {
151
96
  contextWindowTokens: 4096,
@@ -154,11 +99,6 @@ const InfiniAI: ModelProviderCard = {
154
99
  displayName: 'Yi-1.5 34B Chat',
155
100
  enabled: true,
156
101
  id: 'yi-1.5-34b-chat',
157
- pricing: {
158
- currency: 'CNY',
159
- input: 0,
160
- output: 0,
161
- },
162
102
  },
163
103
  ],
164
104
  checkModel: 'qwen2.5-7b-instruct',
@@ -11,10 +11,6 @@ const InternLM: ModelProviderCard = {
11
11
  functionCall: true,
12
12
  id: 'internlm2.5-latest',
13
13
  maxOutput: 4096,
14
- pricing: {
15
- input: 0,
16
- output: 0,
17
- },
18
14
  },
19
15
  {
20
16
  contextWindowTokens: 32_768,
@@ -23,10 +19,6 @@ const InternLM: ModelProviderCard = {
23
19
  functionCall: true,
24
20
  id: 'internlm2-pro-chat',
25
21
  maxOutput: 4096,
26
- pricing: {
27
- input: 0,
28
- output: 0,
29
- },
30
22
  },
31
23
  ],
32
24
  checkModel: 'internlm2.5-latest',
@@ -12,10 +12,6 @@ const Mistral: ModelProviderCard = {
12
12
  enabled: true,
13
13
  functionCall: true,
14
14
  id: 'open-mistral-nemo',
15
- pricing: {
16
- input: 0.15,
17
- output: 0.15,
18
- },
19
15
  },
20
16
  {
21
17
  contextWindowTokens: 128_000,
@@ -25,10 +21,6 @@ const Mistral: ModelProviderCard = {
25
21
  enabled: true,
26
22
  functionCall: true,
27
23
  id: 'mistral-small-latest',
28
- pricing: {
29
- input: 0.2,
30
- output: 0.6,
31
- },
32
24
  },
33
25
  {
34
26
  contextWindowTokens: 128_000,
@@ -38,20 +30,12 @@ const Mistral: ModelProviderCard = {
38
30
  enabled: true,
39
31
  functionCall: true,
40
32
  id: 'mistral-large-latest',
41
- pricing: {
42
- input: 2,
43
- output: 6,
44
- },
45
33
  },
46
34
  {
47
35
  contextWindowTokens: 32_768,
48
36
  description: 'Codestral是专注于代码生成的尖端生成模型,优化了中间填充和代码补全任务。',
49
37
  displayName: 'Codestral',
50
38
  id: 'codestral-latest',
51
- pricing: {
52
- input: 0.2,
53
- output: 0.6,
54
- },
55
39
  },
56
40
  {
57
41
  contextWindowTokens: 128_000,
@@ -61,10 +45,6 @@ const Mistral: ModelProviderCard = {
61
45
  enabled: true,
62
46
  functionCall: true,
63
47
  id: 'pixtral-large-latest',
64
- pricing: {
65
- input: 2,
66
- output: 6,
67
- },
68
48
  vision: true,
69
49
  },
70
50
  {
@@ -74,10 +54,6 @@ const Mistral: ModelProviderCard = {
74
54
  displayName: 'Pixtral 12B',
75
55
  enabled: true,
76
56
  id: 'pixtral-12b-2409',
77
- pricing: {
78
- input: 0.15,
79
- output: 0.15,
80
- },
81
57
  vision: true,
82
58
  },
83
59
  {
@@ -85,20 +61,12 @@ const Mistral: ModelProviderCard = {
85
61
  description: 'Ministral 3B 是Mistral的世界顶级边缘模型。',
86
62
  displayName: 'Ministral 3B',
87
63
  id: 'ministral-3b-latest',
88
- pricing: {
89
- input: 0.04,
90
- output: 0.04,
91
- },
92
64
  },
93
65
  {
94
66
  contextWindowTokens: 128_000,
95
67
  description: 'Ministral 8B 是Mistral的性价比极高的边缘模型。',
96
68
  displayName: 'Ministral 8B',
97
69
  id: 'ministral-8b-latest',
98
- pricing: {
99
- input: 0.1,
100
- output: 0.1,
101
- },
102
70
  },
103
71
  {
104
72
  contextWindowTokens: 32_768,
@@ -106,10 +74,6 @@ const Mistral: ModelProviderCard = {
106
74
  'Mistral 7B是一款紧凑但高性能的模型,擅长批量处理和简单任务,如分类和文本生成,具有良好的推理能力。',
107
75
  displayName: 'Mistral 7B',
108
76
  id: 'open-mistral-7b',
109
- pricing: {
110
- input: 0.25,
111
- output: 0.25,
112
- },
113
77
  },
114
78
  {
115
79
  contextWindowTokens: 32_768,
@@ -117,10 +81,6 @@ const Mistral: ModelProviderCard = {
117
81
  'Mixtral 8x7B是一个稀疏专家模型,利用多个参数提高推理速度,适合处理多语言和代码生成任务。',
118
82
  displayName: 'Mixtral 8x7B',
119
83
  id: 'open-mixtral-8x7b',
120
- pricing: {
121
- input: 0.7,
122
- output: 0.7,
123
- },
124
84
  },
125
85
  {
126
86
  contextWindowTokens: 65_536,
@@ -129,10 +89,6 @@ const Mistral: ModelProviderCard = {
129
89
  displayName: 'Mixtral 8x22B',
130
90
  functionCall: true,
131
91
  id: 'open-mixtral-8x22b',
132
- pricing: {
133
- input: 2,
134
- output: 6,
135
- },
136
92
  },
137
93
  {
138
94
  contextWindowTokens: 256_000,
@@ -140,10 +96,6 @@ const Mistral: ModelProviderCard = {
140
96
  'Codestral Mamba是专注于代码生成的Mamba 2语言模型,为先进的代码和推理任务提供强力支持。',
141
97
  displayName: 'Codestral Mamba',
142
98
  id: 'open-codestral-mamba',
143
- pricing: {
144
- input: 0.15,
145
- output: 0.15,
146
- },
147
99
  },
148
100
  ],
149
101
  checkModel: 'ministral-3b-latest',
@@ -5,7 +5,8 @@ const ModelScope: ModelProviderCard = {
5
5
  chatModels: [
6
6
  {
7
7
  contextWindowTokens: 131_072,
8
- description: 'DeepSeek R1 通过利用增加的计算资源和在后训练过程中引入算法优化机制,显著提高了其推理和推断能力的深度。该模型在各种基准评估中表现出色,包括数学、编程和一般逻辑方面。其整体性能现已接近领先模型,如 O3 和 Gemini 2.5 Pro。',
8
+ description:
9
+ 'DeepSeek R1 通过利用增加的计算资源和在后训练过程中引入算法优化机制,显著提高了其推理和推断能力的深度。该模型在各种基准评估中表现出色,包括数学、编程和一般逻辑方面。其整体性能现已接近领先模型,如 O3 和 Gemini 2.5 Pro。',
9
10
  displayName: 'DeepSeek-R1-0528',
10
11
  enabled: true,
11
12
  functionCall: true,
@@ -14,9 +14,11 @@ const OpenAI: ModelProviderCard = {
14
14
  id: 'gpt-5-mini',
15
15
  maxOutput: 128_000,
16
16
  pricing: {
17
- cachedInput: 0.03,
18
- input: 0.25,
19
- output: 2,
17
+ units: [
18
+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
19
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
20
+ { name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
21
+ ],
20
22
  },
21
23
  releasedAt: '2025-08-07',
22
24
  vision: true,
@@ -29,11 +31,6 @@ const OpenAI: ModelProviderCard = {
29
31
  functionCall: true,
30
32
  id: 'gpt-4.1-mini',
31
33
  maxOutput: 32_768,
32
- pricing: {
33
- cachedInput: 0.1,
34
- input: 0.4,
35
- output: 1.6,
36
- },
37
34
  releasedAt: '2025-04-14',
38
35
  vision: true,
39
36
  },
@@ -45,10 +42,6 @@ const OpenAI: ModelProviderCard = {
45
42
  enabled: true,
46
43
  id: 'o1-mini',
47
44
  maxOutput: 65_536,
48
- pricing: {
49
- input: 3,
50
- output: 12,
51
- },
52
45
  releasedAt: '2024-09-12',
53
46
  },
54
47
  {
@@ -59,10 +52,6 @@ const OpenAI: ModelProviderCard = {
59
52
  enabled: true,
60
53
  id: 'o1-2024-12-17',
61
54
  maxOutput: 100_000,
62
- pricing: {
63
- input: 15,
64
- output: 60,
65
- },
66
55
  releasedAt: '2024-12-17',
67
56
  vision: true,
68
57
  },
@@ -74,10 +63,6 @@ const OpenAI: ModelProviderCard = {
74
63
  enabled: true,
75
64
  id: 'o1-preview',
76
65
  maxOutput: 32_768,
77
- pricing: {
78
- input: 15,
79
- output: 60,
80
- },
81
66
  releasedAt: '2024-09-12',
82
67
  },
83
68
  {
@@ -89,10 +74,6 @@ const OpenAI: ModelProviderCard = {
89
74
  functionCall: true,
90
75
  id: 'gpt-4o-mini',
91
76
  maxOutput: 16_385,
92
- pricing: {
93
- input: 0.15,
94
- output: 0.6,
95
- },
96
77
  vision: true,
97
78
  },
98
79
  {
@@ -103,10 +84,6 @@ const OpenAI: ModelProviderCard = {
103
84
  functionCall: true,
104
85
  id: 'gpt-4o-mini-search-preview',
105
86
  maxOutput: 16_384,
106
- pricing: {
107
- input: 0.15,
108
- output: 0.6,
109
- },
110
87
  releasedAt: '2024-12-01',
111
88
  vision: true,
112
89
  },
@@ -118,10 +95,6 @@ const OpenAI: ModelProviderCard = {
118
95
  enabled: true,
119
96
  functionCall: true,
120
97
  id: 'gpt-4o-2024-11-20',
121
- pricing: {
122
- input: 2.5,
123
- output: 10,
124
- },
125
98
  releasedAt: '2024-11-20',
126
99
  vision: true,
127
100
  },
@@ -133,10 +106,6 @@ const OpenAI: ModelProviderCard = {
133
106
  enabled: true,
134
107
  functionCall: true,
135
108
  id: 'gpt-4o',
136
- pricing: {
137
- input: 2.5,
138
- output: 10,
139
- },
140
109
  vision: true,
141
110
  },
142
111
  {
@@ -146,10 +115,6 @@ const OpenAI: ModelProviderCard = {
146
115
  displayName: 'GPT-4o 0806',
147
116
  functionCall: true,
148
117
  id: 'gpt-4o-2024-08-06',
149
- pricing: {
150
- input: 2.5,
151
- output: 10,
152
- },
153
118
  releasedAt: '2024-08-06',
154
119
  vision: true,
155
120
  },
@@ -160,10 +125,6 @@ const OpenAI: ModelProviderCard = {
160
125
  displayName: 'GPT-4o 0513',
161
126
  functionCall: true,
162
127
  id: 'gpt-4o-2024-05-13',
163
- pricing: {
164
- input: 5,
165
- output: 15,
166
- },
167
128
  releasedAt: '2024-05-13',
168
129
  vision: true,
169
130
  },
@@ -174,10 +135,6 @@ const OpenAI: ModelProviderCard = {
174
135
  displayName: 'ChatGPT-4o',
175
136
  enabled: true,
176
137
  id: 'chatgpt-4o-latest',
177
- pricing: {
178
- input: 5,
179
- output: 15,
180
- },
181
138
  vision: true,
182
139
  },
183
140
  {
@@ -187,10 +144,6 @@ const OpenAI: ModelProviderCard = {
187
144
  displayName: 'GPT-4 Turbo',
188
145
  functionCall: true,
189
146
  id: 'gpt-4-turbo',
190
- pricing: {
191
- input: 10,
192
- output: 30,
193
- },
194
147
  vision: true,
195
148
  },
196
149
  {
@@ -200,10 +153,6 @@ const OpenAI: ModelProviderCard = {
200
153
  displayName: 'GPT-4 Turbo Vision 0409',
201
154
  functionCall: true,
202
155
  id: 'gpt-4-turbo-2024-04-09',
203
- pricing: {
204
- input: 10,
205
- output: 30,
206
- },
207
156
  vision: true,
208
157
  },
209
158
  {
@@ -213,10 +162,6 @@ const OpenAI: ModelProviderCard = {
213
162
  displayName: 'GPT-4 Turbo Preview',
214
163
  functionCall: true,
215
164
  id: 'gpt-4-turbo-preview',
216
- pricing: {
217
- input: 10,
218
- output: 30,
219
- },
220
165
  },
221
166
  {
222
167
  contextWindowTokens: 128_000,
@@ -225,10 +170,6 @@ const OpenAI: ModelProviderCard = {
225
170
  displayName: 'GPT-4 Turbo Preview 0125',
226
171
  functionCall: true,
227
172
  id: 'gpt-4-0125-preview',
228
- pricing: {
229
- input: 10,
230
- output: 30,
231
- },
232
173
  },
233
174
  {
234
175
  contextWindowTokens: 128_000,
@@ -237,10 +178,6 @@ const OpenAI: ModelProviderCard = {
237
178
  displayName: 'GPT-4 Turbo Preview 1106',
238
179
  functionCall: true,
239
180
  id: 'gpt-4-1106-preview',
240
- pricing: {
241
- input: 10,
242
- output: 30,
243
- },
244
181
  },
245
182
  {
246
183
  contextWindowTokens: 8192,
@@ -249,10 +186,6 @@ const OpenAI: ModelProviderCard = {
249
186
  displayName: 'GPT-4',
250
187
  functionCall: true,
251
188
  id: 'gpt-4',
252
- pricing: {
253
- input: 30,
254
- output: 60,
255
- },
256
189
  },
257
190
  {
258
191
  contextWindowTokens: 8192,
@@ -261,10 +194,6 @@ const OpenAI: ModelProviderCard = {
261
194
  displayName: 'GPT-4 0613',
262
195
  functionCall: true,
263
196
  id: 'gpt-4-0613',
264
- pricing: {
265
- input: 30,
266
- output: 60,
267
- },
268
197
  },
269
198
  {
270
199
  contextWindowTokens: 32_768,
@@ -274,10 +203,6 @@ const OpenAI: ModelProviderCard = {
274
203
  displayName: 'GPT-4 32K',
275
204
  functionCall: true,
276
205
  id: 'gpt-4-32k',
277
- pricing: {
278
- input: 60,
279
- output: 120,
280
- },
281
206
  },
282
207
  {
283
208
  contextWindowTokens: 32_768,
@@ -287,10 +212,6 @@ const OpenAI: ModelProviderCard = {
287
212
  displayName: 'GPT-4 32K 0613',
288
213
  functionCall: true,
289
214
  id: 'gpt-4-32k-0613',
290
- pricing: {
291
- input: 60,
292
- output: 120,
293
- },
294
215
  },
295
216
  {
296
217
  contextWindowTokens: 16_385,
@@ -299,10 +220,6 @@ const OpenAI: ModelProviderCard = {
299
220
  displayName: 'GPT-3.5 Turbo',
300
221
  functionCall: true,
301
222
  id: 'gpt-3.5-turbo',
302
- pricing: {
303
- input: 0.5,
304
- output: 1.5,
305
- },
306
223
  },
307
224
  {
308
225
  contextWindowTokens: 16_385,
@@ -311,10 +228,6 @@ const OpenAI: ModelProviderCard = {
311
228
  displayName: 'GPT-3.5 Turbo 0125',
312
229
  functionCall: true,
313
230
  id: 'gpt-3.5-turbo-0125',
314
- pricing: {
315
- input: 0.5,
316
- output: 1.5,
317
- },
318
231
  },
319
232
  {
320
233
  contextWindowTokens: 16_385,
@@ -323,10 +236,6 @@ const OpenAI: ModelProviderCard = {
323
236
  displayName: 'GPT-3.5 Turbo 1106',
324
237
  functionCall: true,
325
238
  id: 'gpt-3.5-turbo-1106',
326
- pricing: {
327
- input: 1,
328
- output: 2,
329
- },
330
239
  },
331
240
  {
332
241
  contextWindowTokens: 4096,
@@ -334,10 +243,6 @@ const OpenAI: ModelProviderCard = {
334
243
  'GPT 3.5 Turbo,适用于各种文本生成和理解任务,Currently points to gpt-3.5-turbo-0125',
335
244
  displayName: 'GPT-3.5 Turbo Instruct',
336
245
  id: 'gpt-3.5-turbo-instruct',
337
- pricing: {
338
- input: 1.5,
339
- output: 2,
340
- },
341
246
  },
342
247
  ],
343
248
  checkModel: 'gpt-4.1-nano',