@lobehub/chat 1.74.4 → 1.74.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,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.74.6](https://github.com/lobehub/lobe-chat/compare/v1.74.5...v1.74.6)
|
6
|
+
|
7
|
+
<sup>Released on **2025-03-24**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Set max_completion_tokens to undefined for Azure OpenAI.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Set max_completion_tokens to undefined for Azure OpenAI, closes [#7114](https://github.com/lobehub/lobe-chat/issues/7114) ([30b66b9](https://github.com/lobehub/lobe-chat/commit/30b66b9))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.74.5](https://github.com/lobehub/lobe-chat/compare/v1.74.4...v1.74.5)
|
31
|
+
|
32
|
+
<sup>Released on **2025-03-23**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix wechat login error with next-auth.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Fix wechat login error with next-auth, closes [#6585](https://github.com/lobehub/lobe-chat/issues/6585) ([c58d77a](https://github.com/lobehub/lobe-chat/commit/c58d77a))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.74.4](https://github.com/lobehub/lobe-chat/compare/v1.74.3...v1.74.4)
|
6
56
|
|
7
57
|
<sup>Released on **2025-03-23**</sup>
|
package/README.md
CHANGED
@@ -328,12 +328,12 @@ In addition, these plugins are not limited to news aggregation, but can also ext
|
|
328
328
|
|
329
329
|
| Recent Submits | Description |
|
330
330
|
| ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
331
|
+
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-03-23**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
|
331
332
|
| [Web](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | Smart web search that reads and analyzes pages to deliver comprehensive answers from Google results.<br/>`web` `search` |
|
332
333
|
| [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | Find any NFT data on the NEAR Protocol.<br/>`crypto` `nft` |
|
333
334
|
| [Bing_websearch](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | Search for information from the internet base BingApi<br/>`bingsearch` |
|
334
|
-
| [Google CSE](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | Searches Google through their official CSE API.<br/>`web` `search` |
|
335
335
|
|
336
|
-
> 📊 Total plugins: [<kbd>**
|
336
|
+
> 📊 Total plugins: [<kbd>**46**</kbd>](https://lobechat.com/discover/plugins)
|
337
337
|
|
338
338
|
<!-- PLUGIN LIST -->
|
339
339
|
|
package/README.zh-CN.md
CHANGED
@@ -321,12 +321,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
321
321
|
|
322
322
|
| 最近新增 | 描述 |
|
323
323
|
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
324
|
+
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-03-23**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
|
324
325
|
| [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网页` `搜索` |
|
325
326
|
| [MintbaseSearch](https://lobechat.com/discover/plugin/mintbasesearch)<br/><sup>By **mintbase** on **2024-12-31**</sup> | 在 NEAR 协议上查找任何 NFT 数据。<br/>`加密货币` `nft` |
|
326
327
|
| [必应网页搜索](https://lobechat.com/discover/plugin/Bingsearch-identifier)<br/><sup>By **FineHow** on **2024-12-22**</sup> | 通过 BingApi 搜索互联网上的信息<br/>`bingsearch` |
|
327
|
-
| [谷歌自定义搜索引擎](https://lobechat.com/discover/plugin/google-cse)<br/><sup>By **vsnthdev** on **2024-12-02**</sup> | 通过他们的官方自定义搜索引擎 API 搜索谷歌。<br/>`网络` `搜索` |
|
328
328
|
|
329
|
-
> 📊 Total plugins: [<kbd>**
|
329
|
+
> 📊 Total plugins: [<kbd>**46**</kbd>](https://lobechat.com/discover/plugins)
|
330
330
|
|
331
331
|
<!-- PLUGIN LIST -->
|
332
332
|
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Set max_completion_tokens to undefined for Azure OpenAI."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-03-24",
|
9
|
+
"version": "1.74.6"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Fix wechat login error with next-auth."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-03-23",
|
18
|
+
"version": "1.74.5"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"fixes": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.74.
|
3
|
+
"version": "1.74.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",
|
@@ -52,7 +52,7 @@ export class LobeAzureOpenAI implements LobeRuntimeAI {
|
|
52
52
|
messages: updatedMessages as OpenAI.ChatCompletionMessageParam[],
|
53
53
|
model,
|
54
54
|
...params,
|
55
|
-
max_completion_tokens:
|
55
|
+
max_completion_tokens: undefined,
|
56
56
|
stream: enableStreaming,
|
57
57
|
tool_choice: params.tools ? 'auto' : undefined,
|
58
58
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import WeChat from '@auth/core/providers/wechat';
|
1
|
+
import WeChat, { WeChatProfile } from '@auth/core/providers/wechat';
|
2
2
|
|
3
3
|
import { CommonProviderConfig } from './sso.config';
|
4
4
|
|
@@ -9,7 +9,7 @@ const provider = {
|
|
9
9
|
clientId: process.env.AUTH_WECHAT_ID,
|
10
10
|
clientSecret: process.env.AUTH_WECHAT_SECRET,
|
11
11
|
platformType: 'WebsiteApp',
|
12
|
-
profile: (profile) => {
|
12
|
+
profile: (profile: WeChatProfile) => {
|
13
13
|
return {
|
14
14
|
email: null,
|
15
15
|
id: profile.unionid,
|
@@ -18,6 +18,18 @@ const provider = {
|
|
18
18
|
providerAccountId: profile.unionid,
|
19
19
|
};
|
20
20
|
},
|
21
|
+
style: { bg: '#fff', logo: 'https://authjs.dev/img/providers/wechat.svg', text: '#000' },
|
22
|
+
token: {
|
23
|
+
async conform(response: Response) {
|
24
|
+
const data = await response.json();
|
25
|
+
console.log('wechat data:', data);
|
26
|
+
return new Response(JSON.stringify({ ...data, token_type: 'bearer' }), {
|
27
|
+
headers: { 'Content-Type': 'application/json' },
|
28
|
+
});
|
29
|
+
},
|
30
|
+
params: { appid: process.env.AUTH_WECHAT_ID, secret: process.env.AUTH_WECHAT_SECRET },
|
31
|
+
url: 'https://api.weixin.qq.com/sns/oauth2/access_token',
|
32
|
+
},
|
21
33
|
}),
|
22
34
|
};
|
23
35
|
|