summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md4
-rw-r--r--autoload/vim_ai_config.vim3
-rw-r--r--doc/vim-ai.txt6
-rw-r--r--roles-example.ini12
4 files changed, 24 insertions, 1 deletions
diff --git a/README.md b/README.md
index 39df1d6..142a195 100644
--- a/README.md
+++ b/README.md
@@ -275,6 +275,7 @@ let g:vim_ai_complete = {
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -298,6 +299,7 @@ let g:vim_ai_edit = {
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -329,8 +331,10 @@ let g:vim_ai_chat = {
\ "model": "gpt-4o",
\ "endpoint_url": "https://api.openai.com/v1/chat/completions",
\ "max_tokens": 0,
+\ "max_completion_tokens": 0,
\ "temperature": 1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "",
\ "initial_prompt": s:initial_chat_prompt,
diff --git a/autoload/vim_ai_config.vim b/autoload/vim_ai_config.vim
index 6442973..a9aeccf 100644
--- a/autoload/vim_ai_config.vim
+++ b/autoload/vim_ai_config.vim
@@ -8,6 +8,7 @@ let g:vim_ai_complete_default = {
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -23,6 +24,7 @@ let g:vim_ai_edit_default = {
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -45,6 +47,7 @@ let g:vim_ai_chat_default = {
\ "max_completion_tokens": 0,
\ "temperature": 1,
\ "request_timeout": 20,
+\ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "",
\ "initial_prompt": s:initial_chat_prompt,
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt
index fd30cf7..b5674e9 100644
--- a/doc/vim-ai.txt
+++ b/doc/vim-ai.txt
@@ -29,6 +29,7 @@ Options: >
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+ \ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -55,6 +56,7 @@ Options: >
\ "max_tokens": 1000,
\ "temperature": 0.1,
\ "request_timeout": 20,
+ \ "stream": 1,
\ "enable_auth": 1,
\ "selection_boundary": "#####",
\ },
@@ -84,11 +86,13 @@ Options: >
\ "options": {
\ "model": "gpt-4o",
\ "max_tokens": 0,
+ \ "max_completion_tokens": 0,
\ "endpoint_url": "https://api.openai.com/v1/chat/completions",
\ "temperature": 1,
\ "request_timeout": 20,
+ \ "stream": 1,
\ "enable_auth": 1,
- \ "selection_boundary": "#####",
+ \ "selection_boundary": "",
\ "initial_prompt": s:initial_chat_prompt,
\ },
\ "ui": {
diff --git a/roles-example.ini b/roles-example.ini
index 90d32bc..dde5fe0 100644
--- a/roles-example.ini
+++ b/roles-example.ini
@@ -20,3 +20,15 @@ temperature = 0.4
model = gpt-4
[refactor.options-complete]
+
+[o1-mini]
+[o1-mini.options-chat]
+stream = 0
+model = o1-mini
+max_tokens = 0
+max_completion_tokens = 25000
+temperature = 1
+initial_prompt =
+ >>> user
+ You are a general assistant.
+ If you attach a code block add syntax type after ``` to enable syntax highlighting.