Sample request:
{
"key": "[Issued by server side]",
"prompts": [
{"role": "user", "content": "Hello! How are you?"},
{"role": "assistant", "content": "I'm fine, thank you."},
{"role": "user", "content": "What is the weather like today?"}
]
}openai>=0.27.0. Use:
pip install -r requirements.txt
local_secrets.OPENAI_API_KEY: Get it at https://platform.openai.comtrustedKeys: One key for each line, used for authentication.cert.pem: SSL certificatekey.pem: SSL key
The default port is 6088. You can change it in main.py.