poe to openai
version
这是一个将poe.com
官方 API 转换为 OpenAI API 的项目。
poe-2-openai
poe-to-openai
poe-gpt-api
poe-openai-api
poe-to-gpt
poe-2-gpt
poe-api
gpt-api
openai-api
简体中文说明
1.0.0 /v1/chat/completions
端点支持
1.0.1 环境变量自定义模型映射
1.1.0 添加代理支持
1.1.1 添加跨域配置
git clone https://github.com/qingyanbaby/poe_2_openai.git
cd poe_2_openai
# Please go to https://poe.com/api_key to get your API KEY
# Then fill in the API KEY in the .env file
# CUSTOM_TOKEN=your_custom_token is used for accessing the API
# SYSTEM_TOKEN=your_poe_api_key is used for accessing the official POE API
cp .env.example .env
pip install -r requirements.txt
python run.py
git clone https://github.com/qingyanbaby/poe_2_openai.git
cd poe_2_openai
# Please go to https://poe.com/api_key to get your API KEY
# Then fill in the API KEY in the docker-compose.yml file
# CUSTOM_TOKEN=your_custom_token is used for accessing the API
# SYSTEM_TOKEN=your_poe_api_key is used for accessing the official POE API
docker compose build
docker compose up -d
# http://localhost:39527/v1/chat/completions
# edit the .env file
MODEL_MAPPING= ' {
"gpt-3.5-turbo": "GPT-3.5-Turbo",
"gpt-4o": "GPT-4o",
"gpt-4-turbo": "GPT-4-Turbo"
} '
# Please customize and edit in the .env file
PROXY_TYPE=socks # socks/http, socks only supports socks5 proxy
PROXY_HOST=127.0.0.1 # Proxy address
PROXY_PORT=6668 # Proxy port
PROXY_USERNAME= # Proxy username, optional
PROXY_PASSWORD= # Proxy password, optional