From de68e6cc7ab9849a4e367dd66145705677cf1c55 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 4 May 2023 16:38:02 +0800 Subject: [PATCH] docs(README.md): add instructions for configuring openAI maxTokens and BASE_PATH parameters to customize API usage --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 4443a73..23506c9 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,24 @@ To remove description: oc config set description=false ``` +### Configure openAI maxTokens param + +Default value for `maxTokens` is 196, sometimes you can get 400 error if request+response exceeds `maxToken` parameter. + +so you can increase it: + +```sh +oc config set OPENAI_MAX_TOKENS= +``` + +### Configure BASE_PATH for openAI api + +if you want to call GPT via proxy — you can change `BASE_PATH` parameter: + +```sh +oc config set OPENAI_BASE_PATH= +``` + ### Internationalization support To specify the language used to generate commit messages: