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 function call back for taichu_llm #4119

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

hezhijie0327
Copy link
Contributor

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

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

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

  1. ๅ›žๆปš ๐Ÿ’„ style: disable taichu2.0 functioncall & default disable taichu2.0v modelย #4117 ไธญ็งป้™ค็š„ functionCall ๆ ‡็ญพ๏ผŒ็ปๆต‹่ฏ•ๅ…ถๅŠŸ่ƒฝๅฏ็”จ๏ผŒๅชๆ˜ฏๅฏน้ƒจๅˆ†ๅทฅๅ…ทๆ”ฏๆŒไธ่กŒ
  2. ๆณจ้‡Š taichu_vqa ๆจกๅž‹ๅนถๆ ‡่ฎฐ TODO๏ผŒๅฏน่ฏๅŠŸ่ƒฝๅฎŒๅ…จไธๅฏ็”จ็š„ๆƒ…ๅ†ต๏ผŒไธๅบ”่ฏฅๅ‡บ็Žฐๅœจ็”จๆˆท็š„ๅฏ้€‰้กนๅ†…๏ผŒๅ‚่€ƒไน‹ๅ‰ AWS Bedrock ็š„ๆจกๅž‹ๅˆ—่กจไธญๅ‡บ็Žฐ็š„ไธๅฏ็”จๆจกๅž‹

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

ๆˆๅŠŸๆกˆไพ‹
image
image
image
ๅคฑ่ดฅๆกˆไพ‹
image
image

Copy link

vercel bot commented Sep 24, 2024

@hezhijie0327 is attempting to deploy a commit to the LobeHub Pro Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 24, 2024
@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 ๐Ÿ’„ Design Design an style | ๆ ทๅผ้—ฎ้ข˜ label Sep 24, 2024
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests โœ…

Project coverage is 92.48%. Comparing base (10145fa) to head (41774c8).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4119   +/-   ##
=======================================
  Coverage   92.48%   92.48%           
=======================================
  Files         482      482           
  Lines       34467    34470    +3     
  Branches     3223     3224    +1     
=======================================
+ Hits        31878    31881    +3     
  Misses       2589     2589           
Flag Coverage ฮ”
app 92.48% <100.00%> (+<0.01%) โฌ†๏ธ
server 97.36% <รธ> (รธ)

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.

@LovelyGuYiMeng
Copy link
Contributor

ๅ‡ฝๆ•ฐ่ฐƒ็”จๆˆ‘ๅช่ฏ•ไบ†ๆŽˆ็ฒ‰็ป˜็”ปๅ’Œๅฎžๆ—ถๅคฉๆฐ”๏ผŒๅฏๆ˜ฏๆˆ‘่ฏ•ๅฎžๆ—ถๅคฉๆฐ”็š„ๆ—ถๅ€™ไนŸๆฒก่งฆๅ‘ๆ’ไปถ่ฐƒ็”จๅ‘€๏ผŒไธ็Ÿฅ้“ไธบไป€ไนˆ

@lobehubbot
Copy link
Member

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


I only tried pollination painting and real-time weather for function calls, but when I tried real-time weather, the plug-in call was not triggered. I donโ€™t know why.

@hezhijie0327
Copy link
Contributor Author

ไผฐ่ฎกๆ˜ฏ Prompt ๆˆ–่€…็ฝ‘็ปœ้—ฎ้ข˜... ๆตๅผ่พ“ๅ‡บ DEBUG_TAICHU_CHAT_COMPLETION=1 ๆ—ฅๅฟ—ๅฆ‚ไธ‹
image
image

[stream start] 2024-9-25 7:25:8.969
[chunk 0] 2024-9-25 7:25:8.993
{"id":"34c9cd6e-9291-4b8d-8b35-4ffe92231085","object":"chat.completion.chunk","created":1727249107,"model":"taichu_llm","choices":[{"index":0,"delta":{"role":"assistant","content":"","tool_calls":[{"type":"function","function":{"name":"realtime-weather____fetchCurrentWeather","arguments":"{\"city\": \"ไธŠๆตท\"}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":126,"total_tokens":150,"completion_tokens":24}}

[stream finished] total chunks: 1

[realtime-weather] - fetchCurrentWeather

[stream start] 2024-9-25 7:25:24.842
[chunk 0] 2024-9-25 7:25:24.848
{"id":"1410bfe2-8a93-4f97-81b4-a92865e69589","object":"chat.completion.chunk","created":1727249124,"model":"taichu_llm","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":""}],"usage":{"prompt_tokens":0,"total_tokens":0,"completion_tokens":0}}
[chunk 1] 2024-9-25 7:25:24.881
{"id":"1410bfe2-8a93-4f97-81b4-a92865e69589","object":"chat.completion.chunk","created":1727249124,"model":"taichu_llm","choices":[{"index":0,"delta":{"content":"ๆ นๆฎ"},"finish_reason":""}],"usage":{"prompt_tokens":0,"total_tokens":0,"completion_tokens":0}}
[chunk 2] 2024-9-25 7:25:24.912
{"id":"1410bfe2-8a93-4f97-81b4-a92865e69589","object":"chat.completion.chunk","created":1727249124,"model":"taichu_llm","choices":[{"index":0,"delta":{"content":"ๆ‚จ็š„"},"finish_reason":""}],"usage":{"prompt_tokens":0,"total_tokens":0,"completion_tokens":0}}
[chunk 3] 2024-9-25 7:25:24.948
{"id":"1410bfe2-8a93-4f97-81b4-a92865e69589","object":"chat.completion.chunk","created":1727249124,"model":"taichu_llm","choices":[{"index":0,"delta":{"content":"ๆŸฅ่ฏข"},"finish_reason":""}],"usage":{"prompt_tokens":0,"total_tokens":0,"completion_tokens":0}}

@arvinxx arvinxx merged commit 8f629d8 into lobehub:main Sep 25, 2024
6 of 8 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 Sep 25, 2024
### [Version&nbsp;1.19.32](v1.19.31...v1.19.32)
<sup>Released on **2024-09-25**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Add function call for `taichu_llm`.

<br/>

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

#### Styles

* **misc**: Add function call for `taichu_llm`, closes [#4119](#4119) ([8f629d8](8f629d8))

</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.19.32 ๐ŸŽ‰

The release is available on:

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

@hezhijie0327 hezhijie0327 deleted the taichu branch September 25, 2024 20:59
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Sep 25, 2024
### [Version&nbsp;1.62.14](v1.62.13...v1.62.14)
<sup>Released on **2024-09-25**</sup>

#### ๐Ÿ› Bug Fixes

- **misc**: MiniMax output long content interrupted by non-existent error.

#### ๐Ÿ’„ Styles

- **misc**: Add function call for `taichu_llm`, update google provider model info.

<br/>

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

#### What's fixed

* **misc**: MiniMax output long content interrupted by non-existent error, closes [lobehub#4088](https://github.com/bentwnghk/lobe-chat/issues/4088) ([4f6e20d](4f6e20d))

#### Styles

* **misc**: Add function call for `taichu_llm`, closes [lobehub#4119](https://github.com/bentwnghk/lobe-chat/issues/4119) ([8f629d8](8f629d8))
* **misc**: Update google provider model info, closes [lobehub#4129](https://github.com/bentwnghk/lobe-chat/issues/4129) ([b1442b9](b1442b9))

</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
๐Ÿ’„ Design Design an style | ๆ ทๅผ้—ฎ้ข˜ released size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants