Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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] 插件使用bug #5459

Closed
daizeyao-boomingtech opened this issue Jan 15, 2025 · 10 comments
Closed

[Bug] 插件使用bug #5459

daizeyao-boomingtech opened this issue Jan 15, 2025 · 10 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@daizeyao-boomingtech
Copy link

📦 Environment

Docker

📌 Version

1.45.7

💻 Operating System

Ubuntu

🌐 Browser

Chrome, Edge

🐛 Bug Description

image
联网搜索为什么会直接调用gateway,已经配置了api-key和engine-id,我看了相关的源码,认为是lobe-chat的问题

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@daizeyao-boomingtech daizeyao-boomingtech added the 🐛 Bug Something isn't working | 缺陷 label Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 15, 2025
@lobehubbot
Copy link
Member

👀 @daizeyao-boomingtech

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

Copy link

dosubot bot commented Jan 15, 2025

The issue you're experiencing with the plugin using the gateway for network searches, despite having configured the API key and engine ID, might be related to how the lobe-chat framework handles network requests for internet searches. In lobe-chat, the gateway is used to direct plugin requests to a local service instead of the default cloud service. This is defined in the plugin's manifest file and is crucial for development and testing purposes [1].

If the gateway is being used unexpectedly, it could be due to a misconfiguration in the plugin's manifest or the environment settings. Ensure that the gateway configuration is correctly set up and that the intended API keys and engine IDs are properly configured in the environment variables. You might want to check the .env.example file for the correct setup of these variables [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@arvinxx
Copy link
Contributor

arvinxx commented Jan 15, 2025

Gateway是实际后端发请求的接口。没有啥问题

@arvinxx arvinxx closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2025
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Jan 15, 2025
@lobehubbot
Copy link
Member

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


Gateway is the interface through which the actual backend sends requests. No problem

@lobehubbot
Copy link
Member

@daizeyao-boomingtech

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

@daizeyao-boomingtech
Copy link
Author

Gateway是实际后端发请求的接口。没有啥问题

除了api-key和engine-id还有什么需要额外配置的吗 为什么会发送gateway

@lobehubbot
Copy link
Member

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


Gateway is the interface through which the actual backend sends requests. No problem

In addition to api-key and engine-id, is there anything else that needs to be configured? Why is gateway sent?

@daizeyao-boomingtech
Copy link
Author

即使我在官方网站使用,在配置api-key和engine-id后仍然会gateway

@lobehubbot
Copy link
Member

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


Even if I use it on the official website, the gateway will still appear after configuring the api-key and engine-id.

@arvinxx
Copy link
Contributor

arvinxx commented Jan 16, 2025

gateway 是插件请求的统一网关,请求路径为:

lobechat 前端 -> lobechat 后端插件网关 -> 插件服务端

通过后端对后端请求可以解决前端发请求的跨域问题,同时后端插件网关也承担了插件服务发现、插件请求入参校验等职能。

@lobehub lobehub locked and limited conversation to collaborators Jan 16, 2025
@arvinxx arvinxx converted this issue into discussion #5466 Jan 16, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

3 participants