From fbc2bfb445c71985e9fc399d3fac2def2fc6854e Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Sun, 22 Dec 2024 14:55:15 +0100 Subject: added image generation --- doc/vim-ai.txt | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'doc/vim-ai.txt') 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* + +? :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 -- cgit v1.2.3