Closed Hind-MW closed 7 months ago
china, VPN connect success, can access internate,
docker run --rm -it \
-p 8858:8858 \
--name freegpt \
-e HTTP_PROXY=http://127.0.0.1:8080 \
fantasypeak/freegpt:latest
我认为你需要设置http代理,或者用host模式运行docker试试
docker run --rm -it \ -p 8858:8858 \ --name freegpt \ -e HTTP_PROXY=http://127.0.0.1:8080 \ fantasypeak/freegpt:latest
我认为你需要设置http代理,或者用host模式运行docker试试
两个方法都有试。 还是连接不上server
Experiencing same issue as above.
docker run --rm -it \ -p 8858:8858 \ --name freegpt \ -e HTTP_PROXY=http://127.0.0.1:8080 \ fantasypeak/freegpt:latest
我认为你需要设置http代理,或者用host模式运行docker试试
两个方法都有试。 还是连接不上server
Experiencing same issue as above.
你的代理正常工作吗,我在我本地试了使用代理可以访问
docker run --rm -it \ -p 8858:8858 \ --name freegpt \ -e HTTP_PROXY=http://127.0.0.1:8080 \ fantasypeak/freegpt:latest
我认为你需要设置http代理,或者用host模式运行docker试试
两个方法都有试。 还是连接不上server
Experiencing same issue as above.
你的代理正常工作吗,我在我本地试了使用代理可以访问
你是说 http://127.0.0.1:8080? 有可能我的8080已经被其它的app 给占用了, 我是需要换一个port number嘛
docker run --rm -it \ -p 8858:8858 \ --name freegpt \ -e HTTP_PROXY=http://127.0.0.1:8080 \ fantasypeak/freegpt:latest
我认为你需要设置http代理,或者用host模式运行docker试试
两个方法都有试。 还是连接不上server
Experiencing same issue as above.
你的代理正常工作吗,我在我本地试了使用代理可以访问
你是说 http://127.0.0.1:8080? 有可能我的8080已经被其它的app 给占用了, 我是需要换一个port number嘛
对就是它,你的vpn工具会在本地启动http代理吗,如果可以启动你就改一个端口,你首先需要确定你的代理可以工作,我感觉你的代理并没有工作
1.我这边VPN自动打开的端口为10809,代理命令如下: docker run --rm -it -p 8858:8858 --name freegpt82 -e HTTP_PROXY=http://127.0.0.1:10809 fantasypeak/freegpt:latest 还是没能正常连接。 我这边网络肯定是可以科学上网。
2.为什么显示:[https://you.com] -> [Couldn't connect to server]
3.Web Access是什么意思?还有可以选择使用那些GPT
1.我这边VPN自动打开的端口为10809,代理命令如下: docker run --rm -it -p 8858:8858 --name freegpt82 -e HTTP_PROXY=http://127.0.0.1:10809 fantasypeak/freegpt:latest 还是没能正常连接。 我这边网络肯定是可以科学上网。
2.为什么显示:[https://you.com] -> [Couldn't connect to server]
3.Web Access是什么意思?还有可以选择使用那些GPT
我的也不行 我在国外应该不需要VPN 吧
我的 dock command跟你的一样
不知道 这个作者可不可 step by step 展示一下 他的 set up
在国外不需要设置代理直接启动就好了,我的服务就是部署在国外
➜ bin git:(dev) ✗ ./cpp-freegpt-webui ../cfg/cpp-free-gpt.yml
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:357][info] active provider:
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-gptChatly
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] Llama-2-70b-chat-hf-stream-DeepInfra
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptTalkRu
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatForAi
[2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-4-turbo-stream-you
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-yqcloud
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] llama2-70B
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-GptGo
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptforlove
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptalk
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatgptDemo
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-AiChatOnline
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-GeekGpt
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3-stream-binjie
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-4-ChatGpt4Online
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-chatGptAi
[2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-aivvm
[2023-12-15 12:32:22.290][thread 2368596][main][main.cpp:361][info]
{
"api_key": "",
"chat_path": "/chat",
"client_root_path": "../client",
"enable_proxy": true,
"flaresolverr": "http://127.0.0.1:8191/v1",
"host": "0.0.0.0",
"http_proxy": "http://127.0.0.1:3128",
"interval": 300,
"ip_white_list": null,
"port": 8858,
"providers": null,
"work_thread_num": 8,
"zeus": "http://127.0.0.1:8860"
}
GitHub: https://github.com/fantasy-peak/cpp-freegpt-webui
[2023-12-15 12:32:22.294][thread 2368596][main][main.cpp:381][info] server start accept at 0.0.0.0:8858 ...
[2023-12-15 12:32:33.865][thread 2368613][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: \
[2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:171][info] req_path: /chat/assets/img/user.png
[2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:174][info] load: ../client/img/user.png
[2023-12-15 12:34:15.468][thread 2368617][setContentType][main.cpp:100][info] file: ../client/img/user.png
[2023-12-15 12:34:16.996][thread 2368618][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-15 12:34:32.361][thread 2368598][you][free_gpt.cpp:704][error] call http://127.0.0.1:8191/v1: [[http://127.0.0.1:8191/v1] -> [Http Status Code:500]]
[2023-12-15 12:35:17.890][thread 2368599][you][free_gpt.cpp:704][error] call http://127.0.0.1:8191/v1: [[http://127.0.0.1:8191/v1] -> [Http Status Code:500]]
[2023-12-15 12:35:40.340][thread 2368619][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-15 12:35:40.341][thread 2368619][binjie][free_gpt.cpp:848][info] {
"prompt": "hello",
"stream": true,
"system": "Always talk in English.",
"withoutContext": true
}
[2023-12-15 12:35:40.370][thread 2368619][createHttpClient][free_gpt.cpp:470][info] CONNECT TO HTTP_PROXY [127.0.0.1:3128]
[2023-12-15 12:35:41.461][thread 2368619][printHttpHeader][free_gpt.cpp:90][info]
HTTP/1.1 200 OK
Server: Tengine
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: acw_tc=80012d9b17026149407097400e7dd923537bd9008f7ba52440da5c5b45;path=/;HttpOnly;Max-Age=3600
Set-Cookie: cdn_sec_tc=80012d9b17026149407097400e7dd923537bd9008f7ba52440da5c5b45;path=/;HttpOnly;Max-Age=3600
Date: Fri, 15 Dec 2023 04:35:41 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Disposition: attachment; filename="data.txt"
Via: cache33.l2us2[598,0], cache34.l2jp1[699,0], ens-cache7.vn18[767,0]
Timing-Allow-Origin: *
EagleId: 80012d9b17026149407097400e
你能使用 binjie 这个开发者尝试一下吗, 我这收到响应了
➜ bin git:(dev) ✗ ./cpp-freegpt-webui ../cfg/cpp-free-gpt.yml [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:357][info] active provider: [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-gptChatly [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] Llama-2-70b-chat-hf-stream-DeepInfra [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptTalkRu [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatForAi [2023-12-15 12:32:22.288][thread 2368596][main][main.cpp:359][info] gpt-4-turbo-stream-you [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-yqcloud [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] llama2-70B [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-GptGo [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptforlove [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptalk [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatgptDemo [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-AiChatOnline [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-GeekGpt [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3-stream-binjie [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-4-ChatGpt4Online [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-chatGptAi [2023-12-15 12:32:22.289][thread 2368596][main][main.cpp:359][info] gpt-3.5-turbo-stream-aivvm [2023-12-15 12:32:22.290][thread 2368596][main][main.cpp:361][info] { "api_key": "", "chat_path": "/chat", "client_root_path": "../client", "enable_proxy": true, "flaresolverr": "http://127.0.0.1:8191/v1", "host": "0.0.0.0", "http_proxy": "http://127.0.0.1:3128", "interval": 300, "ip_white_list": null, "port": 8858, "providers": null, "work_thread_num": 8, "zeus": "http://127.0.0.1:8860" } GitHub: https://github.com/fantasy-peak/cpp-freegpt-webui [2023-12-15 12:32:22.294][thread 2368596][main][main.cpp:381][info] server start accept at 0.0.0.0:8858 ... [2023-12-15 12:32:33.865][thread 2368613][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: \ [2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation] [2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:171][info] req_path: /chat/assets/img/user.png [2023-12-15 12:34:15.468][thread 2368617][startSession][main.cpp:174][info] load: ../client/img/user.png [2023-12-15 12:34:15.468][thread 2368617][setContentType][main.cpp:100][info] file: ../client/img/user.png [2023-12-15 12:34:16.996][thread 2368618][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation] [2023-12-15 12:34:32.361][thread 2368598][you][free_gpt.cpp:704][error] call http://127.0.0.1:8191/v1: [[http://127.0.0.1:8191/v1] -> [Http Status Code:500]] [2023-12-15 12:35:17.890][thread 2368599][you][free_gpt.cpp:704][error] call http://127.0.0.1:8191/v1: [[http://127.0.0.1:8191/v1] -> [Http Status Code:500]] [2023-12-15 12:35:40.340][thread 2368619][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation] [2023-12-15 12:35:40.341][thread 2368619][binjie][free_gpt.cpp:848][info] { "prompt": "hello", "stream": true, "system": "Always talk in English.", "withoutContext": true } [2023-12-15 12:35:40.370][thread 2368619][createHttpClient][free_gpt.cpp:470][info] CONNECT TO HTTP_PROXY [127.0.0.1:3128] [2023-12-15 12:35:41.461][thread 2368619][printHttpHeader][free_gpt.cpp:90][info] HTTP/1.1 200 OK Server: Tengine Content-Type: application/octet-stream Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: acw_tc=80012d9b17026149407097400e7dd923537bd9008f7ba52440da5c5b45;path=/;HttpOnly;Max-Age=3600 Set-Cookie: cdn_sec_tc=80012d9b17026149407097400e7dd923537bd9008f7ba52440da5c5b45;path=/;HttpOnly;Max-Age=3600 Date: Fri, 15 Dec 2023 04:35:41 GMT Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Content-Disposition: attachment; filename="data.txt" Via: cache33.l2us2[598,0], cache34.l2jp1[699,0], ens-cache7.vn18[767,0] Timing-Allow-Origin: * EagleId: 80012d9b17026149407097400e
你能使用 binjie 这个开发者尝试一下吗, 我这收到响应了
用了 是正常的 可是 这个chatGPT3 没有什么意义呀 我想要用4
在国外不需要设置代理直接启动就好了,我的服务就是部署在国外
ah 使用 you 还需要启动这个 https://github.com/fantasy-peak/cpp-freegpt-webui?tab=readme-ov-file#start-the-flaresolverr-docker-optional 嗯 这个 是可以用的 但是 它的功能性 跟 3 一样 虽然 标注是 4
Couldn't connect to server
我知道了 你需要 设置 --net=host, 因为你的代理是127.0.0.1, 你没设置host 网络模式, docker 内部应用程序根本无法访问你的代理
➜ git:(main) ✗ docker run -it --rm \
-p 8858:8858 \
--name freegpt \
--net=host \
fantasypeak/freegpt:latest
WARNING: Published ports are discarded when using host network mode
[2023-12-15 06:23:00.177][thread 7][main][main.cpp:357][info] active provider:
[2023-12-15 06:23:00.177][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-gptChatly
[2023-12-15 06:23:00.177][thread 7][main][main.cpp:359][info] Llama-2-70b-chat-hf-stream-DeepInfra
[2023-12-15 06:23:00.177][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptTalkRu
[2023-12-15 06:23:00.177][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatForAi
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-4-turbo-stream-you
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-yqcloud
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] llama2-70B
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-GptGo
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptforlove
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-gptalk
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-ChatgptDemo
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-AiChatOnline
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-GeekGpt
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3-stream-binjie
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-4-ChatGpt4Online
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-chatGptAi
[2023-12-15 06:23:00.178][thread 7][main][main.cpp:359][info] gpt-3.5-turbo-stream-aivvm
[2023-12-15 06:23:00.179][thread 7][main][main.cpp:361][info]
{
"api_key": "",
"chat_path": "/chat",
"client_root_path": "../client",
"enable_proxy": true,
"flaresolverr": "http://127.0.0.1:8191/v1",
"host": "0.0.0.0",
"http_proxy": "",
"interval": 300,
"ip_white_list": null,
"port": 8858,
"providers": null,
"work_thread_num": 8,
"zeus": "http://127.0.0.1:8860"
}
GitHub: https://github.com/fantasy-peak/cpp-freegpt-webui
[2023-12-15 06:23:00.180][thread 7][main][main.cpp:381][info] server start accept at 0.0.0.0:8858 ...
[2023-12-15 06:23:06.291][thread 24][startSession][main.cpp:139][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-15 06:23:06.549][thread 8][you][free_gpt.cpp:714][info] cookie: __cf_bm=NjKrHpVd.LqVFGsXUcjahAahvbMk5WNexsuRVc79u0A-1702621386-1-AQIjVbPdMs3gv79eGtVTXBLmuLUvu8KmE/e89AMBNk7CgtDjIEYqHB1nEi4TgsqV9GhsHRyEmSFwp3eoBVEaF0VgFrN8IR553tBfLLBDX9bE;
china, VPN connect success, can access internate,![a8e9ab369f9fdf54844bcb137dda3a34](https://github.com/fantasy-peak/cpp-freegpt-webui/assets/70942599/d3a80e2c-145c-4a2c-9c39-5c1b59934145)
or 2023-12-13 15:37:57 [2023-12-13 07:37:57.057][thread 12][aiChatOnline][free_gpt.cpp:2253][error] [https://aichatonline.org/chatgpt/wp-json/mwai-ui/v1/chats/submit] -> [Couldn't connect to server]