Comments (7)
插件服务从 lobe-chat 里剥离出来了。目前代码中的插件服务会走到插件服务网关去(项目地址:https://github.com/lobehub/chat-plugins-server ),默认的插件网关为 https://lobe-chat-plugin-market.vercel.app
,这个地址国内直接访问是被墙的。
你本地使用的话,可以在项目目录下添加一个 .env
文件,然后填入:
PLUGIN_RUNNER_BASE_URL=https://chat-plugins.lobehub.com
让本地走到 lobehub 的域名,这样国内就能正常访问到了
from lobe-chat.
插件服务从 lobe-chat 里剥离出来了。目前代码中的插件服务会走到插件服务网关(项目地址:lobehub/chat-plugins-server )去,目前项目的网关地址配置了
https://lobe-chat-plugin-market.vercel.app
,这个地址国内直接访问是被墙的。你本地使用的话,可以在项目目录下添加一个
.env
文件,然后填入:PLUGIN_RUNNER_BASE_URL=https://chat-plugins.lobehub.com
让本地走到 lobehub 的域名,这样国内就能正常访问到了
步骤
- 增加.env文件
- .env文件内填写[PLUGIN_RUNNER_BASE_URL=https://chat-plugins.lobehub.com]
- cd D:\git\lobe-chat
- pnpm start
- info Loaded env from D:\git\lobe-chat.env
- 新建助手
- 输入[https://sspai.com/post/81986]
- 很抱歉,服务器没有等到上游服务器的回应,请稍后再试
- F12显示Failed to load resource: the server responded with a status of 504 (Gateway Timeout) :3000/api/openai:1
其他补充
API KEY 是能够使用的,接口代理地址是[https://xxxx/v1]也是可以正常使用的,在随便聊聊窗口输入你都会什么,都会提示很抱歉,服务器没有等到上游服务器的回应,请稍后再试,是接口代理地址没生效还是什么?
from lobe-chat.
哦,那看来不是插件的问题,是正常访问 OpenAI 的问题。
应该是接口代理没生效。你试试看在 .env
里添加一个
OPENAI_PROXY_URL=https://xxx/v1
然后重新 pnpm start
试试
from lobe-chat.
哦,那看来不是插件的问题,是正常访问 OpenAI 的问题。
应该是接口代理没生效。你试试看在
.env
里添加一个OPENAI_PROXY_URL=https://xxx/v1
然后重新
pnpm start
试试
设置了OPENAI_PROXY_URL后,无问题,但是PLUGIN_RUNNER_BASE_URL没生效,目前.env内容如下:
PLUGIN_RUNNER_BASE_URL=https://chat-plugins.lobehub.com
OPENAI_PROXY_URL=https://xxx/v1
启用插件后,输入文章网址,终端提示内容如下:
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- info Loaded env from D:\git\lobe-chat\.env
Failed to proxy https://lobe-chat-plugin-market.vercel.app/api/v1/runner Error: connect ETIMEDOUT 168.143.171.189:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '168.143.171.189',
port: 443
}
Error: connect ETIMEDOUT 168.143.171.189:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
errno: -4039,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '168.143.171.189',
port: 443
}
from lobe-chat.
奇怪,我回头试试看。 如果现在 env 不生效的话,解决方案直接手动改 next.config.mjs
里 第8行
process.env.PLUGIN_RUNNER_BASE_URL || 'https://lobe-chat-plugin-market.vercel.app';
把 https://lobe-chat-plugin-market.vercel.app
替换为 https://chat-plugins.lobehub.com
然后再 pnpm start
试试看。
from lobe-chat.
奇怪,我回头试试看。 如果现在 env 不生效的话,解决方案直接手动改
next.config.mjs
里 第8行process.env.PLUGIN_RUNNER_BASE_URL || 'https://lobe-chat-plugin-market.vercel.app';
把
https://lobe-chat-plugin-market.vercel.app
替换为https://chat-plugins.lobehub.com
然后再
pnpm start
试试看。
pnpm build
pnpm start
已解决
from lobe-chat.
🎉 This issue has been resolved in version 0.54.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
from lobe-chat.
Related Issues (20)
- Opening and Closing Sidebar via Icon Buttons HOT 2
- [Request] 是否可以考虑优化浏览器缓存占用 HOT 9
- [Bug] HOT 6
- [Bug] Openrouter models are unable to auto name chat title HOT 1
- [Bug] Fail to send prompt with image with Azure GPT-4 2024-04-09 HOT 4
- [Bug] Cannot view settings button for customized model with relatively long name in openai model list HOT 5
- [Request] 如何最快速部署 HOT 5
- [Bug] HOT 2
- zeabur部署失败[Bug] HOT 4
- The application is nice but it has the following shortcomings. HOT 4
- [Bug] 使用客户端请求模式时出错 HOT 16
- [Bug] vercel部署失败 HOT 11
- [Bug] `ENABLE_OAUTH_SSO` is deprecated and will be removed in LobeChat 1.0. just set `NEXT_AUTH_SECRET` enough `SSO_PROVIDERS` is deprecated and will be removed in LobeChat 1.0. Please replace with `NEXT_AUTH_SSO_PROVIDERS` HOT 3
- [Bug] 通用设置里的访问密码及登录按钮消失 HOT 3
- [Request] Function calling support for minimax models HOT 3
- [Bug] 应用密码输入框卡顿 HOT 3
- [Bug] Cannot upload images using the LLaVA 34B model. HOT 1
- [Request] 如何自定义字体? HOT 14
- [Bug] HOT 3
- [Bug] Models from OpenRouter that support image input not being identified as having image capability in LobeChat. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lobe-chat.