@lobehub/chat 0.149.5 → 0.149.6
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 0.149.6](https://github.com/lobehub/lobe-chat/compare/v0.149.5...v0.149.6)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-04-26**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix ollama host issue.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix ollama host issue, closes [#2210](https://github.com/lobehub/lobe-chat/issues/2210) ([c49d4c7](https://github.com/lobehub/lobe-chat/commit/c49d4c7))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.149.5](https://github.com/lobehub/lobe-chat/compare/v0.149.4...v0.149.5)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-04-25**</sup>
|
|
@@ -13,15 +13,15 @@ tags:
|
|
|
13
13
|
|
|
14
14
|
<div style={{display:"flex", gap: 4}}>
|
|
15
15
|
|
|
16
|
-
[![]
|
|
16
|
+
[](https://hub.docker.com/r/lobehub/lobe-chat)
|
|
17
17
|
|
|
18
|
-
[![]
|
|
18
|
+
[](https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square)
|
|
19
19
|
|
|
20
|
-
[![]
|
|
20
|
+
[](https://img.shields.io/docker/pulls/lobehub/lobe-chat?color=45cc11&labelColor=black&style=flat-square)
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
|
-
我们提供了 [Docker 镜像]
|
|
24
|
+
我们提供了 [Docker 镜像](https://hub.docker.com/r/lobehub/lobe-chat) ,供你在自己的私有设备上部署 LobeChat 服务。
|
|
25
25
|
|
|
26
26
|
<Steps>
|
|
27
27
|
|
|
@@ -57,16 +57,17 @@ $ yum install docker
|
|
|
57
57
|
version: '3.8'
|
|
58
58
|
|
|
59
59
|
services:
|
|
60
|
-
lobe-chat:
|
|
61
|
-
image: lobehub/lobe-chat
|
|
62
|
-
container_name: lobe-chat
|
|
63
|
-
restart: always
|
|
64
|
-
ports:
|
|
65
|
-
- '3210:3210'
|
|
66
|
-
environment:
|
|
67
|
-
OPENAI_API_KEY: sk-xxxx
|
|
68
|
-
OPENAI_PROXY_URL: https://api-proxy.com/v1
|
|
69
|
-
ACCESS_CODE: lobe66
|
|
60
|
+
lobe-chat:
|
|
61
|
+
image: lobehub/lobe-chat
|
|
62
|
+
container_name: lobe-chat
|
|
63
|
+
restart: always
|
|
64
|
+
ports:
|
|
65
|
+
- '3210:3210'
|
|
66
|
+
environment:
|
|
67
|
+
OPENAI_API_KEY: sk-xxxx
|
|
68
|
+
OPENAI_PROXY_URL: https://api-proxy.com/v1
|
|
69
|
+
ACCESS_CODE: lobe66
|
|
70
|
+
|
|
70
71
|
```
|
|
71
72
|
|
|
72
73
|
运行以下命令启动 Lobe Chat 服务:
|
|
@@ -131,10 +132,3 @@ Configure Crontab to execute the script every 5 minutes:
|
|
|
131
132
|
```
|
|
132
133
|
|
|
133
134
|
</Steps>
|
|
134
|
-
|
|
135
|
-
[docker-pulls-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
136
|
-
[docker-pulls-shield]: https://img.shields.io/docker/pulls/lobehub/lobe-chat?color=45cc11&labelColor=black&style=flat-square
|
|
137
|
-
[docker-release-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
138
|
-
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
|
|
139
|
-
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
140
|
-
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.149.
|
|
3
|
+
"version": "0.149.6",
|
|
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",
|
|
@@ -24,7 +24,7 @@ export class LobeOllamaAI implements LobeRuntimeAI {
|
|
|
24
24
|
throw AgentRuntimeError.createError(AgentRuntimeErrorType.InvalidOllamaArgs);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
this.client = new Ollama(!baseURL ? undefined : { host:
|
|
27
|
+
this.client = new Ollama(!baseURL ? undefined : { host: baseURL });
|
|
28
28
|
|
|
29
29
|
if (baseURL) this.baseURL = baseURL;
|
|
30
30
|
}
|
package/src/services/ollama.ts
CHANGED
|
@@ -27,8 +27,7 @@ export class OllamaService {
|
|
|
27
27
|
getHost = (): string => {
|
|
28
28
|
const config = modelConfigSelectors.ollamaConfig(useGlobalStore.getState());
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
return url.host;
|
|
30
|
+
return config.endpoint || DEFAULT_BASE_URL;
|
|
32
31
|
};
|
|
33
32
|
|
|
34
33
|
getOllamaClient = () => {
|