@lobehub/chat 1.34.2 → 1.34.3
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.34.3](https://github.com/lobehub/lobe-chat/compare/v1.34.2...v1.34.3)
|
6
|
+
|
7
|
+
<sup>Released on **2024-11-27**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix fallback behavior of default mode in AgentRuntime.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix fallback behavior of default mode in AgentRuntime, closes [#4813](https://github.com/lobehub/lobe-chat/issues/4813) ([e7cb62e](https://github.com/lobehub/lobe-chat/commit/e7cb62e))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.34.2](https://github.com/lobehub/lobe-chat/compare/v1.34.1...v1.34.2)
|
6
31
|
|
7
32
|
<sup>Released on **2024-11-27**</sup>
|
package/README.md
CHANGED
@@ -285,14 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
285
285
|
|
286
286
|
<!-- AGENT LIST -->
|
287
287
|
|
288
|
-
| Recent Submits
|
289
|
-
|
|
290
|
-
| [
|
291
|
-
| [
|
292
|
-
| [
|
293
|
-
| [
|
294
|
-
|
295
|
-
> 📊 Total agents: [<kbd>**
|
288
|
+
| Recent Submits | Description |
|
289
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
290
|
+
| [Backend Development Assistant](https://chat-preview.lobehub.com/market?agent=backend-assistant)<br/><sup>By **[zeno980](https://github.com/zeno980)** on **2024-11-26**</sup> | Skilled in backend development tasks<br/>`backend-development` `ai-technology` `web-applications` `spring` `sql` |
|
291
|
+
| [Bilingual Dictionary Expert](https://chat-preview.lobehub.com/market?agent=english-chinese-dictionary-expert)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-11-26**</sup> | Expert in bilingual English-Chinese vocabulary translation and analysis<br/>`translation` `language-learning` `vocabulary` `dictionary` |
|
292
|
+
| [SSC Incremental](https://chat-preview.lobehub.com/market?agent=great-for-analysis-coding-and-rubber-ducking)<br/><sup>By **[Base03](https://github.com/Base03)** on **2024-11-26**</sup> | Claude minus the Reddit<br/>`technology` `analysis` `software` `ai` `research` |
|
293
|
+
| [Interviewer's Assistant](https://chat-preview.lobehub.com/market?agent=interviewer-assistant)<br/><sup>By **[xandertang](https://github.com/Dr-T)** on **2024-11-26**</sup> | Proficient in designing and evaluating interview questions for product managers, generating interview questions based on resume interpretation results.<br/>`interview` `resume` `recruitment` `efficiency` |
|
294
|
+
|
295
|
+
> 📊 Total agents: [<kbd>**446**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
296
296
|
|
297
297
|
<!-- AGENT LIST -->
|
298
298
|
|
package/README.zh-CN.md
CHANGED
@@ -274,14 +274,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
274
274
|
|
275
275
|
<!-- AGENT LIST -->
|
276
276
|
|
277
|
-
| 最近新增
|
278
|
-
|
|
279
|
-
| [
|
280
|
-
| [
|
281
|
-
| [
|
282
|
-
| [
|
283
|
-
|
284
|
-
> 📊 Total agents: [<kbd>**
|
277
|
+
| 最近新增 | 助手说明 |
|
278
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
279
|
+
| [后端开发助手](https://chat-preview.lobehub.com/market?agent=backend-assistant)<br/><sup>By **[zeno980](https://github.com/zeno980)** on **2024-11-26**</sup> | 擅长后端开发任务<br/>`后端开发` `ai技术` `web应用` `spring` `sql` |
|
280
|
+
| [双语词典专家](https://chat-preview.lobehub.com/market?agent=english-chinese-dictionary-expert)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-11-26**</sup> | 双语英语 - 中文词汇翻译和分析专家<br/>`翻译` `语言学习` `词汇` `词典` |
|
281
|
+
| [SSC 增量](https://chat-preview.lobehub.com/market?agent=great-for-analysis-coding-and-rubber-ducking)<br/><sup>By **[Base03](https://github.com/Base03)** on **2024-11-26**</sup> | Claude 减去 Reddit<br/>`技术` `分析` `软件` `人工智能` `研究` |
|
282
|
+
| [面试官助手](https://chat-preview.lobehub.com/market?agent=interviewer-assistant)<br/><sup>By **[xandertang](https://github.com/Dr-T)** on **2024-11-26**</sup> | Proficient in designing and evaluating interview questions for product managers, generating interview questions based on resume interpretation results.<br/>`面试` `简历` `招聘` `效率` |
|
283
|
+
|
284
|
+
> 📊 Total agents: [<kbd>**446**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
285
285
|
|
286
286
|
<!-- AGENT LIST -->
|
287
287
|
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.34.
|
3
|
+
"version": "1.34.3",
|
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",
|
@@ -370,6 +370,28 @@ describe('initAgentRuntimeWithUserPayload method', () => {
|
|
370
370
|
expect(runtime['_runtime']).toBeInstanceOf(LobeWenxinAI);
|
371
371
|
});
|
372
372
|
|
373
|
+
it('OpenAI provider: without apikey with OPENAI_PROXY_URL', async () => {
|
374
|
+
process.env.OPENAI_PROXY_URL = 'https://proxy.example.com/v1';
|
375
|
+
|
376
|
+
const jwtPayload: JWTPayload = {};
|
377
|
+
const runtime = await initAgentRuntimeWithUserPayload(ModelProvider.OpenAI, jwtPayload);
|
378
|
+
expect(runtime['_runtime']).toBeInstanceOf(LobeOpenAI);
|
379
|
+
// 应返回 OPENAI_PROXY_URL
|
380
|
+
expect(runtime['_runtime'].baseURL).toBe('https://proxy.example.com/v1');
|
381
|
+
});
|
382
|
+
|
383
|
+
it('Qwen AI provider: without apiKey and endpoint with OPENAI_PROXY_URL', async () => {
|
384
|
+
process.env.OPENAI_PROXY_URL = 'https://proxy.example.com/v1';
|
385
|
+
|
386
|
+
const jwtPayload: JWTPayload = {};
|
387
|
+
const runtime = await initAgentRuntimeWithUserPayload(ModelProvider.Qwen, jwtPayload);
|
388
|
+
|
389
|
+
// 假设 LobeQwenAI 是 Qwen 提供者的实现类
|
390
|
+
expect(runtime['_runtime']).toBeInstanceOf(LobeQwenAI);
|
391
|
+
// endpoint 不存在,应返回 DEFAULT_BASE_URL
|
392
|
+
expect(runtime['_runtime'].baseURL).toBe('https://dashscope.aliyuncs.com/compatible-mode/v1');
|
393
|
+
});
|
394
|
+
|
373
395
|
it('Unknown Provider', async () => {
|
374
396
|
const jwtPayload = {};
|
375
397
|
const runtime = await initAgentRuntimeWithUserPayload('unknown', jwtPayload);
|
@@ -33,7 +33,7 @@ const getLlmOptionsFromPayload = (provider: string, payload: JWTPayload) => {
|
|
33
33
|
default: {
|
34
34
|
let upperProvider = provider.toUpperCase();
|
35
35
|
|
36
|
-
if (!
|
36
|
+
if (!( `${upperProvider}_API_KEY` in llmConfig)) {
|
37
37
|
upperProvider = ModelProvider.OpenAI.toUpperCase(); // Use OpenAI options as default
|
38
38
|
}
|
39
39
|
|