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