@lobehub/chat 1.131.2 → 1.131.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.131.3](https://github.com/lobehub/lobe-chat/compare/v1.131.2...v1.131.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-09-21**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Update Responses search tool to web_search.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Update Responses search tool to web_search, closes [#9354](https://github.com/lobehub/lobe-chat/issues/9354) ([58d34ff](https://github.com/lobehub/lobe-chat/commit/58d34ff))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.131.2](https://github.com/lobehub/lobe-chat/compare/v1.131.1...v1.131.2)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-09-21**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.131.
|
|
3
|
+
"version": "1.131.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",
|
|
@@ -249,7 +249,7 @@ describe('LobeOpenAI', () => {
|
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
describe('responses.handlePayload', () => {
|
|
252
|
-
it('should add
|
|
252
|
+
it('should add web_search tool when enabledSearch is true', async () => {
|
|
253
253
|
const payload = {
|
|
254
254
|
messages: [{ content: 'Hello', role: 'user' as const }],
|
|
255
255
|
model: 'gpt-4o', // 使用常规模型,通过 enabledSearch 触发 responses API
|
|
@@ -263,7 +263,7 @@ describe('LobeOpenAI', () => {
|
|
|
263
263
|
const createCall = (instance['client'].responses.create as Mock).mock.calls[0][0];
|
|
264
264
|
expect(createCall.tools).toEqual([
|
|
265
265
|
{ type: 'function', name: 'test', description: 'test' },
|
|
266
|
-
{ type: '
|
|
266
|
+
{ type: 'web_search' },
|
|
267
267
|
]);
|
|
268
268
|
});
|
|
269
269
|
|