Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ’„ style: add build-in web search support for Wenxin & Hunyuan #6617

Merged
merged 12 commits into from
Mar 3, 2025

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Mar 1, 2025

๐Ÿ’ป ๅ˜ๆ›ด็ฑปๅž‹ | Change Type

  • โœจ feat
  • ๐Ÿ› fix
  • โ™ป๏ธ refactor
  • ๐Ÿ’„ style
  • ๐Ÿ‘ท build
  • โšก๏ธ perf
  • ๐Ÿ“ docs
  • ๐Ÿ”จ chore

๐Ÿ”€ ๅ˜ๆ›ด่ฏดๆ˜Ž | Description of Change

  1. ๅขžๅŠ ๅฏน Wenxin ็š„ๅ†…ๅปบ่”็ฝ‘่ƒฝๅŠ›
  2. ่กฅ้ฝ Wenxin ๅŠ Hunyuan ็š„ๅผ•็”จๆฅๆบ้€‚้…
  3. ๅฏ็”จ Qwen ๆตๅผๅทฅๅ…ท่ฐƒ็”จ
ๆไพ›ๅ•† ๆˆชๅ›พ
Wenxin image
Hunyuan image

Note:

  1. ็™พๅบฆ็ป™ไธช่ฐƒ็”จๆ–‡ๆกฃไธๅฎŒๆ•ด๏ผŒ้œ€่ฆๅˆฐ็คบไพ‹ไปฃ็ ไธญๅฟƒไธญ่Žทๅ–ๅฎŒๆ•ดๅ‚ๆ•ฐ
{
  "enable": false,
  "enable_citation": false,
  "enable_trace": false
}
  1. ๅฏ็”จ enable_trace ๅŽ๏ผŒ Wenxin ๆตๅคด้ƒจไผšๅ‚ๅ…ฅ search_results ไฟกๆฏ๏ผŒ็œ‹ไธ‹ๅŽ็ปญๅฆ‚ไฝ•้€‚้… ๅทฒ้€‚้…
data: {"id":"as-kqd1t7j73a","object":"chat.completion.chunk","created":1740848970,"model":"ernie-4.0-8k-latest","choices":[{"index":0,"delta":{"content":"ไปŠๅคฉๆ˜ฏ**","role":"assistant"},"flag":0}],"search_results":[{"index":1,"url":"https://news.cctv.cn/news/china/index.shtml","title":"ไธญๅ›ฝๆ–ฐ้—ป_ๅคฎ่ง†็ฝ‘(cctv.com)"},{"index":2,"url":"http://chinahoy.com.cn/","title":"ไปŠๆ—ฅไธญๅ›ฝ"},{"index":3,"url":"https://www.chinanews.com.cn/china/?q=nnurm","title":"ไธญๅ›ฝๆ–ฐ้—ป็ฝ‘_ๆ—ถๆ”ฟ"}]}
data: {"id":"as-kqd1t7j73a","object":"chat.completion.chunk","created":1740848970,"model":"ernie-4.0-8k-latest","choices":[{"index":0,"delta":{"content":"20"},"flag":0}]}
  1. ๅฏ็”จ search_info ๅŽ๏ผŒHunyuan ๆตไผšๅœจๆฏไธ€ไธช Chunk ไธญๅผ•ๅ…ฅ search_info.search_results ไฟกๆฏ
data: {"id":"354827660ceb924c4bf7a342e9ce543d","object":"chat.completion.chunk","created":1740895143,"model":"hunyuan-turbo","system_fingerprint":"","choices":[{"index":0,"delta":{"role":"assistant","content":"[8](@ref)"},"finish_reason":null}],"note":"ไปฅไธŠๅ†…ๅฎนไธบAI็”Ÿๆˆ๏ผŒไธไปฃ่กจๅผ€ๅ‘่€…็ซ‹ๅœบ๏ผŒ่ฏทๅ‹ฟๅˆ ้™คๆˆ–ไฟฎๆ”นๆœฌๆ ‡่ฎฐ","search_info":{"search_results":[{"index":1,"title":"ไธญๅ›ฝไน‹ๅฃฐใ€Šๅ›ฝ้˜ฒๆ—ถ็ฉบใ€‹(2025ๅนด3ๆœˆ2ๆ—ฅ)","url":"https://new.qq.com/rain/a/20250302A03EMU00","icon":"https://www.qq.com/favicon.ico","text":"่…พ่ฎฏ็ฝ‘"},{"index":2,"title":"2025้‡ๅบ†้ฉฌๆ‹‰ๆพๆ˜Žๅนด3ๆœˆ2ๆ—ฅ้ธฃๆžช่ตท่ท‘,ๅ››ๅคงๅ˜ๅŒ–ๆๅ‰็œ‹!ๅ…จ้ฉฌ้‡้ฉฌ้‡ๅบ†ๅธ‚ๆˆ้ƒฝ้ฉฌๆ‹‰ๆพ_็ฝ‘ๆ˜“่ฎข้˜…","url":"https://www.163.com/dy/article/JGFGGLS0053469M5.html","icon":"https://hunyuan-img-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fpublic/img/b657615e33c5995bce89ec436f8bb666.jpg?q-sign-algorithm=sha1\u0026q-ak=AKIDqQ2UCeGDtjVkjauVp8NM1czNWPAgwvhF\u0026q-sign-time=1736761218%3B4890361218\u0026q-key-time=1736761218%3B4890361218\u0026q-header-list=host\u0026q-url-param-list=\u0026q-signature=1f0344513991557ecfb986a824f7eea7cd789396","text":"็ฝ‘ๆ˜“"}]}}

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

#6475 (comment)

ref: https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Fm2vrveyu
ref: https://console.bce.baidu.com/support/?timestamp=1740848928614#/api?product=QIANFAN&project=%E5%8D%83%E5%B8%86ModelBuilder&parent=%E5%AF%B9%E8%AF%9DChat%20V2&api=v2%2Fchat%2Fcompletions&method=post

image

Copy link

vercel bot commented Mar 1, 2025

@hezhijie0327 is attempting to deploy a commit to the LobeChat Desktop Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 1, 2025
@lobehubbot
Copy link
Member

๐Ÿ‘ @hezhijie0327

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
้žๅธธๆ„Ÿ่ฐขๆ‚จๆๅ‡บๆ‹‰ๅ–่ฏทๆฑ‚ๅนถไธบๆˆ‘ไปฌ็š„็คพๅŒบๅšๅ‡บ่ดก็Œฎ๏ผŒ่ฏท็กฎไฟๆ‚จๅทฒ็ป้ตๅพชไบ†ๆˆ‘ไปฌ็š„่ดก็ŒฎๆŒ‡ๅ—๏ผŒๆˆ‘ไปฌไผšๅฐฝๅฟซๅฎกๆŸฅๅฎƒใ€‚
ๅฆ‚ๆžœๆ‚จ้‡ๅˆฐไปปไฝ•้—ฎ้ข˜๏ผŒ่ฏท้šๆ—ถไธŽๆˆ‘ไปฌ่”็ณปใ€‚

@dosubot dosubot bot added the ๐ŸŒ  Feature Request New feature or request | ็‰นๆ€งไธŽๅปบ่ฎฎ label Mar 1, 2025
Copy link

codecov bot commented Mar 1, 2025

Codecov Report

Attention: Patch coverage is 89.53488% with 9 lines in your changes missing coverage. Please review.

Project coverage is 91.56%. Comparing base (0c24251) to head (99a9fe5).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/wenxin/index.ts 64.70% 6 Missing โš ๏ธ
src/libs/agent-runtime/hunyuan/index.ts 25.00% 3 Missing โš ๏ธ
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6617      +/-   ##
==========================================
- Coverage   91.56%   91.56%   -0.01%     
==========================================
  Files         716      716              
  Lines       67169    67236      +67     
  Branches     3035     3242     +207     
==========================================
+ Hits        61506    61567      +61     
- Misses       5663     5669       +6     
Flag Coverage ฮ”
app 91.56% <89.53%> (-0.01%) โฌ‡๏ธ
server 97.57% <รธ> (รธ)

Flags with carried forward coverage won't be shown. Click here to find out more.

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

@hezhijie0327 hezhijie0327 marked this pull request as draft March 1, 2025 17:00
@hezhijie0327 hezhijie0327 marked this pull request as ready for review March 1, 2025 17:13
@arvinxx
Copy link
Contributor

arvinxx commented Mar 2, 2025

่ฟ™ไธช่พ“ๅ‡บๆจกๅผๅบ”่ฏฅๅฐฑๅ’Œ pplx ็š„ไธ€ๆ ท๏ผŒๅ’Œ่ฟ™ๆฎต้€ป่พ‘็ฑปไผผ๏ผš

if (typeof content === 'string') {
// in Perplexity api, the citation is in every chunk, but we only need to return it once
if ('citations' in chunk && !!chunk.citations && !streamContext?.returnedPplxCitation) {
streamContext.returnedPplxCitation = true;
const citations = (chunk.citations as any[]).map((item) =>
typeof item === 'string' ? ({ title: item, url: item } as CitationItem) : item,
);
return [
{ data: { citations }, id: chunk.id, type: 'grounding' },
{ data: content, id: chunk.id, type: 'text' },
];
}
return { data: content, id: chunk.id, type: 'text' };
}
}

ๅช้œ€่ฆๅšไธชๅˆคๆ–ญๅœจ่ฟ™็ป„ chunk ้‡Œๆ˜ฏๅฆๅŒ…ๅซๆœ‰ search_results ๆ•ฐ็ป„๏ผŒ็„ถๅŽ return ็š„ๆ—ถๅ€™ๅŒๆ—ถreturn grounding ๅ’Œ text ๅณๅฏใ€‚

[
    { data: { citations }, id: chunk.id, type: 'grounding' },
    { data: content, id: chunk.id, type: 'text' },
]

@hezhijie0327 hezhijie0327 changed the title โœจ feat: add build-in web search support for Wenxin โœจ feat: add build-in web search support for Wenxin & Hunyuan Mar 2, 2025
@hezhijie0327
Copy link
Contributor Author

@arvinxx ๅทฒ้€‚้…๏ผŒ้กบๅธฆๆŠŠ Hunyuan ็š„ๅผ•็”จไนŸไธ€่ตทๆžๆŽ‰ไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@arvinxx has been adapted, and Hunyuan's quotation was also removed

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 2, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

้œ€่ฆๅ‚่€ƒ pplx ไธ€ๆ ท๏ผŒ่กฅไธ‹ๅฏนๅบ”็š„ provider ไธ‹็š„ๅ•ๆต‹๏ผš

it('should with search citations', async () => {
const data = [
{
id: '506d64fb-e7f2-4d94-b80f-158369e9446d',
model: 'sonar-pro',
created: 1739896615,
object: 'chat.completion.chunk',
choices: [
{
finish_reason: null,
index: 0,
delta: {
refusal: null,
content: '<think>',
role: 'assistant',
function_call: null,
tool_calls: null,
audio: null,
},
logprobs: null,
},
],
stream_options: null,
citations: null,
},
{
id: '506d64fb-e7f2-4d94-b80f-158369e9446d',
model: 'sonar-pro',
created: 1739896615,
usage: {
prompt_tokens: 4,
completion_tokens: 3,
total_tokens: 7,
citation_tokens: 2217,
num_search_queries: 1,
},
citations: [
'https://www.weather.com.cn/weather/101210101.shtml',
'https://tianqi.moji.com/weather/china/zhejiang/hangzhou',
'https://weather.cma.cn/web/weather/58457.html',
'https://tianqi.so.com/weather/101210101',
'https://www.accuweather.com/zh/cn/hangzhou/106832/weather-forecast/106832',
'https://www.hzqx.com',
'https://www.hzqx.com/pc/hztq/',
],
object: 'chat.completion',
choices: [
{
index: 0,
finish_reason: null,
message: {
role: 'assistant',
content: 'ๆญๅทžไปŠ',
},
delta: {
role: 'assist',
content: 'ๆญๅทžไปŠ',
},
},
],
},
{
id: '506d64fb-e7f2-4d94-b80f-158369e9446d',
model: 'sonar-pro',
created: 1739896615,
usage: {
prompt_tokens: 4,
completion_tokens: 9,
total_tokens: 13,
citation_tokens: 2217,
num_search_queries: 1,
},
citations: [
'https://www.weather.com.cn/weather/101210101.shtml',
'https://tianqi.moji.com/weather/china/zhejiang/hangzhou',
'https://weather.cma.cn/web/weather/58457.html',
'https://tianqi.so.com/weather/101210101',
'https://www.accuweather.com/zh/cn/hangzhou/106832/weather-forecast/106832',
'https://www.hzqx.com',
'https://www.hzqx.com/pc/hztq/',
],
object: 'chat.completion',
choices: [
{
index: 0,
finish_reason: null,
message: {
role: 'assistant',
content: 'ๆญๅทžไปŠๅคฉๅ’Œๆœชๆฅๅ‡ ๅคฉ็š„',
},
delta: {
role: 'assistant',
content: 'ๅคฉๅ’Œๆœชๆฅๅ‡ ๅคฉ็š„',
},
},
],
},
{
id: '506d64fb-e7f2-4d94-b80f-158369e9446d',
model: 'sonar-pro',
created: 1739896615,
usage: {
prompt_tokens: 4,
completion_tokens: 14,
total_tokens: 18,
citation_tokens: 2217,
num_search_queries: 1,
},
citations: [
'https://www.weather.com.cn/weather/101210101.shtml',
'https://tianqi.moji.com/weather/china/zhejiang/hangzhou',
'https://weather.cma.cn/web/weather/58457.html',
'https://tianqi.so.com/weather/101210101',
'https://www.accuweather.com/zh/cn/hangzhou/106832/weather-forecast/106832',
'https://www.hzqx.com',
'https://www.hzqx.com/pc/hztq/',
],
object: 'chat.completion',
choices: [
{
index: 0,
finish_reason: null,
message: {
role: 'assistant',
content: 'ๆญๅทžไปŠๅคฉๅ’Œๆœชๆฅๅ‡ ๅคฉ็š„ๅคฉๆฐ”้ข„ๆŠฅๅฆ‚',
},
},
],
},
];
const mockStream = new ReadableStream({
start(controller) {
data.forEach((chunk) => {
controller.enqueue(chunk);
});
controller.close();
},
});
vi.spyOn(instance['client'].chat.completions, 'create').mockResolvedValue(mockStream as any);
const result = await instance.chat({
messages: [{ content: 'Hello', role: 'user' }],
model: 'mistralai/mistral-7b-instruct:free',
temperature: 0,
});
const decoder = new TextDecoder();
const reader = result.body!.getReader();
const stream: string[] = [];
while (true) {
const { value, done } = await reader.read();
if (done) break;
stream.push(decoder.decode(value));
}
expect(stream).toEqual(
[
'id: 506d64fb-e7f2-4d94-b80f-158369e9446d',
'event: text',
'data: "<think>"\n',
'id: 506d64fb-e7f2-4d94-b80f-158369e9446d',
'event: grounding',
'data: {"citations":[{"title":"https://www.weather.com.cn/weather/101210101.shtml","url":"https://www.weather.com.cn/weather/101210101.shtml"},{"title":"https://tianqi.moji.com/weather/china/zhejiang/hangzhou","url":"https://tianqi.moji.com/weather/china/zhejiang/hangzhou"},{"title":"https://weather.cma.cn/web/weather/58457.html","url":"https://weather.cma.cn/web/weather/58457.html"},{"title":"https://tianqi.so.com/weather/101210101","url":"https://tianqi.so.com/weather/101210101"},{"title":"https://www.accuweather.com/zh/cn/hangzhou/106832/weather-forecast/106832","url":"https://www.accuweather.com/zh/cn/hangzhou/106832/weather-forecast/106832"},{"title":"https://www.hzqx.com","url":"https://www.hzqx.com"},{"title":"https://www.hzqx.com/pc/hztq/","url":"https://www.hzqx.com/pc/hztq/"}]}\n',
'id: 506d64fb-e7f2-4d94-b80f-158369e9446d',
'event: text',
'data: "ๆญๅทžไปŠ"\n',
'id: 506d64fb-e7f2-4d94-b80f-158369e9446d',
'event: text',
'data: "ๅคฉๅ’Œๆœชๆฅๅ‡ ๅคฉ็š„"\n',
'id: 506d64fb-e7f2-4d94-b80f-158369e9446d',
'event: data',
'data: {"id":"506d64fb-e7f2-4d94-b80f-158369e9446d","index":0}\n',
].map((line) => `${line}\n`),
);
expect((await reader.read()).done).toBe(true);
});

@arvinxx
Copy link
Contributor

arvinxx commented Mar 3, 2025

ๅ•ๆต‹ๆŒ‚ไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Single test

@hezhijie0327
Copy link
Contributor Author

่ฏถ ๅชๆ”นไบ† LobeHunyuanAI ๅ’‹ไผšๆŠฅ่ฟ™ไธช้”™

 FAIL  src/libs/agent-runtime/hunyuan/index.test.ts > LobeHunyuanAI > chat > should be undefined when temperature >= 2
{
  endpoint: 'https://api.hunyuan.cloud.tencent.com/v1',
  error: {
    cause: undefined,
    message: "Cannot read properties of undefined (reading 'map')",
    name: 'TypeError',
    stack: "TypeError: Cannot read properties of undefined (reading 'map')\n" +
      '    at Object.start (/home/runner/work/lobe-chat/lobe-chat/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts:105:31)\n' +
      '    at setupReadableStreamDefaultController (node:internal/webstreams/readablestream:2455:23)\n' +
      '    at setupReadableStreamDefaultControllerFromSource (node:internal/webstreams/readablestream:2487:3)\n' +
      '    at new ReadableStream (node:internal/webstreams/readablestream:280:7)\n' +
      '    at transformResponseToStream (/home/runner/work/lobe-chat/lobe-chat/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts:102:10)\n' +
      '    at LobeOpenAICompatibleAI.chat (/home/runner/work/lobe-chat/lobe-chat/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts:257:24)\n' +
      '    at /home/runner/work/lobe-chat/lobe-chat/src/libs/agent-runtime/hunyuan/index.test.ts:51:7\n' +
      '    at runTest (file:///home/runner/work/lobe-chat/lobe-chat/node_modules/@vitest/runner/dist/index.js:675:11)\n' +
      '    at runSuite (file:///home/runner/work/lobe-chat/lobe-chat/node_modules/@vitest/runner/dist/index.js:793:15)\n' +
      '    at runSuite (file:///home/runner/work/lobe-chat/lobe-chat/node_modules/@vitest/runner/dist/index.js:793:15)'
  },
  errorType: 'AgentRuntimeError',
  provider: 'hunyuan',
  expected: 'undefined',
  actual: 'undefined',
  stacks: []
}

@hezhijie0327
Copy link
Contributor Author

hezhijie0327 commented Mar 3, 2025

่ฏ•ๅ‡บๆฅไบ†... src/libs/agent-runtime/hunyuan/index.ts ๅ†…ๅผ•ๅ…ฅ็š„้žๆ ‡ๅ‡†ๅ‚ๆ•ฐๅผ•่ตท็š„ ้žๆตๅผ่ฝฌๆข็š„้—ฎ้ข˜๏ผŒๅŠ ๅ…ฅ stream: true ๅณๅฏ

@hezhijie0327
Copy link
Contributor Author

@arvinxx ไฟฎๅฅฝไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@arvinxx Fixed

Copy link

vercel bot commented Mar 3, 2025

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
lobe-chat-preview โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Mar 3, 2025 2:49pm

@arvinxx arvinxx changed the title โœจ feat: add build-in web search support for Wenxin & Hunyuan ๐Ÿ’„ style: add build-in web search support for Wenxin & Hunyuan Mar 3, 2025
@arvinxx arvinxx merged commit dfd1f09 into lobehub:main Mar 3, 2025
12 of 14 checks passed
@lobehubbot
Copy link
Member

โค๏ธ Great PR @hezhijie0327 โค๏ธ

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
้กน็›ฎ็š„ๆˆ้•ฟ็ฆปไธๅผ€็”จๆˆทๅ้ฆˆๅ’Œ่ดก็Œฎ๏ผŒๆ„Ÿ่ฐขๆ‚จ็š„่ดก็Œฎ! ๅฆ‚ๆžœๆ‚จๅฏน LobeHub ๅผ€ๅ‘่€…็คพๅŒบๆ„Ÿๅ…ด่ถฃ๏ผŒ่ฏทๅŠ ๅ…ฅๆˆ‘ไปฌ็š„ discord๏ผŒ็„ถๅŽ็งไฟก @arvinxx ๆˆ– @canisminor1990ใ€‚ไป–ไปฌไผš้‚€่ฏทๆ‚จๅŠ ๅ…ฅๆˆ‘ไปฌ็š„็งๅฏ†ๅผ€ๅ‘่€…้ข‘้“ใ€‚ๆˆ‘ไปฌๅฐ†ไผš่ฎจ่ฎบๅ…ณไบŽ Lobe Chat ็š„ๅผ€ๅ‘๏ผŒๅˆ†ไบซๅ’Œ่ฎจ่ฎบๅ…จ็ƒ่Œƒๅ›ดๅ†…็š„ AI ๆถˆๆฏใ€‚

github-actions bot pushed a commit that referenced this pull request Mar 3, 2025
### [Version&nbsp;1.68.2](v1.68.1...v1.68.2)
<sup>Released on **2025-03-03**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Add build-in web search support for Wenxin & Hunyuan.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add build-in web search support for Wenxin & Hunyuan, closes [#6617](#6617) ([dfd1f09](dfd1f09))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

๐ŸŽ‰ This PR is included in version 1.68.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Mar 3, 2025
## [Version&nbsp;1.109.0](v1.108.1...v1.109.0)
<sup>Released on **2025-03-03**</sup>

#### โœจ Features

- **misc**: Add new model provider PPIO.

#### ๐Ÿ› Bug Fixes

- **misc**: Fix page crash with crawler error, fix search web-browsing display bug.

#### ๐Ÿ’„ Styles

- **misc**: Add build-in web search support for Wenxin & Hunyuan.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add new model provider PPIO, closes [lobehub#6133](https://github.com/bentwnghk/lobe-chat/issues/6133) ([23a3fda](23a3fda))

#### What's fixed

* **misc**: Fix page crash with crawler error, closes [lobehub#6662](https://github.com/bentwnghk/lobe-chat/issues/6662) ([0c24251](0c24251))
* **misc**: Fix search web-browsing display bug, closes [lobehub#6653](https://github.com/bentwnghk/lobe-chat/issues/6653) ([f472643](f472643))

#### Styles

* **misc**: Add build-in web search support for Wenxin & Hunyuan, closes [lobehub#6617](https://github.com/bentwnghk/lobe-chat/issues/6617) ([dfd1f09](dfd1f09))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@hezhijie0327 hezhijie0327 deleted the wenxin branch March 4, 2025 08:31
Yu-SKun pushed a commit to Yu-SKun/lobe-chat that referenced this pull request Mar 4, 2025
โ€ฆb#6617)

* โœจ feat: add build-in web search support for Wenxin

* ๐Ÿ› fix: fix web_search calling issue

* โœจ feat: add support wenxin `search_results` stream

* โœจ feat: add `search_info` stream support for Hunyuan

* ๐Ÿ”จ chore: minor logic

* ๐Ÿ”จ chore: add unit test

* ๐Ÿ› fix: try to fix ci error

* ๐Ÿ› fix: fix ci error
Yu-SKun pushed a commit to Yu-SKun/lobe-chat that referenced this pull request Mar 4, 2025
### [Version&nbsp;1.68.2](lobehub/lobe-chat@v1.68.1...v1.68.2)
<sup>Released on **2025-03-03**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Add build-in web search support for Wenxin & Hunyuan.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add build-in web search support for Wenxin & Hunyuan, closes [lobehub#6617](lobehub#6617) ([dfd1f09](lobehub@dfd1f09))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐ŸŒ  Feature Request New feature or request | ็‰นๆ€งไธŽๅปบ่ฎฎ released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants