@lobehub/chat 0.132.0 → 0.132.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.132.2](https://github.com/lobehub/lobe-chat/compare/v0.132.1...v0.132.2)
6
+
7
+ <sup>Released on **2024-03-07**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix anthropic streaming on Vercel/Cloudflare.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix anthropic streaming on Vercel/Cloudflare, closes [#1480](https://github.com/lobehub/lobe-chat/issues/1480) ([227101a](https://github.com/lobehub/lobe-chat/commit/227101a))
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 0.132.1](https://github.com/lobehub/lobe-chat/compare/v0.132.0...v0.132.1)
31
+
32
+ <sup>Released on **2024-03-06**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix hydration error while OAuth callback.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix hydration error while OAuth callback, closes [#1474](https://github.com/lobehub/lobe-chat/issues/1474) ([ff93825](https://github.com/lobehub/lobe-chat/commit/ff93825))
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 0.132.0](https://github.com/lobehub/lobe-chat/compare/v0.131.0...v0.132.0)
6
56
 
7
57
  <sup>Released on **2024-03-05**</sup>
package/README.md CHANGED
@@ -223,7 +223,7 @@ In addition, these plugins are not limited to news aggregation, but can also ext
223
223
  | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | Get realtime crypto price, BTC, ETH, BNB, and the latest insights.The latest coin news and airdrop opportunities.<br/>`crypto` `btc` `eth` `bnb` |
224
224
  | [Bilibili](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | Dive into Bilibili's vast content with features like keyword video search, replay access, interactive danmaku, trending video recommendations, and hot-search insights, all at your fingertips.<br/>`video` `bilibili` `search` |
225
225
 
226
- > 📊 Total plugins: [<kbd>**61**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
226
+ > 📊 Total plugins: [<kbd>**58**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
227
227
 
228
228
  <!-- PLUGIN LIST -->
229
229
 
@@ -255,14 +255,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
255
255
 
256
256
  <!-- AGENT LIST -->
257
257
 
258
- | Recent Submits | Description |
259
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
260
- | [AI Image Prompt Architect](https://chat-preview.lobehub.com/market?agent=9-somboon)<br/><sup>By **[9Somboon](https://github.com/9Somboon)** on **2024-03-05**</sup> | Specialises in creating detailed prompts for AI image generation.<br/>`stable-diffusion` `ai-image-generation` `prompts` `photography` `creative` `art` |
261
- | [F1 Data Analyst](https://chat-preview.lobehub.com/market?agent=f-1-bot)<br/><sup>By **[SpaceX-Vision](https://github.com/SpaceX-Vision)** on **2024-03-05**</sup> | Specializes in F1 race data analysis and predictive commentary<br/>`f-1` `data-analysis` `race-prediction` |
262
- | [Software Development for Dummies](https://chat-preview.lobehub.com/market?agent=software-development-for-dummies)<br/><sup>By **[Ballongknute](https://github.com/Ballongknute)** on **2024-03-05**</sup> | Software Development for Dummies: Guides no brainers through the software development process, providing step-by-step instructions and best practices for requirements gathering, design, coding, testing, deployment, and maintenance.<br/>`software-development` `step-by-step` `sdlc` `agile-methodologies` `version-control` `continuous-integration` `continuous-deployment` `team-roles` `project-management` `coding-best-practices` `testing` `deployment` `post-deployment` `iterative-development` `scrum-master` |
263
- | [English Composition Assistant](https://chat-preview.lobehub.com/market?agent=english-essay)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-03-04**</sup> | English composition editing and writing guidance<br/>`editing` `writing` `guidance` `english-composition` `agulu` |
258
+ | Recent Submits | Description |
259
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
260
+ | [Business Email Writing Expert](https://chat-preview.lobehub.com/market?agent=business-email)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-03-06**</sup> | Business email writing expert specializing in bilingual business emails in Chinese and English, cross-cultural communication, and engagement in the GitHub open-source community.<br/>`business-email-writing` `business-cooperation` `business-authorization` `cross-cultural-communication` `git-hub-and-open-source-community` |
261
+ | [Discord Style Copywriting Expert](https://chat-preview.lobehub.com/market?agent=discord-copywriting)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-03-06**</sup> | A copywriting expert in Discord style, prioritizing humor and user experience, specializing in personalized software copywriting.<br/>`copywriting` `creation` `user-experience` `humor` `software-system` |
262
+ | [AI Image Prompt Architect](https://chat-preview.lobehub.com/market?agent=9-somboon)<br/><sup>By **[9Somboon](https://github.com/9Somboon)** on **2024-03-05**</sup> | Specialises in creating detailed prompts for AI image generation.<br/>`stable-diffusion` `ai-image-generation` `prompts` `photography` `creative` `art` |
263
+ | [F1 Data Analyst](https://chat-preview.lobehub.com/market?agent=f-1-bot)<br/><sup>By **[SpaceX-Vision](https://github.com/SpaceX-Vision)** on **2024-03-05**</sup> | Specializes in F1 race data analysis and predictive commentary<br/>`f-1` `data-analysis` `race-prediction` |
264
264
 
265
- > 📊 Total agents: [<kbd>**196**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
265
+ > 📊 Total agents: [<kbd>**199**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
266
266
 
267
267
  <!-- AGENT LIST -->
268
268
 
package/README.zh-CN.md CHANGED
@@ -215,7 +215,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
215
215
  | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | 获取实时加密货币价格,BTC,ETH,BNB 和最新见解。最新的币新闻和空投机会。<br/>`加密货币` `btc` `eth` `bnb` |
216
216
  | [哔哩哔哩](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 通过关键词视频搜索、回放访问、互动弹幕、热门视频推荐和热搜洞察等功能,深入体验哔哩哔哩丰富的内容,尽在您的指尖。<br/>`视频` `哔哩哔哩` `搜索` |
217
217
 
218
- > 📊 Total plugins: [<kbd>**61**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
218
+ > 📊 Total plugins: [<kbd>**58**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
219
219
 
220
220
  <!-- PLUGIN LIST -->
221
221
 
@@ -243,14 +243,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
243
243
 
244
244
  <!-- AGENT LIST -->
245
245
 
246
- | 最近新增 | 助手说明 |
247
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
248
- | [AI 图像提示建筑师](https://chat-preview.lobehub.com/market?agent=9-somboon)<br/><sup>By **[9Somboon](https://github.com/9Somboon)** on **2024-03-05**</sup> | 专门为 AI 图像生成创建详细提示。<br/>`stable-diffusion` `ai-image-generation` `prompts` `photography` `creative` `art` |
249
- | [F1 数据分析师](https://chat-preview.lobehub.com/market?agent=f-1-bot)<br/><sup>By **[SpaceX-Vision](https://github.com/SpaceX-Vision)** on **2024-03-05**</sup> | 擅长 F1 赛事数据分析和预测评论<br/>`f-1` `数据分析` `赛事预测` |
250
- | [软件开发入门指南](https://chat-preview.lobehub.com/market?agent=software-development-for-dummies)<br/><sup>By **[Ballongknute](https://github.com/Ballongknute)** on **2024-03-05**</sup> | 《软件开发入门指南》:指导初学者通过软件开发过程,提供逐步指导和最佳实践,包括需求收集、设计、编码、测试、部署和维护。<br/>`软件开发` `逐步指导` `sdlc` `敏捷方法` `版本控制` `持续集成` `持续部署` `团队角色` `项目管理` `编码最佳实践` `测试` `部署` `部署后` `迭代开发` `scrum-管理员` |
251
- | [英语作文助手](https://chat-preview.lobehub.com/market?agent=english-essay)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-03-04**</sup> | 英语作文修改与写作指导<br/>`修改` `写作` `指导` `英语作文` `agulu` |
246
+ | 最近新增 | 助手说明 |
247
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
248
+ | [商务邮件撰写专家](https://chat-preview.lobehub.com/market?agent=business-email)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-03-06**</sup> | 商务邮件撰写专家,擅长中英文商务邮件,跨文化沟通,GitHub 开源社区交流。<br/>`商务邮件撰写` `商业合作` `商务授权` `跨文化沟通` `git-hub和开源社区` |
249
+ | [Discord 风格文案大师](https://chat-preview.lobehub.com/market?agent=discord-copywriting)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-03-06**</sup> | Discord 风格文案专家,幽默风趣、用户体验优先,个性化设计软件文案。<br/>`文案生成` `创作` `用户体验` `幽默风趣` `软件系统` |
250
+ | [AI 图像提示建筑师](https://chat-preview.lobehub.com/market?agent=9-somboon)<br/><sup>By **[9Somboon](https://github.com/9Somboon)** on **2024-03-05**</sup> | 专门为 AI 图像生成创建详细提示。<br/>`stable-diffusion` `ai-image-generation` `prompts` `photography` `creative` `art` |
251
+ | [F1 数据分析师](https://chat-preview.lobehub.com/market?agent=f-1-bot)<br/><sup>By **[SpaceX-Vision](https://github.com/SpaceX-Vision)** on **2024-03-05**</sup> | 擅长 F1 赛事数据分析和预测评论<br/>`f-1` `数据分析` `赛事预测` |
252
252
 
253
- > 📊 Total agents: [<kbd>**196**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
253
+ > 📊 Total agents: [<kbd>**199**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
254
254
 
255
255
  <!-- AGENT LIST -->
256
256
 
@@ -163,8 +163,3 @@ When using the `turn` mode, the API Keys will be retrieved in a round-robin mann
163
163
  - Default: -
164
164
  - Example: `sk-ant-apixx-xxxxxxxxx-xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx`
165
165
 
166
-
167
- <Callout type={'warning'}>
168
- There's [a known issue](https://github.com/anthropics/anthropic-sdk-typescript/issues/292) with the official Anthropic SDK on Vercel/Cloudflare edge runtime, which causes chat streams to be interrupted randomly. If you want to use the Anthropic provider, do not use Vercel/Cloudflare for now; the Anthropic provider should be working fine with other hosting options.
169
- </Callout>
170
-
@@ -159,11 +159,4 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
159
159
  - 类型:必选
160
160
  - 描述:这是你在 Anthropic AI 服务中申请的 API 密钥
161
161
  - 默认值:-
162
- - 示例:`sk-ant-apixx-xxxxxxxxx-xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx`
163
-
164
- <Callout type={'warning'}>
165
- 官方 Anthropic SDK 在 Vercel/Cloudflare
166
- 边缘节点运行时存在一个[已知问题](https://github.com/anthropics/anthropic-sdk-typescript/issues/292)
167
- ,会导致聊天流出现随机中断。如果您希望在 lobe-chat 中使用 Anthropic 模型,请暂时不要部署到
168
- Vercel/Cloudflare。Anthropic 模型在其他部署方式下可以正常工作。
169
- </Callout>
162
+ - 示例:`sk-ant-apixx-xxxxxxxxx-xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.132.0",
3
+ "version": "0.132.2",
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",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "@ant-design/icons": "^5",
77
- "@anthropic-ai/sdk": "^0.16.0",
77
+ "@anthropic-ai/sdk": "^0.17.0",
78
78
  "@auth/core": "latest",
79
79
  "@aws-sdk/client-bedrock-runtime": "^3.503.1",
80
80
  "@azure/openai": "^1.0.0-beta.11",
@@ -39,6 +39,15 @@ export const createI18nNext = (lang?: string) => {
39
39
  detection: {
40
40
  caches: ['cookie'],
41
41
  cookieMinutes: 60 * 24 * COOKIE_CACHE_DAYS,
42
+ /**
43
+ Set `sameSite` to `lax` so that the i18n cookie can be passed to the
44
+ server side when returning from the OAuth authorization website.
45
+ ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
46
+ discussion: https://github.com/lobehub/lobe-chat/pull/1474
47
+ */
48
+ cookieOptions: {
49
+ sameSite: 'lax',
50
+ },
42
51
  lookupCookie: LOBE_LOCALE_COOKIE,
43
52
  },
44
53
  fallbackLng: DEFAULT_LANG,