Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llama3.2-vision throws exception: KeyError: 'text' #586

Open
bjornmp opened this issue Mar 8, 2025 · 0 comments
Open

Llama3.2-vision throws exception: KeyError: 'text' #586

bjornmp opened this issue Mar 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bjornmp
Copy link

bjornmp commented Mar 8, 2025

Describe the bug
Trying to use Llama 3.2-vision, after pasting the image from clipboard, the following error appears:

Traceback (most recent call last):
  File "/app/share/Alpaca/alpaca/window.py", line 585, in <lambda>
    clipboard.read_text_async(None, lambda clipboard, result: self.cb_text_received(clipboard.read_text_finish(result)))
                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: g-io-error-quark: No compatible transfer format found (15)

Then, after adding some prompt text and pressing Enter, the following exception below is thrown.

Screenshots
Image

Debugging information

Exception in thread Thread-8 (generate_message):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/app/share/Alpaca/alpaca/instance_manager.py", line 54, in generate_message
    messages = chat.convert_to_ollama()[:list(chat.messages.values()).index(bot_message)]
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/Alpaca/alpaca/custom_widgets/chat_widget.py", line 252, in convert_to_ollama
    message_data['content'][0]['text'] += message.text
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'text'
@bjornmp bjornmp added the bug Something isn't working label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant