@lobehub/chat 1.124.0 → 1.124.1

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 (48) hide show
  1. package/.env.example +5 -0
  2. package/CHANGELOG.md +33 -0
  3. package/Dockerfile +2 -0
  4. package/Dockerfile.database +2 -0
  5. package/Dockerfile.pglite +2 -0
  6. package/changelog/v1.json +12 -0
  7. package/docs/self-hosting/environment-variables/model-provider.mdx +18 -0
  8. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +20 -0
  9. package/locales/ar/chat.json +2 -0
  10. package/locales/bg-BG/chat.json +2 -0
  11. package/locales/de-DE/chat.json +2 -0
  12. package/locales/en-US/chat.json +2 -0
  13. package/locales/es-ES/chat.json +2 -0
  14. package/locales/fa-IR/chat.json +2 -0
  15. package/locales/fr-FR/chat.json +2 -0
  16. package/locales/it-IT/chat.json +2 -0
  17. package/locales/ja-JP/chat.json +2 -0
  18. package/locales/ko-KR/chat.json +2 -0
  19. package/locales/nl-NL/chat.json +2 -0
  20. package/locales/pl-PL/chat.json +2 -0
  21. package/locales/pt-BR/chat.json +2 -0
  22. package/locales/ru-RU/chat.json +2 -0
  23. package/locales/tr-TR/chat.json +2 -0
  24. package/locales/vi-VN/chat.json +2 -0
  25. package/locales/zh-CN/chat.json +2 -0
  26. package/locales/zh-CN/modelProvider.json +1 -1
  27. package/locales/zh-TW/chat.json +2 -0
  28. package/package.json +1 -1
  29. package/packages/model-bank/src/aiModels/aihubmix.ts +38 -4
  30. package/packages/model-bank/src/aiModels/groq.ts +26 -8
  31. package/packages/model-bank/src/aiModels/hunyuan.ts +3 -3
  32. package/packages/model-bank/src/aiModels/modelscope.ts +13 -2
  33. package/packages/model-bank/src/aiModels/moonshot.ts +25 -5
  34. package/packages/model-bank/src/aiModels/novita.ts +40 -9
  35. package/packages/model-bank/src/aiModels/openrouter.ts +0 -13
  36. package/packages/model-bank/src/aiModels/qwen.ts +62 -1
  37. package/packages/model-bank/src/aiModels/siliconcloud.ts +20 -0
  38. package/packages/model-bank/src/aiModels/volcengine.ts +141 -15
  39. package/packages/model-runtime/src/newapi/index.test.ts +49 -42
  40. package/packages/model-runtime/src/newapi/index.ts +124 -143
  41. package/src/app/[variants]/(main)/settings/provider/(detail)/newapi/page.tsx +1 -1
  42. package/src/config/llm.ts +8 -0
  43. package/src/features/ChatInput/Desktop/index.tsx +16 -4
  44. package/src/locales/default/chat.ts +1 -0
  45. package/src/locales/default/modelProvider.ts +1 -1
  46. package/src/store/chat/slices/aiChat/actions/__tests__/cancel-functionality.test.ts +107 -0
  47. package/src/store/chat/slices/aiChat/actions/__tests__/generateAIChatV2.test.ts +352 -7
  48. package/src/store/chat/slices/aiChat/actions/generateAIChatV2.ts +2 -1
package/.env.example CHANGED
@@ -173,6 +173,11 @@ OPENAI_API_KEY=sk-xxxxxxxxx
173
173
 
174
174
  # NEBIUS_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
175
175
 
176
+ ### NewAPI Service ###
177
+
178
+ # NEWAPI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
179
+ # NEWAPI_PROXY_URL=https://your-newapi-server.com
180
+
176
181
  ########################################
177
182
  ############ Market Service ############
178
183
  ########################################
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.124.1](https://github.com/lobehub/lobe-chat/compare/v1.124.0...v1.124.1)
6
+
7
+ <sup>Released on **2025-09-06**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Enhance NewAPI with environment variables and fix routers compatibility.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Update doubao-seed-1.6-vision models.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### What's fixed
23
+
24
+ - **misc**: Enhance NewAPI with environment variables and fix routers compatibility, closes [#9110](https://github.com/lobehub/lobe-chat/issues/9110) ([a66856d](https://github.com/lobehub/lobe-chat/commit/a66856d))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Update doubao-seed-1.6-vision models, closes [#9052](https://github.com/lobehub/lobe-chat/issues/9052) ([df2d001](https://github.com/lobehub/lobe-chat/commit/df2d001))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
5
38
  ## [Version 1.124.0](https://github.com/lobehub/lobe-chat/compare/v1.123.4...v1.124.0)
6
39
 
7
40
  <sup>Released on **2025-09-06**</sup>
package/Dockerfile CHANGED
@@ -196,6 +196,8 @@ ENV \
196
196
  MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
197
197
  # Nebius
198
198
  NEBIUS_API_KEY="" NEBIUS_MODEL_LIST="" NEBIUS_PROXY_URL="" \
199
+ # NewAPI
200
+ NEWAPI_API_KEY="" NEWAPI_PROXY_URL="" \
199
201
  # Novita
200
202
  NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
201
203
  # Nvidia NIM
@@ -238,6 +238,8 @@ ENV \
238
238
  MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
239
239
  # Nebius
240
240
  NEBIUS_API_KEY="" NEBIUS_MODEL_LIST="" NEBIUS_PROXY_URL="" \
241
+ # NewAPI
242
+ NEWAPI_API_KEY="" NEWAPI_PROXY_URL="" \
241
243
  # Novita
242
244
  NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
243
245
  # Nvidia NIM
package/Dockerfile.pglite CHANGED
@@ -198,6 +198,8 @@ ENV \
198
198
  MOONSHOT_API_KEY="" MOONSHOT_MODEL_LIST="" MOONSHOT_PROXY_URL="" \
199
199
  # Nebius
200
200
  NEBIUS_API_KEY="" NEBIUS_MODEL_LIST="" NEBIUS_PROXY_URL="" \
201
+ # NewAPI
202
+ NEWAPI_API_KEY="" NEWAPI_PROXY_URL="" \
201
203
  # Novita
202
204
  NOVITA_API_KEY="" NOVITA_MODEL_LIST="" \
203
205
  # Nvidia NIM
package/changelog/v1.json CHANGED
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Enhance NewAPI with environment variables and fix routers compatibility."
6
+ ],
7
+ "improvements": [
8
+ "Update doubao-seed-1.6-vision models."
9
+ ]
10
+ },
11
+ "date": "2025-09-06",
12
+ "version": "1.124.1"
13
+ },
2
14
  {
3
15
  "children": {
4
16
  "features": [
@@ -675,4 +675,22 @@ The above example disables all models first, then enables `flux/schnell` and `fl
675
675
 
676
676
  The above example disables all models first, then enables `flux-pro-1.1` and `flux-kontext-pro` (displayed as `FLUX.1 Kontext [pro]`).
677
677
 
678
+ ## NewAPI
679
+
680
+ ### `NEWAPI_API_KEY`
681
+
682
+ - Type: Optional
683
+ - Description: This is the API key for your NewAPI service instance. NewAPI is a multi-provider model aggregation service that provides unified access to various AI model APIs.
684
+ - Default: -
685
+ - Example: `sk-xxxxxx...xxxxxx`
686
+
687
+ ### `NEWAPI_PROXY_URL`
688
+
689
+ - Type: Optional
690
+ - Description: The base URL for your NewAPI server instance. This should point to your deployed NewAPI service endpoint.
691
+ - Default: -
692
+ - Example: `https://your-newapi-server.com/`
693
+
694
+ NewAPI is a multi-provider model aggregation service that supports automatic model routing based on provider detection. It offers cost management features and provides a single endpoint for accessing models from multiple providers including OpenAI, Anthropic, Google, and more. Learn more about NewAPI at [https://github.com/Calcium-Ion/new-api](https://github.com/Calcium-Ion/new-api).
695
+
678
696
  [model-list]: /docs/self-hosting/advanced/model-list
@@ -674,4 +674,24 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
674
674
 
675
675
  上述示例表示先禁用所有模型,再启用 `flux-pro-1.1` 和 `flux-kontext-pro`(显示名为 `FLUX.1 Kontext [pro]`)。
676
676
 
677
+ ## NewAPI
678
+
679
+ ### `NEWAPI_API_KEY`
680
+
681
+ - 类型:可选
682
+ - 描述:这是你的 NewAPI 服务实例的 API 密钥。NewAPI 是一个多供应商模型聚合服务,提供对各种 AI 模型 API 的统一访问。
683
+ - 默认值:-
684
+ - 示例:`sk-xxxxxx...xxxxxx`
685
+
686
+ ### `NEWAPI_PROXY_URL`
687
+
688
+ - 类型:可选
689
+ - 描述:你的 NewAPI 服务器实例的基础 URL。这应该指向你部署的 NewAPI 服务端点。
690
+ - 默认值:-
691
+ - 示例:`https://your-newapi-server.com`
692
+
693
+ <Callout type={'info'}>
694
+ NewAPI 是一个多供应商模型聚合服务,支持基于供应商检测的自动模型路由。它提供成本管理功能,并为访问包括 OpenAI、Anthropic、Google 等多个供应商的模型提供单一端点。了解更多关于 NewAPI 的信息请访问 [https://github.com/Calcium-Ion/new-api](https://github.com/Calcium-Ion/new-api)。
695
+ </Callout>
696
+
677
697
  [model-list]: /zh/docs/self-hosting/advanced/model-list
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "إضافة رسالة AI",
72
72
  "addUser": "إضافة رسالة مستخدم",
73
+ "disclaimer": "قد يرتكب الذكاء الاصطناعي أخطاءً أيضًا، يرجى التحقق من المعلومات الهامة",
74
+ "errorMsg": "فشل إرسال الرسالة، يرجى التحقق من الشبكة والمحاولة مرة أخرى: {{errorMsg}}",
73
75
  "more": "المزيد",
74
76
  "send": "إرسال",
75
77
  "sendWithCmdEnter": "اضغط <key/> للإرسال",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Добави AI съобщение",
72
72
  "addUser": "Добави потребителско съобщение",
73
+ "disclaimer": "Изкуственият интелект също може да греши, моля проверете важната информация",
74
+ "errorMsg": "Неуспешно изпращане на съобщението, моля, проверете мрежата и опитайте отново: {{errorMsg}}",
73
75
  "more": "още",
74
76
  "send": "Изпрати",
75
77
  "sendWithCmdEnter": "Натиснете <key/> за изпращане",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Fügen Sie eine AI-Nachricht hinzu",
72
72
  "addUser": "Fügen Sie eine Benutzer-Nachricht hinzu",
73
+ "disclaimer": "KI kann auch Fehler machen, bitte überprüfen Sie wichtige Informationen",
74
+ "errorMsg": "Nachricht konnte nicht gesendet werden, bitte überprüfen Sie Ihre Netzwerkverbindung und versuchen Sie es erneut: {{errorMsg}}",
73
75
  "more": "Mehr",
74
76
  "send": "Senden",
75
77
  "sendWithCmdEnter": "Drücken Sie <key/>, um zu senden",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Add an AI message",
72
72
  "addUser": "Add a user message",
73
+ "disclaimer": "AI may also make mistakes, please verify important information",
74
+ "errorMsg": "Message sending failed, please check your network and try again: {{errorMsg}}",
73
75
  "more": "more",
74
76
  "send": "Send",
75
77
  "sendWithCmdEnter": "Press <key/> to send",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Agregar un mensaje de IA",
72
72
  "addUser": "Agregar un mensaje de usuario",
73
+ "disclaimer": "La IA también puede cometer errores, por favor verifique la información importante",
74
+ "errorMsg": "Error al enviar el mensaje, por favor revise la conexión y vuelva a intentarlo: {{errorMsg}}",
73
75
  "more": "más",
74
76
  "send": "Enviar",
75
77
  "sendWithCmdEnter": "Presiona <key/> para enviar",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "افزودن یک پیام AI",
72
72
  "addUser": "افزودن یک پیام کاربر",
73
+ "disclaimer": "هوش مصنوعی نیز ممکن است اشتباه کند، لطفاً اطلاعات مهم را بررسی کنید",
74
+ "errorMsg": "ارسال پیام ناموفق بود، لطفاً پس از بررسی شبکه دوباره تلاش کنید: {{errorMsg}}",
73
75
  "more": "بیشتر",
74
76
  "send": "ارسال",
75
77
  "sendWithCmdEnter": "برای ارسال، کلید <key/> را فشار دهید",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Ajouter un message AI",
72
72
  "addUser": "Ajouter un message utilisateur",
73
+ "disclaimer": "L'IA peut également faire des erreurs, veuillez vérifier les informations importantes",
74
+ "errorMsg": "Échec de l'envoi du message, veuillez vérifier votre connexion réseau et réessayer : {{errorMsg}}",
73
75
  "more": "Plus",
74
76
  "send": "Envoyer",
75
77
  "sendWithCmdEnter": "Appuyez sur <key/> pour envoyer",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Aggiungi un messaggio AI",
72
72
  "addUser": "Aggiungi un messaggio utente",
73
+ "disclaimer": "L'IA può anche commettere errori, si prega di verificare le informazioni importanti",
74
+ "errorMsg": "Invio del messaggio fallito, controlla la rete e riprova: {{errorMsg}}",
73
75
  "more": "Ulteriori",
74
76
  "send": "Invia",
75
77
  "sendWithCmdEnter": "Premi <key/> per inviare",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "AIメッセージを追加",
72
72
  "addUser": "ユーザーメッセージを追加",
73
+ "disclaimer": "AIも誤りを犯すことがありますので、重要な情報はご確認ください",
74
+ "errorMsg": "メッセージの送信に失敗しました。ネットワークを確認してから再試行してください: {{errorMsg}}",
73
75
  "more": "もっと",
74
76
  "send": "送信",
75
77
  "sendWithCmdEnter": "<key/> キーを押して送信",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "AI 메시지 추가",
72
72
  "addUser": "사용자 메시지 추가",
73
+ "disclaimer": "AI도 실수를 할 수 있으니 중요한 정보는 꼭 확인하세요",
74
+ "errorMsg": "메시지 전송에 실패했습니다. 네트워크를 확인한 후 다시 시도해 주세요: {{errorMsg}}",
73
75
  "more": "더 많은",
74
76
  "send": "전송",
75
77
  "sendWithCmdEnter": "<key/> 키를 눌러 전송",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Voeg een AI-bericht toe",
72
72
  "addUser": "Voeg een gebruikersbericht toe",
73
+ "disclaimer": "AI kan ook fouten maken, controleer belangrijke informatie alstublieft",
74
+ "errorMsg": "Bericht verzenden mislukt, controleer uw netwerk en probeer het opnieuw: {{errorMsg}}",
73
75
  "more": "Meer",
74
76
  "send": "Verzenden",
75
77
  "sendWithCmdEnter": "Druk op <key/> om te verzenden",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Dodaj wiadomość AI",
72
72
  "addUser": "Dodaj wiadomość użytkownika",
73
+ "disclaimer": "AI również może popełniać błędy, proszę sprawdzić ważne informacje",
74
+ "errorMsg": "Wysyłanie wiadomości nie powiodło się, sprawdź połączenie sieciowe i spróbuj ponownie: {{errorMsg}}",
73
75
  "more": "więcej",
74
76
  "send": "Wyślij",
75
77
  "sendWithCmdEnter": "Naciśnij <key/>, aby wysłać",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Adicionar uma mensagem de IA",
72
72
  "addUser": "Adicionar uma mensagem de usuário",
73
+ "disclaimer": "A IA também pode cometer erros, por favor verifique as informações importantes",
74
+ "errorMsg": "Falha ao enviar a mensagem, verifique a rede e tente novamente: {{errorMsg}}",
73
75
  "more": "mais",
74
76
  "send": "Enviar",
75
77
  "sendWithCmdEnter": "Pressione <key/> para enviar",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Добавить сообщение AI",
72
72
  "addUser": "Добавить сообщение пользователя",
73
+ "disclaimer": "ИИ также может ошибаться, пожалуйста, проверяйте важную информацию",
74
+ "errorMsg": "Не удалось отправить сообщение, проверьте подключение к сети и попробуйте снова: {{errorMsg}}",
73
75
  "more": "больше",
74
76
  "send": "Отправить",
75
77
  "sendWithCmdEnter": "Нажмите <key/> для отправки",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Bir AI mesajı ekleyin",
72
72
  "addUser": "Bir kullanıcı mesajı ekleyin",
73
+ "disclaimer": "Yapay zeka da hata yapabilir, lütfen önemli bilgileri kontrol edin",
74
+ "errorMsg": "Mesaj gönderilemedi, lütfen ağı kontrol edip tekrar deneyin: {{errorMsg}}",
73
75
  "more": "Daha fazla",
74
76
  "send": "Gönder",
75
77
  "sendWithCmdEnter": "<key/> tuşuna basarak gönder",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "Thêm một tin nhắn AI",
72
72
  "addUser": "Thêm một tin nhắn người dùng",
73
+ "disclaimer": "AI cũng có thể mắc lỗi, vui lòng kiểm tra kỹ thông tin quan trọng",
74
+ "errorMsg": "Gửi tin nhắn thất bại, vui lòng kiểm tra mạng và thử lại: {{errorMsg}}",
73
75
  "more": "Thêm",
74
76
  "send": "Gửi",
75
77
  "sendWithCmdEnter": "Nhấn <key/> để gửi",
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "添加一条 AI 消息",
72
72
  "addUser": "添加一条用户消息",
73
+ "disclaimer": "AI 也可能会犯错,请检查重要信息",
74
+ "errorMsg": "消息发送失败,请检查网络后重试: {{errorMsg}}",
73
75
  "more": "更多",
74
76
  "send": "发送",
75
77
  "sendWithCmdEnter": "按 <key/> 键发送",
@@ -161,7 +161,7 @@
161
161
  "title": "API 密钥"
162
162
  },
163
163
  "apiUrl": {
164
- "desc": "New API 服务的 API 地址,大部分时候需要带 /v1",
164
+ "desc": "New API 服务的 API 地址,大部分时候不要带 /v1",
165
165
  "title": "API 地址"
166
166
  },
167
167
  "enabled": {
@@ -70,6 +70,8 @@
70
70
  "input": {
71
71
  "addAi": "新增一條 AI 訊息",
72
72
  "addUser": "新增一條使用者訊息",
73
+ "disclaimer": "AI 也可能會犯錯,請檢查重要資訊",
74
+ "errorMsg": "訊息發送失敗,請檢查網路後重試:{{errorMsg}}",
73
75
  "more": "更多",
74
76
  "send": "發送",
75
77
  "sendWithCmdEnter": "按 <key/> 鍵發送",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.124.0",
3
+ "version": "1.124.1",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -552,13 +552,11 @@ const aihubmixModels: AIChatModelCard[] = [
552
552
  {
553
553
  abilities: {
554
554
  functionCall: true,
555
- reasoning: true,
556
555
  },
557
556
  contextWindowTokens: 131_072,
558
557
  description:
559
- 'DeepSeek-V3.1 是深度求索全新推出的混合推理模型,支持思考与非思考2种推理模式,较 DeepSeek-R1-0528 思考效率更高。经 Post-Training 优化,Agent 工具使用与智能体任务表现大幅提升。',
560
- displayName: 'DeepSeek V3.1',
561
- enabled: true,
558
+ 'DeepSeek-V3.1-非思考模式;DeepSeek-V3.1 是深度求索全新推出的混合推理模型,支持思考与非思考2种推理模式,较 DeepSeek-R1-0528 思考效率更高。经 Post-Training 优化,Agent 工具使用与智能体任务表现大幅提升。',
559
+ displayName: 'DeepSeek V3.1 (non-Think)',
562
560
  id: 'DeepSeek-V3.1',
563
561
  pricing: {
564
562
  units: [
@@ -568,6 +566,42 @@ const aihubmixModels: AIChatModelCard[] = [
568
566
  },
569
567
  type: 'chat',
570
568
  },
569
+ {
570
+ abilities: {
571
+ functionCall: true,
572
+ reasoning: true,
573
+ },
574
+ contextWindowTokens: 131_072,
575
+ description:
576
+ 'DeepSeek-V3.1-思考模式;DeepSeek-V3.1 是深度求索全新推出的混合推理模型,支持思考与非思考2种推理模式,较 DeepSeek-R1-0528 思考效率更高。经 Post-Training 优化,Agent 工具使用与智能体任务表现大幅提升。',
577
+ displayName: 'DeepSeek V3.1 (Think)',
578
+ id: 'DeepSeek-V3.1-Think',
579
+ pricing: {
580
+ units: [
581
+ { name: 'textInput', rate: 0.56, strategy: 'fixed', unit: 'millionTokens' },
582
+ { name: 'textOutput', rate: 1.68, strategy: 'fixed', unit: 'millionTokens' },
583
+ ],
584
+ },
585
+ type: 'chat',
586
+ },
587
+ {
588
+ abilities: {
589
+ functionCall: true,
590
+ reasoning: true,
591
+ },
592
+ contextWindowTokens: 131_072,
593
+ description:
594
+ 'DeepSeek V3.1 Fast 是 DeepSeek V3.1版本的高TPS极速版。 混合思考模式:通过更改聊天模板,一个模型可以同时支持思考模式和非思考模式。 更智能的工具调用:通过后训练优化,模型在工具使用和代理任务中的表现显著提升。',
595
+ displayName: 'DeepSeek V3.1 (Fast)',
596
+ id: 'DeepSeek-V3.1-Fast',
597
+ pricing: {
598
+ units: [
599
+ { name: 'textInput', rate: 1.096, strategy: 'fixed', unit: 'millionTokens' },
600
+ { name: 'textOutput', rate: 3.288, strategy: 'fixed', unit: 'millionTokens' },
601
+ ],
602
+ },
603
+ type: 'chat',
604
+ },
571
605
  {
572
606
  abilities: {
573
607
  functionCall: true,
@@ -7,19 +7,19 @@ const groqChatModels: AIChatModelCard[] = [
7
7
  {
8
8
  contextWindowTokens: 131_072,
9
9
  description:
10
- 'Compound-beta 是一个复合 AI 系统,由 GroqCloud 中已经支持的多个开放可用的模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
11
- displayName: 'Compound Beta',
10
+ 'Compound 是一个复合 AI 系统,由 GroqCloud 中已经支持的多个开放可用的模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
11
+ displayName: 'Compound',
12
12
  enabled: true,
13
- id: 'compound-beta',
13
+ id: 'groq/compound',
14
14
  maxOutput: 8192,
15
15
  type: 'chat',
16
16
  },
17
17
  {
18
18
  contextWindowTokens: 131_072,
19
19
  description:
20
- 'Compound-beta-mini 是一个复合 AI 系统,由 GroqCloud 中已经支持的公开可用模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
21
- displayName: 'Compound Beta Mini',
22
- id: 'compound-beta-mini',
20
+ 'Compound-mini 是一个复合 AI 系统,由 GroqCloud 中已经支持的公开可用模型提供支持,可以智能地、有选择地使用工具来回答用户查询。',
21
+ displayName: 'Compound Mini',
22
+ id: 'groq/compound-mini',
23
23
  maxOutput: 8192,
24
24
  type: 'chat',
25
25
  },
@@ -63,6 +63,25 @@ const groqChatModels: AIChatModelCard[] = [
63
63
  releasedAt: '2025-08-06',
64
64
  type: 'chat',
65
65
  },
66
+ {
67
+ abilities: {
68
+ functionCall: true,
69
+ },
70
+ contextWindowTokens: 262_144,
71
+ description:
72
+ 'kimi-k2-0905-preview 模型上下文长度为 256k,具备更强的 Agentic Coding 能力、更突出的前端代码的美观度和实用性、以及更好的上下文理解能力。',
73
+ displayName: 'Kimi K2 0905',
74
+ enabled: true,
75
+ id: 'moonshotai/kimi-k2-instruct-0905',
76
+ pricing: {
77
+ units: [
78
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
79
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
80
+ ],
81
+ },
82
+ releasedAt: '2025-09-05',
83
+ type: 'chat',
84
+ },
66
85
  {
67
86
  abilities: {
68
87
  functionCall: true,
@@ -70,8 +89,7 @@ const groqChatModels: AIChatModelCard[] = [
70
89
  contextWindowTokens: 131_072,
71
90
  description:
72
91
  'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
73
- displayName: 'Kimi K2 Instruct',
74
- enabled: true,
92
+ displayName: 'Kimi K2 0711',
75
93
  id: 'moonshotai/kimi-k2-instruct',
76
94
  maxOutput: 16_384,
77
95
  pricing: {
@@ -26,9 +26,9 @@ const hunyuanChatModels: AIChatModelCard[] = [
26
26
  reasoning: true,
27
27
  search: true,
28
28
  },
29
- contextWindowTokens: 92_000,
29
+ contextWindowTokens: 96_000,
30
30
  description:
31
- '业内首个超大规模 Hybrid-Transformer-Mamba 推理模型,扩展推理能力,超强解码速度,进一步对齐人类偏好。',
31
+ '大幅提升主模型慢思考模型的高难数学、复杂推理、高难代码、指令遵循、文本创作质量等能力。',
32
32
  displayName: 'Hunyuan T1',
33
33
  enabled: true,
34
34
  id: 'hunyuan-t1-latest',
@@ -40,7 +40,7 @@ const hunyuanChatModels: AIChatModelCard[] = [
40
40
  { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
41
41
  ],
42
42
  },
43
- releasedAt: '2025-05-21',
43
+ releasedAt: '2025-08-22',
44
44
  settings: {
45
45
  searchImpl: 'params',
46
46
  },
@@ -1,6 +1,19 @@
1
1
  import { AIChatModelCard } from '../types/aiModel';
2
2
 
3
3
  const modelscopeChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 262_144,
9
+ description:
10
+ 'kimi-k2-0905-preview 模型上下文长度为 256k,具备更强的 Agentic Coding 能力、更突出的前端代码的美观度和实用性、以及更好的上下文理解能力。',
11
+ displayName: 'Kimi K2 0905',
12
+ enabled: true,
13
+ id: 'moonshotai/Kimi-K2-Instruct-0905',
14
+ releasedAt: '2025-09-05',
15
+ type: 'chat',
16
+ },
4
17
  {
5
18
  abilities: {
6
19
  functionCall: true,
@@ -53,7 +66,6 @@ const modelscopeChatModels: AIChatModelCard[] = [
53
66
  contextWindowTokens: 131_072,
54
67
  description: 'Qwen3-235B-A22B是通义千问3代超大规模模型,提供顶级的AI能力。',
55
68
  displayName: 'Qwen3-235B-A22B',
56
- enabled: true,
57
69
  id: 'Qwen/Qwen3-235B-A22B',
58
70
  type: 'chat',
59
71
  },
@@ -64,7 +76,6 @@ const modelscopeChatModels: AIChatModelCard[] = [
64
76
  contextWindowTokens: 131_072,
65
77
  description: 'Qwen3-32B是通义千问3代模型,具有强大的推理和对话能力。',
66
78
  displayName: 'Qwen3-32B',
67
- enabled: true,
68
79
  id: 'Qwen/Qwen3-32B',
69
80
  type: 'chat',
70
81
  },
@@ -2,6 +2,27 @@ import { AIChatModelCard } from '../types/aiModel';
2
2
 
3
3
  // https://platform.moonshot.cn/docs/pricing/chat
4
4
  const moonshotChatModels: AIChatModelCard[] = [
5
+ {
6
+ abilities: {
7
+ functionCall: true,
8
+ },
9
+ contextWindowTokens: 262_144,
10
+ description:
11
+ 'kimi-k2-0905-preview 模型上下文长度为 256k,具备更强的 Agentic Coding 能力、更突出的前端代码的美观度和实用性、以及更好的上下文理解能力。',
12
+ displayName: 'Kimi K2 0905',
13
+ enabled: true,
14
+ id: 'kimi-k2-0905-preview',
15
+ pricing: {
16
+ currency: 'CNY',
17
+ units: [
18
+ { name: 'textInput_cacheRead', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
19
+ { name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
20
+ { name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
21
+ ],
22
+ },
23
+ releasedAt: '2025-09-05',
24
+ type: 'chat',
25
+ },
5
26
  {
6
27
  abilities: {
7
28
  functionCall: true,
@@ -9,8 +30,7 @@ const moonshotChatModels: AIChatModelCard[] = [
9
30
  contextWindowTokens: 131_072,
10
31
  description:
11
32
  'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
12
- displayName: 'Kimi K2',
13
- enabled: true,
33
+ displayName: 'Kimi K2 0711',
14
34
  id: 'kimi-k2-0711-preview',
15
35
  pricing: {
16
36
  currency: 'CNY',
@@ -27,10 +47,10 @@ const moonshotChatModels: AIChatModelCard[] = [
27
47
  abilities: {
28
48
  functionCall: true,
29
49
  },
30
- contextWindowTokens: 131_072,
50
+ contextWindowTokens: 262_144,
31
51
  description:
32
52
  'kimi-k2 是一款具备超强代码和 Agent 能力的 MoE 架构基础模型,总参数 1T,激活参数 32B。在通用知识推理、编程、数学、Agent 等主要类别的基准性能测试中,K2 模型的性能超过其他主流开源模型。',
33
- displayName: 'Kimi K2 Turbo',
53
+ displayName: 'Kimi K2 0905 Turbo',
34
54
  id: 'kimi-k2-turbo-preview',
35
55
  pricing: {
36
56
  currency: 'CNY',
@@ -40,7 +60,7 @@ const moonshotChatModels: AIChatModelCard[] = [
40
60
  { name: 'textOutput', rate: 64, strategy: 'fixed', unit: 'millionTokens' },
41
61
  ],
42
62
  },
43
- releasedAt: '2025-07-11',
63
+ releasedAt: '2025-09-05',
44
64
  type: 'chat',
45
65
  },
46
66
  {