lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / 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
37.36k stars 8.82k forks source link

[Bug] 插件无法正常调用,回复需要等待然后不再回答 #2361

Closed angermanger closed 3 months ago

angermanger commented 3 months ago

💻 系统环境

Windows

📦 部署环境

Official Preview

🌐 浏览器

Chrome

🐛 问题描述

我想使用askforpdf插件,但在启用后仍然无法调用该插件,我的api是sourcegraph的api,使用模型是gpt4,上传的PDF url是用catbox.moe生成的 image image

🚦 期望结果

No response

📷 复现步骤

No response

📝 补充信息

No response

lobehubbot commented 3 months ago

👀 @angermanger

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

angermanger commented 3 months ago

https://files.catbox.moe/7rbd2i.pdf这是pdf的url

lobehubbot commented 3 months ago

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


https://files.catbox.moe/7rbd2i.pdfThis is the url of pdf

arvinxx commented 3 months ago

你的供应商提供的gpt4 可能不是官方原版,以至于不支持function calling

lobehubbot commented 3 months ago

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


The gpt4 provided by your supplier may not be the official version and does not support function calling.

arvinxx commented 3 months ago

image

angermanger commented 3 months ago

这个是sourcegraph这个平台推出的api,集合了很多模型,Claude和gpt都有,可能是因为反代接口和上游不太适配,导致没办法读取?

lobehubbot commented 3 months ago

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


This is the API launched by the sourcegraph platform. It integrates many models, both Claude and gpt. Maybe it is because the anti-generation interface is not suitable for the upstream, so it cannot be read?

angermanger commented 3 months ago

curl \ -H 'Authorization: token sgp_a0d7ccb4f752ea73_6114fcfcf4a56a9cf00deb5d6719a7dca93915a5' \ -d '{"query":"query { currentUser { username } }"}' \ https://sourcegraph.com/.api/graphql 他这个原来官方的api参考格式是这样的,但我填上去也连接不了

lobehubbot commented 3 months ago

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


curl\ -H 'Authorization: token sgp_a0d7ccb4f752ea73_6114fcfcf4a56a9cf00deb5d6719a7dca93915a5' \ -d '{"query":"query { currentUser { username } }"}' \ https://sourcegraph.com/.api/graphql His original official api reference format is like this, but I can’t connect even if I fill it in.

arvinxx commented 3 months ago

这个是sourcegraph这个平台推出的api,集合了很多模型,Claude和 gpt 都有,可能是因为反代接口和上游不太适配,导致没办法读取?

不是,大概率是你用的这个服务商根本就没有用官方的 API ,导致不支持 Function Calling,自然不能用插件。我们之前遇到过好几个用户用了无良服务商的逆向 GPT 4,都没法用 Function Calling 的。

你可以试试我们合作的一家 API 服务商,他们的是官方原版的 API ,是能正常使用的: https://lobe.li/XHnZIUP

lobehubbot commented 3 months ago

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


This is the API launched by the sourcegraph platform. It integrates many models, including Claude and gpt. Maybe it is because the anti-generation interface is not suitable for the upstream, so it cannot be read?

No, there is a high probability that the service provider you are using does not use the official API at all, so it does not support Function Calling, and naturally you cannot use plug-ins. We have encountered several users who used reverse GPT 4 from unscrupulous service providers and were unable to use Function Calling.

You can try an API service provider we cooperate with. Their API is the official original version and can be used normally: https://lobe.li/XHnZIUP

lobehubbot commented 3 months ago

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


Sourcegraph is a foreign code platform. Its anti-generation interface was written by Chinese people. It has actually gone through two hands. This may be why it does not support Function Calling.