This is a project that converts the official poe.com
API to the OpenAI API. It only supports the /v1/chat/completions
endpoint.
- Clone the code to your local machine
git clone https://github.com/qingyanbaby/poe_2_openai.git
cd poe_2_openai
- Obtain the POE API KEY
# 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
- Install dependencies
pip install -r requirements.txt
- Run the application
python run.py
- Clone the code to your local machine
git clone https://github.com/qingyanbaby/poe_2_openai.git
cd poe_2_openai
- Obtain the POE API KEY
# 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
- Run the application
docker compose up -d
# http://localhost:39527/v1/chat/completions
model_mapping = {
"gpt-3.5-turbo-16k": "ChatGPT-16k",
"gpt-3.5-turbo": "ChatGPT",
"gpt-4": "GPT-4",
"gpt-4-turbo": "Claude-3-Opus",
"gpt-4-vision-preview": "GPT-4-128k",
"gpt-4-turbo-preview": "Claude-3-Opus-200k"
}