@lobehub/chat 1.1.6 → 1.1.8

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 (68) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/docs/usage/providers/01ai.mdx +1 -1
  3. package/docs/usage/providers/01ai.zh-CN.mdx +1 -1
  4. package/docs/usage/providers/anthropic.mdx +1 -1
  5. package/docs/usage/providers/anthropic.zh-CN.mdx +1 -1
  6. package/docs/usage/providers/azure.mdx +1 -1
  7. package/docs/usage/providers/azure.zh-CN.mdx +1 -1
  8. package/docs/usage/providers/bedrock.mdx +1 -1
  9. package/docs/usage/providers/bedrock.zh-CN.mdx +1 -1
  10. package/docs/usage/providers/deepseek.mdx +1 -1
  11. package/docs/usage/providers/deepseek.zh-CN.mdx +1 -1
  12. package/docs/usage/providers/gemini.mdx +1 -1
  13. package/docs/usage/providers/gemini.zh-CN.mdx +1 -1
  14. package/docs/usage/providers/groq.mdx +1 -1
  15. package/docs/usage/providers/groq.zh-CN.mdx +1 -1
  16. package/docs/usage/providers/minimax.mdx +1 -1
  17. package/docs/usage/providers/minimax.zh-CN.mdx +1 -1
  18. package/docs/usage/providers/mistral.mdx +1 -1
  19. package/docs/usage/providers/mistral.zh-CN.mdx +1 -1
  20. package/docs/usage/providers/moonshot.mdx +1 -1
  21. package/docs/usage/providers/moonshot.zh-CN.mdx +1 -1
  22. package/docs/usage/providers/openai.mdx +1 -1
  23. package/docs/usage/providers/openai.zh-CN.mdx +1 -1
  24. package/docs/usage/providers/openrouter.mdx +1 -1
  25. package/docs/usage/providers/openrouter.zh-CN.mdx +2 -2
  26. package/docs/usage/providers/perplexity.mdx +1 -1
  27. package/docs/usage/providers/perplexity.zh-CN.mdx +1 -1
  28. package/docs/usage/providers/qwen.mdx +1 -1
  29. package/docs/usage/providers/qwen.zh-CN.mdx +1 -1
  30. package/docs/usage/providers/stepfun.mdx +1 -1
  31. package/docs/usage/providers/stepfun.zh-CN.mdx +2 -2
  32. package/docs/usage/providers/togetherai.mdx +1 -1
  33. package/docs/usage/providers/togetherai.zh-CN.mdx +2 -2
  34. package/docs/usage/providers/zhipu.mdx +1 -1
  35. package/docs/usage/providers/zhipu.zh-CN.mdx +2 -2
  36. package/docs/usage/tools-calling/anthropic.zh-CN.mdx +935 -2
  37. package/docs/usage/tools-calling/openai.zh-CN.mdx +4 -2
  38. package/docs/usage/tools-calling.zh-CN.mdx +15 -1
  39. package/locales/ar/setting.json +2 -1
  40. package/locales/bg-BG/setting.json +2 -1
  41. package/locales/de-DE/setting.json +2 -1
  42. package/locales/en-US/setting.json +2 -1
  43. package/locales/es-ES/setting.json +2 -1
  44. package/locales/fr-FR/setting.json +2 -1
  45. package/locales/it-IT/setting.json +2 -1
  46. package/locales/ja-JP/setting.json +2 -1
  47. package/locales/ko-KR/setting.json +2 -1
  48. package/locales/nl-NL/setting.json +2 -1
  49. package/locales/pl-PL/setting.json +2 -1
  50. package/locales/pt-BR/setting.json +2 -1
  51. package/locales/ru-RU/setting.json +2 -1
  52. package/locales/tr-TR/setting.json +2 -1
  53. package/locales/vi-VN/setting.json +2 -1
  54. package/locales/zh-CN/setting.json +2 -1
  55. package/locales/zh-TW/setting.json +2 -1
  56. package/package.json +1 -1
  57. package/src/app/(main)/settings/about/features/Version.tsx +17 -8
  58. package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +50 -2
  59. package/src/app/(main)/settings/llm/{components → features}/Footer.tsx +1 -1
  60. package/src/app/(main)/settings/llm/index.tsx +1 -1
  61. package/src/app/trpc/tools/[trpc]/route.ts +0 -2
  62. package/src/const/url.ts +2 -0
  63. package/src/libs/agent-runtime/utils/anthropicHelpers.test.ts +104 -0
  64. package/src/libs/agent-runtime/utils/anthropicHelpers.ts +28 -7
  65. package/src/libs/agent-runtime/utils/streams/anthropic.test.ts +156 -0
  66. package/src/libs/agent-runtime/utils/streams/anthropic.ts +12 -3
  67. package/src/libs/agent-runtime/utils/streams/protocol.ts +1 -0
  68. package/src/locales/default/setting.ts +2 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.1.8](https://github.com/lobehub/lobe-chat/compare/v1.1.7...v1.1.8)
6
+
7
+ <sup>Released on **2024-06-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix anthropic parallel tools calling.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix anthropic parallel tools calling, closes [#3010](https://github.com/lobehub/lobe-chat/issues/3010) ([1d891ac](https://github.com/lobehub/lobe-chat/commit/1d891ac))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.1.7](https://github.com/lobehub/lobe-chat/compare/v1.1.6...v1.1.7)
31
+
32
+ <sup>Released on **2024-06-24**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Add AES-GCM footer and tooltip.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Add AES-GCM footer and tooltip, closes [#2976](https://github.com/lobehub/lobe-chat/issues/2976) ([5d9bef4](https://github.com/lobehub/lobe-chat/commit/5d9bef4))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.1.6](https://github.com/lobehub/lobe-chat/compare/v1.1.5...v1.1.6)
6
56
 
7
57
  <sup>Released on **2024-06-23**</sup>
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Zero One AI in LobeChat
2
+ title: Using Zero One AI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and use Zero One AI in LobeChat with step-by-step
5
5
  instructions. Obtain an API key, configure Zero One AI, and start
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 01.AI 零一万物
2
+ title: 在 LobeChat 中使用 01.AI 零一万物 API Key
3
3
  description: >-
4
4
  学习如何在 LobeChat 中配置并使用 01.AI 零一万物提供的 AI 模型进行对话。获取 API 密钥、填入设置项、选择模型,开始与 AI
5
5
  助手交流。
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Anthropic Claude in LobeChat
2
+ title: Using Anthropic Claude API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate Anthropic Claude API in LobeChat to enhance your AI
5
5
  assistant capabilities. Support Claude 3.5 sonnet / Claude 3 Opus / Claude 3
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Anthropic Claude
2
+ title: 在 LobeChat 中使用 Anthropic Claude API Key
3
3
  description: >-
4
4
  学习如何在 LobeChat 中配置和使用 Anthropic Claude API, Claude 3.5 sonnet / Claude 3 Opus
5
5
  / Claude 3 haiku
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Azure OpenAI in LobeChat
2
+ title: Using Azure OpenAI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and configure Azure OpenAI in LobeChat to enhance your
5
5
  AI assistant capabilities. Follow these steps to obtain the API key, configure
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Azure OpenAI
2
+ title: 在 LobeChat 中使用 Azure OpenAI API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 Azure OpenAI 模型进行对话,包括获取 API 密钥和选择模型。
4
4
  tags:
5
5
  - Azure OpenAI
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Amazon Bedrock in LobeChat
2
+ title: Using Amazon Bedrock API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate Amazon Bedrock models into LobeChat for AI-powered
5
5
  conversations. Follow these steps to grant access, obtain API keys, and
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Amazon Bedrock
2
+ title: 在 LobeChat 中使用 Amazon Bedrock API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 Amazon Bedrock,一个完全托管的基础模型API服务,以便开始对话。
4
4
  tags:
5
5
  - Amazon Bedrock
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using DeepSeek in LobeChat
2
+ title: Using DeepSeek API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to use DeepSeek-V2 in LobeChat, obtain API keys. Get started with
5
5
  DeepSeek integration now!
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 DeepSeek
2
+ title: 在 LobeChat 中使用 DeepSeek API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 DeepSeek 语言模型,获取 API 密钥并开始对话。
4
4
  tags:
5
5
  - LobeChat
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Google Gemini in LobeChat
2
+ title: Using Google Gemini API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and utilize Google Gemini AI in LobeChat to enhance
5
5
  your conversational experience. Follow these steps to configure Google Gemini
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Google Gemini
2
+ title: 在 LobeChat 中使用 Google Gemini API Key
3
3
  description: 本文将指导你如何在 LobeChat 中配置并使用 Google Gemini,一个由 Google AI 创建的强大语言模型。
4
4
  tags:
5
5
  - Google Gemini
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Groq in LobeChat
2
+ title: Using Groq API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to obtain GroqCloud API keys and configure Groq in LobeChat for
5
5
  optimal performance.
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Groq
2
+ title: 在 LobeChat 中使用 Groq API Key
3
3
  description: 了解如何获取 GroqCloud API Key,并在 LobeChat 中配置 Groq,体验 Groq 强大的性能。
4
4
  tags:
5
5
  - LLAMA3
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Minimax in LobeChat
2
+ title: Using Minimax API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to use MiniMax in LobeChat to enhance AI conversations. Obtain
5
5
  MiniMax API key, configure MiniMax in LobeChat settings, and select a model
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Minimax
2
+ title: 在 LobeChat 中使用 Minimax API Key
3
3
  description: >-
4
4
  学习如何在 LobeChat 中配置并使用 MiniMax 智能模型进行对话。获取 MiniMax API 密钥、配置步骤详解,开始与 MiniMax
5
5
  模型交互。
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Mistral AI in LobeChat
2
+ title: Using Mistral AI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate Mistral AI into LobeChat for enhanced conversational
5
5
  experiences. Follow the steps to configure Mistral AI and start using its
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Mistral AI
2
+ title: 在 LobeChat 中使用 Mistral AI API Key
3
3
  description: 学习如何在 LobeChat 中配置并使用 Mistral AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
4
4
  tags:
5
5
  - Web UI
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Moonshot AI in LobeChat
2
+ title: Using Moonshot AI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate Moonshot AI into LobeChat for AI-powered conversations.
5
5
  Follow the steps to get the API key, configure Moonshot AI, and start engaging
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Moonshot AI
2
+ title: 在 LobeChat 中使用 Moonshot(月之暗面) AI API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 Moonshot AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
4
4
  tags:
5
5
  - Moonshot AI
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using OpenAI in LobeChat
2
+ title: Using OpenAI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate OpenAI API Key in LobeChat. Support GPT-4o /
5
5
  GPT-4-turbo / GPT-4-vision
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 OpenAI
2
+ title: 在 LobeChat 中使用 OpenAI API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 OpenAI API Key,支持 GPT-4o / GPT-4-turbo / GPT-4-vision
4
4
  tags:
5
5
  - ChatGPT
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using OpenRouter in LobeChat
2
+ title: Using OpenRouter API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and utilize OpenRouter's language model APIs in
5
5
  LobeChat. Follow these steps to register, create an API key, recharge credit,
@@ -1,6 +1,6 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 OpenRouter
3
- description: 学习如何在 LobeChat 中注册、创建 API 密钥、充值信用额度并配置 OpenRouter,以便开始使用多种优秀大语言模型 API。
2
+ title: 在 LobeChat 中使用 OpenRouter API Key
3
+ description: 学习如何在 LobeChat 中注册、创建 API Key、充值信用额度并配置 OpenRouter,以便开始使用多种优秀大语言模型 API。
4
4
  tags:
5
5
  - OpenRouter
6
6
  - API Key
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Perplexity AI in LobeChat
2
+ title: Using Perplexity AI API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and use Perplexity AI in LobeChat to enhance your AI
5
5
  assistant's capabilities.
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Perplexity AI
2
+ title: 在 LobeChat 中使用 Perplexity AI API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用 Perplexity AI,获取 API 密钥并选择适合的语言模型开始对话。
4
4
  tags:
5
5
  - Perplexity AI
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Tongyi Qianwen in LobeChat
2
+ title: Using Qwen2 API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and utilize Tongyi Qianwen, a powerful language model
5
5
  by Alibaba Cloud, in LobeChat for various tasks. Follow the steps to activate
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: 在 LobeChat 中使用通义千问
2
+ title: 在 LobeChat 中使用通义千问 API Key
3
3
  description: 学习如何在 LobeChat 中配置和使用阿里云的通义千问模型,提供强大的自然语言理解和生成能力。
4
4
  tags:
5
5
  - LobeChat
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Stepfun in LobeChat
2
+ title: Using Stepfun API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate Stepfun AI models into LobeChat for engaging
5
5
  conversations. Obtain Stepfun API key, configure Stepfun in LobeChat settings,
@@ -1,6 +1,6 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Stepfun Stepfun 阶跃星辰
3
- description: 学习如何在 LobeChat 中配置和使用 Stepfun 阶跃星辰的人工智能模型,包括获取 API 密钥和选择模型开始对话。
2
+ title: 在 LobeChat 中使用 Stepfun 阶跃星辰 API Key
3
+ description: 学习如何在 LobeChat 中配置和使用 Stepfun 阶跃星辰的人工智能模型,包括获取 API Key 和选择模型开始对话。
4
4
  tags:
5
5
  - Stepfun 阶跃星辰
6
6
  - API key
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Together AI in LobeChat
2
+ title: Using Together AI in LobeChat API Key
3
3
  description: >-
4
4
  Learn how to integrate Together AI into LobeChat, obtain the API key,
5
5
  configure settings, and start conversations with AI models.
@@ -1,6 +1,6 @@
1
1
  ---
2
- title: 在 LobeChat 中使用 Together AI
3
- description: 学习如何在 LobeChat 中配置和使用 Together AI 的API密钥,以便开始对话和交互。
2
+ title: 在 LobeChat 中使用 Together AI API Key
3
+ description: 学习如何在 LobeChat 中配置和使用 Together AI 的API Key,以便开始对话和交互。
4
4
  tags:
5
5
  - LobeChat
6
6
  - Together AI
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Using Zhipu ChatGLM in LobeChat
2
+ title: Using Zhipu ChatGLM API Key in LobeChat
3
3
  description: >-
4
4
  Learn how to integrate and utilize Zhipu AI models in LobeChat for enhanced
5
5
  conversational experiences. Obtain the API key, configure settings, and start
@@ -1,6 +1,6 @@
1
1
  ---
2
- title: 在 LobeChat 中使用智谱 ChatGLM
3
- description: 学习如何在 LobeChat 中配置和使用智谱AI的API密钥,开始与智谱AI提供的模型进行对话。
2
+ title: 在 LobeChat 中使用智谱 ChatGLM API Key
3
+ description: 学习如何在 LobeChat 中配置和使用智谱AI的 API Key,开始与智谱AI提供的模型进行对话。
4
4
  tags:
5
5
  - 智谱AI
6
6
  - ChatGLM