diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-21 00:44:35 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-21 00:45:31 +0100 |
| commit | 2643c4f3e7a637d1c289a2ff3ad582deb11de3c0 (patch) | |
| tree | 386b6e637cb0f9f756c3efc68862a7e71b63f54d /py/chat.py | |
| parent | 933a90d43ce9e360bb139dda2040b4360b9b12ce (diff) | |
| download | vim-ai-2643c4f3e7a637d1c289a2ff3ad582deb11de3c0.tar.gz | |
image to text support, closes #134
Diffstat (limited to 'py/chat.py')
| -rw-r--r-- | py/chat.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,7 +56,8 @@ def run_ai_chat(context): messages = initial_messages + chat_messages try: - if messages[-1]["content"].strip(): + last_content = messages[-1]["content"][-1] + if last_content['type'] != 'text' or last_content['text']: vim.command("normal! Go\n<<< assistant\n\n") vim.command("redraw") |