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

[Request] Claude Plugin Support #1472

Closed
BrandonStudio opened this issue Mar 6, 2024 · 10 comments · Fixed by #2414
Closed

[Request] Claude Plugin Support #1472

BrandonStudio opened this issue Mar 6, 2024 · 10 comments · Fixed by #2414
Labels
🌠 Feature Request New feature or request | 特性与建议 released

Comments

@BrandonStudio
Copy link
Contributor

🥰 需求描述

Claude has now supported function calling with new Claude 3 models, see https://docs.anthropic.com/claude/docs/functions-external-tools. It would be very nice to add plugin support for Claude.

🧐 解决方案

Add plugin support for Anthropic Claude API whose model is the 3rd generation.

📝 补充信息

There is a very different thing that Claude API does not use JSON format for functions, rather, it uses XML. Consequently it may take extra effort to do adaptation.

@BrandonStudio BrandonStudio added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 6, 2024
@lobehubbot
Copy link
Member

👀 @BrandonStudio

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Mar 6, 2024

I think it's painful and non-maintainable to support claude plugin with this xml syntax. I prefer to wait for an easier solution 🤷‍♂️

@BrandonStudio
Copy link
Contributor Author

@arvinxx Are this project now support both OpenAPI schema and "function call json schema" or just single OpenAPI schema for prompt to LLMs?
For former could we make a wrapper for function defination to adapt it for different LLMs?

@arvinxx
Copy link
Contributor

arvinxx commented Mar 7, 2024

We support function calling. OpenAPI schema also will be transform to fc schema when invoking

@BrandonStudio
Copy link
Contributor Author

It is very painful not to take advantage of Claude together with plugins :(

Do you consider modify the gateway to fit this?

@walkley
Copy link

walkley commented Apr 5, 2024

Claude function calling enters public beta today: https://docs.anthropic.com/claude/docs/tool-use
Now it use JSON function/tool schema format, I believe it's much more easier to integrate with LobeChat.

@BrandonStudio
Copy link
Contributor Author

@walkley That's really a good news!

@arvinxx
Copy link
Contributor

arvinxx commented Apr 5, 2024

Yes, I think so. I will try to integrate with it soon

@lobehubbot
Copy link
Member

@BrandonStudio

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 0.157.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants