summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-06-11 12:53:56 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-06-11 12:53:56 +0200
commit531a1f646144d195fc58c2756d0109d793e0ae96 (patch)
tree1d1368dc5f43cfe0efec6c1e54ae45b7eaee96dc /README.md
parenta167e4888887784adac99a5a15c1a956e7af8de0 (diff)
downloadvim-ai-531a1f646144d195fc58c2756d0109d793e0ae96.tar.gz
optional max_tokens, fixes #42
Diffstat (limited to '')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index fb4de86..8ab679d 100644
--- a/README.md
+++ b/README.md
@@ -282,6 +282,11 @@ let g:vim_ai_chat = {
" - if disabled code indentation will work but AI doesn't always respond with a code block
" therefore it could be messed up
" - find out more in vim's help `:help paste`
+" options.max_tokens
+" - note that prompt + max_tokens must be less than model's token limit, see #42, #46
+" - setting max tokens to 0 will exclude it from the OpenAI API request parameters, it is
+" unclear/undocumented what it exactly does, but it seems to resolve issues when the model
+" hits token limit, which respond with `OpenAI: HTTPError 400`
```
### Using chat engine for completion and edits