Skip to content

Commit

Permalink
fixed passing AIImage options
Browse files Browse the repository at this point in the history
  • Loading branch information
madox2 committed Feb 17, 2025
1 parent 91a0373 commit 9661d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ let g:vim_ai_chat = {
" - options.enable_auth: enable authorization using openai key
" - options.token_file_path: override global token configuration
" - options.download_dir: path to image download directory, `cwd` if not defined
let g:vim_ai_image_default = {
let g:vim_ai_image = {
\ "prompt": "",
\ "options": {
\ "model": "dall-e-3",
Expand Down
6 changes: 3 additions & 3 deletions py/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
def make_openai_image_options(options):
return {
'model': options['model'],
'quality': 'standard',
'size': '1024x1024',
'style': 'vivid',
'quality': options['quality'],
'size': options['size'],
'style': options['style'],
'response_format': 'b64_json',
}

Expand Down

0 comments on commit 9661d11

Please sign in to comment.