lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.15k stars 9.12k forks source link

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

Open shog86 opened 1 month ago

shog86 commented 1 month ago

📦 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

lobehubbot commented 1 month ago

👀 @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 commented 1 month ago

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

lobehubbot commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

lobehubbot commented 1 month ago

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


You can open it yourself +mode +gpt-3.5

shog86 commented 1 month ago

You can open it yourself

+mode\<fc>

+gpt-3.5\<fc>

How do I do it in lobechat?

JJTools commented 1 month ago

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

wangdake5111 commented 1 month ago

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

lobehubbot commented 1 month ago

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


Same problem, has it been solved?

shog86 commented 1 month ago

@arvinxx 求看这个问题。。。类似的还有https://github.com/lobehub/lobe-chat/issues/3346

arvinxx commented 1 month ago

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

lobehubbot commented 1 month ago

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 commented 1 month ago

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

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

lobehubbot commented 1 month ago

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 commented 4 weeks ago

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

shog86 commented 3 weeks ago

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

image