From 2bda1a9c9b7e2576319dd058882787891190ed37 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 7 Nov 2023 07:45:55 -0800 Subject: [PATCH] Mention --api-key --- docs/12 - OpenAI API.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/12 - OpenAI API.md b/docs/12 - OpenAI API.md index 09afc2a9..120af127 100644 --- a/docs/12 - OpenAI API.md +++ b/docs/12 - OpenAI API.md @@ -12,10 +12,11 @@ pip install -r extensions/openai/requirements.txt Add `--extensions openai` to your command-line flags. -* To create a public Cloudflare URL, also add the `--public-api` flag. -* To listen on your local network, also add the `--listen` flag. +* To create a public Cloudflare URL, add the `--public-api` flag. +* To listen on your local network, add the `--listen` flag. * To change the port, which is 5000 by default, use `--api-port 1234` (change 1234 to your desired port number). * To use SSL, add `--ssl-keyfile key.pem --ssl-certfile cert.pem`. Note that it doesn't work with `--public-api`. +* To use an API key for authentication, add `--api-key yourkey`. #### Environment variables