From 11b9b9a0ba59ffc722ae74febebf6dc240a6154f Mon Sep 17 00:00:00 2001 From: Enno Date: Sun, 14 Apr 2024 17:55:24 +0200 Subject: increase token limit --- README.md | 11 ++++++----- autoload/vim_ai_config.vim | 6 +++--- doc/vim-ai.txt | 7 +++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5731541..d0af65d 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,8 @@ temperature=0.2 generate a paragraph of lorem ipsum ``` -Below are listed all available configuration options, along with their default values: +Below are listed all available configuration options, along with their default values. +Please note that there isn't any token limit imposed, though 1000 is recommended. ```vim " :AI @@ -271,7 +272,7 @@ let g:vim_ai_complete = { \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -294,7 +295,7 @@ let g:vim_ai_edit = { \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -327,7 +328,7 @@ let g:vim_ai_chat = { \ "options": { \ "model": "gpt-3.5-turbo", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -392,7 +393,7 @@ let chat_engine_config = { \ "options": { \ "model": "gpt-3.5-turbo", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "selection_boundary": "", diff --git a/autoload/vim_ai_config.vim b/autoload/vim_ai_config.vim index 41932de..3ef6f83 100644 --- a/autoload/vim_ai_config.vim +++ b/autoload/vim_ai_config.vim @@ -5,7 +5,7 @@ let g:vim_ai_complete_default = { \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -20,7 +20,7 @@ let g:vim_ai_edit_default = { \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -41,7 +41,7 @@ let g:vim_ai_chat_default = { \ "options": { \ "model": "gpt-3.5-turbo", \ "endpoint_url": "https://api.openai.com/v1/chat/completions", -\ "max_tokens": 1000, +\ "max_tokens": 0, \ "temperature": 1, \ "request_timeout": 20, \ "enable_auth": 1, diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index c7aefde..6479a07 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -26,7 +26,7 @@ Options: > \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", - \ "max_tokens": 1000, + \ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -52,7 +52,7 @@ Options: > \ "options": { \ "model": "gpt-3.5-turbo-instruct", \ "endpoint_url": "https://api.openai.com/v1/completions", - \ "max_tokens": 1000, + \ "max_tokens": 0, \ "temperature": 0.1, \ "request_timeout": 20, \ "enable_auth": 1, @@ -73,7 +73,6 @@ https://platform.openai.com/docs/api-reference/completions the instruction or both Options: > - let s:initial_chat_prompt =<< trim END >>> system @@ -84,7 +83,7 @@ Options: > let g:vim_ai_chat = { \ "options": { \ "model": "gpt-3.5-turbo", - \ "max_tokens": 1000, + \ "max_tokens": 0, \ "endpoint_url": "https://api.openai.com/v1/chat/completions", \ "temperature": 1, \ "request_timeout": 20, -- cgit v1.2.3