From b61e59bfd9cf4df8896d55b851c3de6cc141c23e Mon Sep 17 00:00:00 2001 From: Orhan erday Date: Wed, 8 Mar 2023 10:24:48 +0300 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6aa9807..ca19aaf 100644 --- a/README.md +++ b/README.md @@ -244,13 +244,13 @@ $open_ai->setORG("org-IKN2E1nI3kFYU8ywaqgFRKqi"); $open_ai = new OpenAi($open_ai_key); ```` -## Custom URL +## Base URL -You can specify Origin URL with `setCustomURL()` method; +You can specify Origin URL with `setBaseURL()` method; ````php $open_ai_key = getenv('OPENAI_API_KEY'); -$open_ai->setCustomURL("https://ai.example.com/"); +$open_ai->setBaseURL("https://ai.example.com/"); $open_ai = new OpenAi($open_ai_key,$originURL); ```` @@ -262,6 +262,12 @@ You can use some proxy servers for your requests api; $open_ai->setProxy("http://127.0.0.1:1086"); ```` +## Set header + + ```php +$open_ai->setHeader(["Connection"=>"keep-alive"]); +``` + ## Get cURL request info > ### !!! WARNING:Your API key will expose if you add this method to your code, therefore remove the method before deployment. Be careful !