lobehub/lobe-chat

[Request] Claude Plugin Support #1472

BrandonStudio posted onGitHub

🥰 需求描述

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

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot about 1 year ago

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

posted by arvinxx about 1 year ago

@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?

posted by BrandonStudio about 1 year ago

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

posted by arvinxx about 1 year ago

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

Do you consider modify the gateway to fit this?

posted by BrandonStudio 12 months ago

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.

posted by walkley 11 months ago

@walkley That's really a good news!

posted by BrandonStudio 11 months ago

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

posted by arvinxx 11 months ago

✅ @BrandonStudio

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

posted by lobehubbot 10 months ago

:tada: This issue has been resolved in version 0.157.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

posted by lobehubbot 10 months ago

Fund this Issue

$0.00
Funded

Pull requests