@lobehub/chat 1.85.1 → 1.85.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,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.85.2](https://github.com/lobehub/lobe-chat/compare/v1.85.1...v1.85.2)
|
6
|
+
|
7
|
+
<sup>Released on **2025-05-10**</sup>
|
8
|
+
|
9
|
+
#### ♻ Code Refactoring
|
10
|
+
|
11
|
+
- **misc**: Upgrade anthropic sdk.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Code refactoring
|
19
|
+
|
20
|
+
- **misc**: Upgrade anthropic sdk, closes [#7773](https://github.com/lobehub/lobe-chat/issues/7773) ([39e871f](https://github.com/lobehub/lobe-chat/commit/39e871f))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.85.1](https://github.com/lobehub/lobe-chat/compare/v1.85.0...v1.85.1)
|
6
31
|
|
7
32
|
<sup>Released on **2025-05-10**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.85.
|
3
|
+
"version": "1.85.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",
|
@@ -121,7 +121,7 @@
|
|
121
121
|
"dependencies": {
|
122
122
|
"@ant-design/icons": "^5.6.1",
|
123
123
|
"@ant-design/pro-components": "^2.8.7",
|
124
|
-
"@anthropic-ai/sdk": "^0.
|
124
|
+
"@anthropic-ai/sdk": "^0.50.3",
|
125
125
|
"@auth/core": "^0.38.0",
|
126
126
|
"@aws-sdk/client-bedrock-runtime": "^3.779.0",
|
127
127
|
"@aws-sdk/client-s3": "^3.779.0",
|
@@ -359,6 +359,9 @@
|
|
359
359
|
"registry": "https://registry.npmjs.org"
|
360
360
|
},
|
361
361
|
"pnpm": {
|
362
|
+
"onlyBuiltDependencies": [
|
363
|
+
"@vercel/speed-insights"
|
364
|
+
],
|
362
365
|
"overrides": {
|
363
366
|
"mdast-util-gfm-autolink-literal": "2.0.0"
|
364
367
|
},
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import Anthropic from '@anthropic-ai/sdk';
|
4
|
-
import { ClientOptions } from 'openai';
|
1
|
+
import Anthropic, { ClientOptions } from '@anthropic-ai/sdk';
|
2
|
+
|
5
3
|
import type { ChatModelCard } from '@/types/llm';
|
6
4
|
|
7
5
|
import { LobeRuntimeAI } from '../BaseAI';
|
@@ -12,10 +10,10 @@ import {
|
|
12
10
|
ChatStreamPayload,
|
13
11
|
ModelProvider,
|
14
12
|
} from '../types';
|
13
|
+
import { buildAnthropicMessages, buildAnthropicTools } from '../utils/anthropicHelpers';
|
15
14
|
import { AgentRuntimeError } from '../utils/createError';
|
16
15
|
import { debugStream } from '../utils/debugStream';
|
17
16
|
import { desensitizeUrl } from '../utils/desensitizeUrl';
|
18
|
-
import { buildAnthropicMessages, buildAnthropicTools } from '../utils/anthropicHelpers';
|
19
17
|
import { StreamingResponse } from '../utils/response';
|
20
18
|
import { AnthropicStream } from '../utils/streams';
|
21
19
|
import { handleAnthropicError } from './handleAnthropicError';
|