lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] Support for http_proxy inside

Open saccohuo opened this issue 11 months ago • 17 comments

🥰 Feature Description

I deploy lobe-chat on my NAS with docker, and cannot connect to outsea LLM service from China. There are socks proxy service and http proxy service working on my NAS. I wanna know how can I run lobe-chat behind my http_proxy.

🧐 Proposed Solution

Support for explicit http_proxy for each LLM service.

📝 Additional Information

No response

saccohuo avatar Mar 17 '24 14:03 saccohuo

👀 @saccohuo

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

lobehubbot avatar Mar 17 '24 14:03 lobehubbot

自己填写一个 Docker Compose 并设置 http_proxy,具体流程可以询问GPT

MapleEve avatar Mar 17 '24 17:03 MapleEve

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


Fill in a Docker Compose yourself and set up http_proxy. You can ask GPT for the specific process.

lobehubbot avatar Mar 17 '24 17:03 lobehubbot

自己填写一个 Docker Compose 并设置 http_proxy,具体流程可以询问GPT

试过不行

hcaihao avatar Mar 19 '24 13:03 hcaihao

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


Fill in a Docker Compose yourself and set up http_proxy. Please ask GPT for the specific process.

Tried but it doesn’t work

lobehubbot avatar Mar 19 '24 13:03 lobehubbot

自己填写一个 Docker Compose 并设置 http_proxy,具体流程可以询问GPT

试了不行 +1

saccohuo avatar Mar 19 '24 15:03 saccohuo

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


Fill in a Docker Compose yourself and set up http_proxy. Please ask GPT for the specific process.

Tried it but it doesn’t work +1

lobehubbot avatar Mar 19 '24 15:03 lobehubbot

我也遇到了同样的问题,希望能支持http_proxy

bit649 avatar Mar 21 '24 09:03 bit649

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


I also encountered the same problem, hoping to support http_proxy

lobehubbot avatar Mar 21 '24 09:03 lobehubbot

同样的问题,希望能支持http_proxy +1

coulsontl avatar Mar 22 '24 12:03 coulsontl

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


Same problem, hope http_proxy can be supported +1

lobehubbot avatar Mar 22 '24 12:03 lobehubbot

I have proxy running locally with URL like http://127.0.0.1:xxxx.

If I install docker version of lobechat, how can I make it use to this proxy? If I put http://127.0.0.1:xxxx into PROYX_URL, I got an error which says the connection is refused.

newptcai avatar Apr 13 '24 03:04 newptcai

我在本地运行代理,其 URL 如http://127.0.0.1:xxxx。

如果我安装了 docker 版本的 lobechat,我怎样才能让它使用这个代理?如果我将http://127.0.0.1:xxxx放入PROYX_URL 中,则会收到一条错误,表示连接被拒绝。

lobechat的PROYX_URL指的不是本机代理,而是反向代理服务器。建议你再部署一个oneapi:https://github.com/songquanpeng/one-api oneapi里生成一个令牌,填到lobechat的PROYX_URL即可

bit649 avatar Apr 18 '24 08:04 bit649

我也遇到了同样的问题,希望能支持http_proxy

SAnBlog avatar May 11 '24 10:05 SAnBlog

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


I also encountered the same problem, hoping to support http_proxy

lobehubbot avatar May 11 '24 10:05 lobehubbot