diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2024-05-16 22:48:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 22:48:15 +0200 |
| commit | 56dc5a54b118727881d225087ff3a20e5b0f6c79 (patch) | |
| tree | 0b6b999b7ec8a9c74c91917937bf5d68dc3beeab | |
| parent | 4e7fe9bcbfe6e4c97cd70a531438c8e961a20664 (diff) | |
| parent | 11b9b9a0ba59ffc722ae74febebf6dc240a6154f (diff) | |
| download | vim-ai-56dc5a54b118727881d225087ff3a20e5b0f6c79.tar.gz | |
Merge pull request #99 from Konfekt/patch-3
increase token limit
Diffstat (limited to '')
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | autoload/vim_ai_config.vim | 6 | ||||
| -rw-r--r-- | doc/vim-ai.txt | 7 |
3 files changed, 12 insertions, 12 deletions
@@ -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, |