summaryrefslogtreecommitdiff
path: root/doc/vim-ai.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/vim-ai.txt')
-rw-r--r--doc/vim-ai.txt28
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt
index 729390f..3d854e3 100644
--- a/doc/vim-ai.txt
+++ b/doc/vim-ai.txt
@@ -150,6 +150,32 @@ Globbing is expanded out via `glob.gob` and relative paths to the current
working directory (as determined by `getcwd()`) will be resolved to absolute
paths.
+ *:AIImage*
+
+<selection>? :AIImage {instruction}? generate image given the selection or
+ the instruction
+
+Options: >
+ let g:vim_ai_image_default = {
+ \ "prompt": "",
+ \ "options": {
+ \ "model": "dall-e-3",
+ \ "endpoint_url": "https://api.openai.com/v1/images/generations",
+ \ "quality": "standard",
+ \ "size": "1024x1024",
+ \ "style": "vivid",
+ \ "request_timeout": 20,
+ \ "enable_auth": 1,
+ \ "token_file_path": "",
+ \ },
+ \ "ui": {
+ \ "download_dir": "",
+ \ },
+ \}
+
+Check OpenAI docs for more information:
+https://platform.openai.com/docs/api-reference/images/create
+
*:AIRedo*
:AIRedo repeat last AI command in order to re-try
@@ -182,7 +208,7 @@ a selection of options: >
Alternatively you can use special `default` role: >
- [default]
+ [default.chat]
options.model=gpt-4
options.temperature=0.2