From 1011c124cf24b52c7848e879e5ce0c4b085e59a1 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 4 Aug 2023 06:39:49 +0900 Subject: [PATCH] Fix readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4ecc4aa..70bcd3f 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,11 @@ The library needs to be configured with your account's secret key, which is avai $ export OPENAI_API_KEY=sk-xxxxxxx ``` +### Set OPENAI_API_ENDPOINT to environment variable (optional) +```bash +$ export OPENAI_API_ENDPOINT=https://api.openai.com/v1 +``` + ### Create client ```rust use openai_api_rs::v1::api::Client;