@lobehub/chat 1.15.17 → 1.15.18
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.15.18](https://github.com/lobehub/lobe-chat/compare/v1.15.17...v1.15.18)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-09-06**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Support anthropic browser request.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Support anthropic browser request, closes [#3798](https://github.com/lobehub/lobe-chat/issues/3798) ([743df51](https://github.com/lobehub/lobe-chat/commit/743df51))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.15.17](https://github.com/lobehub/lobe-chat/compare/v1.15.16...v1.15.17)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-09-06**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.18",
|
|
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",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@ant-design/icons": "^5.4.0",
|
|
103
103
|
"@ant-design/pro-components": "^2.7.10",
|
|
104
|
-
"@anthropic-ai/sdk": "^0.
|
|
104
|
+
"@anthropic-ai/sdk": "^0.27.0",
|
|
105
105
|
"@auth/core": "0.28.0",
|
|
106
106
|
"@aws-sdk/client-bedrock-runtime": "^3.637.0",
|
|
107
107
|
"@aws-sdk/client-s3": "^3.637.0",
|
|
@@ -20,10 +20,10 @@ export class LobeAnthropicAI implements LobeRuntimeAI {
|
|
|
20
20
|
|
|
21
21
|
baseURL: string;
|
|
22
22
|
|
|
23
|
-
constructor({ apiKey, baseURL = DEFAULT_BASE_URL }: ClientOptions = {}) {
|
|
23
|
+
constructor({ apiKey, baseURL = DEFAULT_BASE_URL, ...res }: ClientOptions = {}) {
|
|
24
24
|
if (!apiKey) throw AgentRuntimeError.createError(AgentRuntimeErrorType.InvalidProviderAPIKey);
|
|
25
25
|
|
|
26
|
-
this.client = new Anthropic({ apiKey, baseURL });
|
|
26
|
+
this.client = new Anthropic({ apiKey, baseURL, ...res });
|
|
27
27
|
this.baseURL = this.client.baseURL;
|
|
28
28
|
}
|
|
29
29
|
|
package/src/services/chat.ts
CHANGED
|
@@ -134,12 +134,14 @@ export function initializeWithClientStore(provider: string, payload: any) {
|
|
|
134
134
|
case ModelProvider.Qwen: {
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
|
+
|
|
137
138
|
case ModelProvider.Anthropic: {
|
|
138
139
|
providerOptions = {
|
|
139
140
|
baseURL: providerAuthPayload?.endpoint,
|
|
140
141
|
};
|
|
141
142
|
break;
|
|
142
143
|
}
|
|
144
|
+
|
|
143
145
|
case ModelProvider.Mistral: {
|
|
144
146
|
break;
|
|
145
147
|
}
|