diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-22 14:55:15 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-22 14:55:15 +0100 |
| commit | fbc2bfb445c71985e9fc399d3fac2def2fc6854e (patch) | |
| tree | e93db9bf177d8790c608e3871d9f55d259510855 /doc | |
| parent | 4f1c95386437c8fa6e189c136681950a91fb25c9 (diff) | |
| download | vim-ai-fbc2bfb445c71985e9fc399d3fac2def2fc6854e.tar.gz | |
added image generation
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/vim-ai.txt | 28 |
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 |