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

✨ feat: upgrade to the new tool calls mode #2414

Merged
merged 24 commits into from May 11, 2024
Merged

✨ feat: upgrade to the new tool calls mode #2414

merged 24 commits into from May 11, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented May 7, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • ⚡️ perf
  • 📝 docs

🔀 变更说明 | Description of Change

Tool Calling 调用模式升级

支持更多有 Function Calling 能力的 Provider 使用插件

📝 补充信息 | Additional Information

refs:

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-community ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 3:17pm

@lobehubbot
Copy link
Member

👍 @arvinxx

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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@arvinxx arvinxx changed the title ✨ feat: 完成 OpenAI 流式 tool_calls 传输协议实现 ✨ feat: upgrade to the new tool_calls mode May 7, 2024
@arvinxx arvinxx changed the title ✨ feat: upgrade to the new tool_calls mode ✨ feat: upgrade to the new tool calls mode May 7, 2024
@BrandonStudio
Copy link
Contributor

考虑支持一下Ollama么

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Consider supporting Ollama?

@arvinxx
Copy link
Contributor Author

arvinxx commented May 10, 2024

@BrandonStudio Ollama 本身不支持 Function Calling,等他们支持了我们就很容易支持

@BrandonStudio
Copy link
Contributor

Ollama 应该是支持的吧?Langchain 可以用 https://python.langchain.com/v0.1/docs/integrations/chat/ollama_functions/

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Ollama should support it, right? Langchain can be used https://python.langchain.com/v0.1/docs/integrations/chat/ollama_functions/

@arvinxx arvinxx mentioned this pull request May 10, 2024
7 tasks
@arvinxx arvinxx merged commit 7404f3b into main May 11, 2024
9 of 10 checks passed
@arvinxx arvinxx deleted the feat/tool-calling branch May 11, 2024 15:41
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

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 消息。

@CXwudi
Copy link

CXwudi commented May 11, 2024

That is a huge improvement of tool calls. Eager to try it out 😁.

github-actions bot pushed a commit that referenced this pull request May 11, 2024
## [Version 0.157.0](v0.156.2...v0.157.0)
<sup>Released on **2024-05-11**</sup>

#### ✨ Features

- **misc**:  upgrade to the new `tool calls` mode.

<br/>

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

#### What's improved

* **misc**:  upgrade to the new `tool calls` mode, closes [#2414](#2414) ([7404f3b](7404f3b))

</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 0.157.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request May 12, 2024
## [Version&nbsp;1.37.0](v1.36.2...v1.37.0)
<sup>Released on **2024-05-12**</sup>

#### ✨ Features

- **misc**:  upgrade to the new `tool calls` mode.

<br/>

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

#### What's improved

* **misc**:  upgrade to the new `tool calls` mode, closes [lobehub#2414](https://github.com/bentwnghk/lobe-chat/issues/2414) ([7404f3b](7404f3b))

</details>

<div align="right">

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

</div>
TheNameIsNigel pushed a commit to TheNameIsNigel/lobe-chat that referenced this pull request May 15, 2024
* ✨ feat: finish OpenAI stream tool_calls protocol

* 💄 style: design the Tool Call UI

* ✨ feat: support zhipu GLM tool calling

* ✨ feat: support moonshot function calling

* ✨ feat: support groq tool callings

* ✨ feat: azure openai stream tool calling

* ✨ feat: support minimax tool calling

* ✨ feat: support mistral tool calling

* ✨ feat: support google tool calling

* ✨ feat: support anthropic tool calling

* ♻️ refactor: refactor ollama stream

* ♻️ refactor: refactor the protocol stream transformer

* ♻️ refactor: refactor the bedrock stream

* ♻️ refactor: remove Stream Text Response

* ✅ test: clean some tests

* 🗃️ refactor: import and export tool migration

* 🗃️ refactor: migrate database

* ✅ test: fix test

* ♻️ refactor: refactor createCallbacksTransformer to fix tests

* ✅ test: add tests for runtime

* ✅ test: add more tests

* ✅ test: add test

* 🎨 chore: improve code

* 🐛 fix: fix auto meta
TheNameIsNigel pushed a commit to TheNameIsNigel/lobe-chat that referenced this pull request May 15, 2024
## [Version&nbsp;0.157.0](lobehub/lobe-chat@v0.156.2...v0.157.0)
<sup>Released on **2024-05-11**</sup>

#### ✨ Features

- **misc**:  upgrade to the new `tool calls` mode.

<br/>

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

#### What's improved

* **misc**:  upgrade to the new `tool calls` mode, closes [lobehub#2414](lobehub#2414) ([7404f3b](lobehub@7404f3b))

</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