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

[Bug] Openrouter模型不支持函数 #3269

Closed
shog86 opened this issue Jul 20, 2024 · 23 comments · Fixed by #3835
Closed

[Bug] Openrouter模型不支持函数 #3269

shog86 opened this issue Jul 20, 2024 · 23 comments · Fixed by #3835
Labels
🐛 Bug Something isn't working | 缺陷 released

Comments

@shog86
Copy link

shog86 commented Jul 20, 2024

📦 Environment

Vercel

📌 Version

1.6.1

💻 Operating System

macOS

🌐 Browser

Chrome

🐛 Bug Description

LobeChat 2024-07-20 22 54 33 这是Lobe的问题还是Openrouter的问题? 而且Openrouter的Gemma 2 9b free用不了,但Qwen 2 7b可以用

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@shog86 shog86 added the 🐛 Bug Something isn't working | 缺陷 label Jul 20, 2024
@lobehubbot
Copy link
Member

👀 @shog86

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

@shog86
Copy link
Author

shog86 commented Jul 20, 2024

用不了的意思是会是这样
image

@lobehubbot
Copy link
Member

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


It doesn't work, it means it will be like this
image

@shog86
Copy link
Author

shog86 commented Jul 20, 2024

Good news: Tool use / function calling works fine via OpenRouter and GPT-4o mini, Claude wrote a nice Python script that works nearly out-of-the-box, just change the model name from openai/gpt-4 to openai/gpt-4o-mini -> https://claude.site/artifacts/34895885-69b0-4ab5-a3c4-2babf85dc5c5 (tested)

@JJTools
Copy link

JJTools commented Jul 24, 2024

You can open it yourself
+mode<fc>
+gpt-3.5<fc>

@lobehubbot
Copy link
Member

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


You can open it yourself
+mode
+gpt-3.5

@shog86
Copy link
Author

shog86 commented Jul 26, 2024

You can open it yourself

+mode<fc>

+gpt-3.5<fc>

How do I do it in lobechat?

@JJTools
Copy link

JJTools commented Jul 26, 2024

Reference documents, list of custom models
-all,+gpt-35=git-35<200000:fc:vision>
You can configure it to turn on some support

@wangdake5111
Copy link

同样的问题,请问解决了吗

@lobehubbot
Copy link
Member

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


Same problem, has it been solved?

@shog86
Copy link
Author

shog86 commented Aug 6, 2024

@arvinxx 求看这个问题。。。类似的还有#3346

@arvinxx
Copy link
Contributor

arvinxx commented Aug 7, 2024

现在是否支持插件的判断是根据desc中是否有function calling字段

@lobehubbot
Copy link
Member

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


Now whether the plug-in is supported is judged based on whether there is a function calling field in desc.

@shog86
Copy link
Author

shog86 commented Aug 7, 2024

现在是否支持插件的判断是根据desc中是否有function calling字段

但OpenRouter本身的API,这些模型都是支持FC的,是要在lobechat哪里设置一下才能用吗?

@lobehubbot
Copy link
Member

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


Now whether the plug-in is supported is judged based on whether there is a function calling field in desc

But the API of OpenRouter itself and these models all support FC. Do I need to set it up in lobechat to use it?

@hllshiro
Copy link

hllshiro commented Aug 9, 2024

image
image
image
可以通过自定义模型功能,你能够自己创建一个支持任何特性的模型。注意在创建时需要输入一个其他的名称,否则会选中已有的模型,然后在修改配置时修改为你期望的模型名称。

@shog86
Copy link
Author

shog86 commented Aug 14, 2024

我这么配置了一下,但Claude还是不行
image

@arvinxx
Copy link
Contributor

arvinxx commented Sep 10, 2024

我试了下, OpenRouter 的 Claude Tools Calling 兼容度很有问题。暂时估计支持不了了

@lobehubbot
Copy link
Member

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


I tried it and found that there is a problem with OpenRouter's Claude Tools Calling compatibility. It is estimated that it will not be supported for the time being.

@shog86
Copy link
Author

shog86 commented Sep 15, 2024

OpenRouter修复了这个问题,试了一下,可以了
image
image

@lobehubbot
Copy link
Member

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


OpenRouter fixed this problem, tried it and it works
image
image

@shog86 shog86 closed this as completed Sep 15, 2024
@lobehubbot
Copy link
Member

@shog86

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 1.19.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
🐛 Bug Something isn't working | 缺陷 released
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants