本文最后更新于 2023年12月29日。
fantasypeak/freegpt
https://github.com/fantasy-peak/cpp-freegpt-webui
https://github.com/xtekky/gpt4free 根项目
创建编排
version: "3.7"
networks:
1panel-network:
external: true
services:
freegpt:
image: fantasypeak/freegpt:latest
container_name: freegpt
# volumes:
# - './xrayui:/etc/x-ui'
ports:
- "127.0.0.1:8858:8858"
restart: unless-stopped
networks:
- 1panel-network
安装日志
[2023-12-29 02:54:10.368][thread 7][main][main.cpp:328][info] active provider:
[2023-12-29 02:54:10.370][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-chatxyz
[2023-12-29 02:54:10.370][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-aura
[2023-12-29 02:54:10.371][thread 7][main][main.cpp:330][info] gpt-4-turbo-stream-you
[2023-12-29 02:54:10.371][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-yqcloud
[2023-12-29 02:54:10.371][thread 7][main][main.cpp:330][info] llama2-70B
[2023-12-29 02:54:10.371][thread 7][main][main.cpp:330][info] gpt-3-stream-binjie
[2023-12-29 02:54:10.372][thread 7][main][main.cpp:330][info] gpt6
[2023-12-29 02:54:10.372][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-GptGo
[2023-12-29 02:54:10.372][thread 7][main][main.cpp:330][info] Llama-2-70b-chat-hf-stream-DeepInfra
[2023-12-29 02:54:10.372][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-ChatgptDemo
[2023-12-29 02:54:10.373][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-AiChatOnline
[2023-12-29 02:54:10.373][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-GeekGpt
[2023-12-29 02:54:10.373][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-chatGptAi
[2023-12-29 02:54:10.373][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-gptChatly
[2023-12-29 02:54:10.373][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-aivvm
[2023-12-29 02:54:10.374][thread 7][main][main.cpp:330][info] gpt-3.5-turbo-stream-fakeGpt
[2023-12-29 02:54:10.378][thread 7][main][main.cpp:332][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-29 02:54:10.383][thread 7][main][main.cpp:352][info] server start accept at 0.0.0.0:8858 ...
[2023-12-29 03:00:19.738][thread 25][startSession][main.cpp:111][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-29 03:00:19.739][thread 24][startSession][main.cpp:111][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-29 03:00:19.742][thread 24][startSession][main.cpp:265][error] bad_request: [/], Expected path is: [/chat]
[2023-12-29 03:00:19.743][thread 25][startSession][main.cpp:265][error] bad_request: [/], Expected path is: [/chat]
[2023-12-29 03:00:21.005][thread 26][startSession][main.cpp:111][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-29 03:00:21.005][thread 26][startSession][main.cpp:265][error] bad_request: [/serviceWorker.js], Expected path is: [/chat]
[2023-12-29 03:00:28.117][thread 27][startSession][main.cpp:111][info] assets_path: [/chat/assets], api_path: [/chat/backend-api/v2/conversation]
[2023-12-29 03:00:28.118][thread 27][startSession][main.cpp:265][error] bad_request: [/], Expected path is: [/chat]
设置反向代理,开启网站
浏览器访问https://chat.weiyoun.com/chat即可使用