# PROXY和SOCKS5为代理地址
# TIMEOUT为请求接口超时时间,单位s
# web_search是否开启联网搜索
# provider Api接口供应商
3.点击部署的服务,进入Settings->Networking->Generate Domain(生成随机域名)/Custom Domain(绑定自定义自己的域名),然后就可以通过这个域名进行原神启动!
docker pull mouxan/g4f
docker run -d --restart always --name gpt4free \
-p 8080:80 \
-e PROXY=http://127.0.0.1:3333 \
-e TIMEOUT=60 \
-e web_search=true \
-e provider='Bing' \
mouxan/g4f
version: '3'
services:
gpt4free:
container_name: gpt4free
image: mouxan/g4f:latest
restart: always
environment:
PROXY: http://127.0.0.1:3333
TIMEOUT: 60
web_search: true
provider: 'Bing'
ports:
- 8080:80
git clone https://github.com/mouxan/gpt4free.git
cd gpt4free
pip install -r requirements.txt
python -m cli all
http://127.0.0.1/chat/
curl --location 'http://127.0.0.1/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"web_search": true,
"provider": "Bing",
"model": "gpt-4",
"messages": [{"role": "user", "content": "hi"}]
}'
# web_search为是否开启联网搜索,目前gpt4模型兼容性好一些,部分gpt3.5好像无法进行联网搜索
# provider API供应商名称,可请求查看下方/v1/providers查看有哪些供应商名称,可指定working为true的供应商,亦可直接环境变量设置,不传则默认随机请求,如果a供应商接口无法请求则会继续b供应商然后继续往下,但如果传了该参数则无法继续请求
curl --location 'http://127.0.0.1/v1/providers/<provider_name>'
curl --location 'http://127.0.0.1/v1/models/<model_name>'
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
|---|---|---|---|---|---|---|
| bing.com | g4f.Provider.Bing | ❌ | ✔️ | ✔️ | ❌ | |
| chat.geekgpt.org | g4f.Provider.GeekGpt | ✔️ | ✔️ | ✔️ | ❌ | |
| gptchatly.com | g4f.Provider.GptChatly | ✔️ | ✔️ | ❌ | ❌ | |
| liaobots.site | g4f.Provider.Liaobots | ✔️ | ✔️ | ✔️ | ❌ | |
| www.phind.com | g4f.Provider.Phind | ❌ | ✔️ | ✔️ | ❌ | |
| raycast.com | g4f.Provider.Raycast | ✔️ | ✔️ | ✔️ | ✔️ |
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
|---|---|---|---|---|---|---|
| www.aitianhu.com | g4f.Provider.AItianhu | ✔️ | ❌ | ✔️ | ❌ | |
| chat3.aiyunos.top | g4f.Provider.AItianhuSpace | ✔️ | ❌ | ✔️ | ❌ | |
| e.aiask.me | g4f.Provider.AiAsk | ✔️ | ❌ | ✔️ | ❌ | |
| chat-gpt.org | g4f.Provider.Aichat | ✔️ | ❌ | ❌ | ❌ | |
| www.chatbase.co | g4f.Provider.ChatBase | ✔️ | ❌ | ✔️ | ❌ | |
| chatforai.store | g4f.Provider.ChatForAi | ✔️ | ❌ | ✔️ | ❌ | |
| chatgpt.ai | g4f.Provider.ChatgptAi | ✔️ | ❌ | ✔️ | ❌ | |
| chatgptx.de | g4f.Provider.ChatgptX | ✔️ | ❌ | ✔️ | ❌ | |
| chat-shared2.zhile.io | g4f.Provider.FakeGpt | ✔️ | ❌ | ✔️ | ❌ | |
| freegpts1.aifree.site | g4f.Provider.FreeGpt | ✔️ | ❌ | ✔️ | ❌ | |
| gptalk.net | g4f.Provider.GPTalk | ✔️ | ❌ | ✔️ | ❌ | |
| ai18.gptforlove.com | g4f.Provider.GptForLove | ✔️ | ❌ | ✔️ | ❌ | |
| gptgo.ai | g4f.Provider.GptGo | ✔️ | ❌ | ✔️ | ❌ | |
| hashnode.com | g4f.Provider.Hashnode | ✔️ | ❌ | ✔️ | ❌ | |
| app.myshell.ai | g4f.Provider.MyShell | ✔️ | ❌ | ✔️ | ❌ | |
| noowai.com | g4f.Provider.NoowAi | ✔️ | ❌ | ✔️ | ❌ | |
| chat.openai.com | g4f.Provider.OpenaiChat | ✔️ | ❌ | ✔️ | ✔️ | |
| theb.ai | g4f.Provider.Theb | ✔️ | ❌ | ✔️ | ✔️ | |
| sdk.vercel.ai | g4f.Provider.Vercel | ✔️ | ❌ | ✔️ | ❌ | |
| you.com | g4f.Provider.You | ✔️ | ❌ | ✔️ | ❌ | |
| chat9.yqcloud.top | g4f.Provider.Yqcloud | ✔️ | ❌ | ✔️ | ❌ | |
| chat.acytoo.com | g4f.Provider.Acytoo | ✔️ | ❌ | ✔️ | ❌ | |
| aibn.cc | g4f.Provider.Aibn | ✔️ | ❌ | ✔️ | ❌ | |
| ai.ls | g4f.Provider.Ails | ✔️ | ❌ | ✔️ | ❌ | |
| chatgpt4online.org | g4f.Provider.Chatgpt4Online | ✔️ | ❌ | ✔️ | ❌ | |
| chat.chatgptdemo.net | g4f.Provider.ChatgptDemo | ✔️ | ❌ | ✔️ | ❌ | |
| chatgptduo.com | g4f.Provider.ChatgptDuo | ✔️ | ❌ | ❌ | ❌ | |
| chatgptfree.ai | g4f.Provider.ChatgptFree | ✔️ | ❌ | ❌ | ❌ | |
| chatgptlogin.ai | g4f.Provider.ChatgptLogin | ✔️ | ❌ | ✔️ | ❌ | |
| cromicle.top | g4f.Provider.Cromicle | ✔️ | ❌ | ✔️ | ❌ | |
| gptgod.site | g4f.Provider.GptGod | ✔️ | ❌ | ✔️ | ❌ | |
| opchatgpts.net | g4f.Provider.Opchatgpts | ✔️ | ❌ | ✔️ | ❌ | |
| chat.ylokh.xyz | g4f.Provider.Ylokh | ✔️ | ❌ | ✔️ | ❌ |
| Website | Provider | GPT-3.5 | GPT-4 | Stream | Status | Auth |
|---|---|---|---|---|---|---|
| bard.google.com | g4f.Provider.Bard | ❌ | ❌ | ❌ | ✔️ | |
| deepinfra.com | g4f.Provider.DeepInfra | ❌ | ❌ | ✔️ | ❌ | |
| huggingface.co | g4f.Provider.HuggingChat | ❌ | ❌ | ✔️ | ✔️ | |
| www.llama2.ai | g4f.Provider.Llama2 | ❌ | ❌ | ✔️ | ❌ | |
| open-assistant.io | g4f.Provider.OpenAssistant | ❌ | ❌ | ✔️ | ✔️ |
| Model | Base Provider | Provider | Website |
|---|---|---|---|
| palm | g4f.Provider.Bard | bard.google.com | |
| h2ogpt-gm-oasst1-en-2048-falcon-7b-v3 | Hugging Face | g4f.Provider.H2o | www.h2o.ai |
| h2ogpt-gm-oasst1-en-2048-falcon-40b-v1 | Hugging Face | g4f.Provider.H2o | www.h2o.ai |
| h2ogpt-gm-oasst1-en-2048-open-llama-13b | Hugging Face | g4f.Provider.H2o | www.h2o.ai |
| claude-instant-v1 | Anthropic | g4f.Provider.Vercel | sdk.vercel.ai |
| claude-v1 | Anthropic | g4f.Provider.Vercel | sdk.vercel.ai |
| claude-v2 | Anthropic | g4f.Provider.Vercel | sdk.vercel.ai |
| command-light-nightly | Cohere | g4f.Provider.Vercel | sdk.vercel.ai |
| command-nightly | Cohere | g4f.Provider.Vercel | sdk.vercel.ai |
| gpt-neox-20b | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| oasst-sft-1-pythia-12b | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| oasst-sft-4-pythia-12b-epoch-3.5 | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| santacoder | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| bloom | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| flan-t5-xxl | Hugging Face | g4f.Provider.Vercel | sdk.vercel.ai |
| code-davinci-002 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| gpt-3.5-turbo-16k | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| gpt-3.5-turbo-16k-0613 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| gpt-4-0613 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| text-ada-001 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| text-babbage-001 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| text-curie-001 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| text-davinci-002 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| text-davinci-003 | OpenAI | g4f.Provider.Vercel | sdk.vercel.ai |
| llama13b-v2-chat | Replicate | g4f.Provider.Vercel | sdk.vercel.ai |
| llama7b-v2-chat | Replicate | g4f.Provider.Vercel | sdk.vercel.ai |
Content type
Image
Digest
sha256:3241283f5…
Size
1 GB
Last updated
over 2 years ago
docker pull mouxan/g4f