Skip to content

Mistral API stop working #1055

@lqs01

Description

@lqs01

Describe the bug
After wrote a prompt and hit Enter I got no response. Only the spinner appears.

I have the problem with the Flatpak and with a selfcompiled build. With ollama-Instances I have no issues.

Expected behavior

A response from the API.

Screenshots

Debugging information

Exception in thread Thread-3 (generate_message):
Traceback (most recent call last):
  File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/threading.py", line 994, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/Alpaca/alpaca/widgets/instances/openai_instances.py", line 69, in generate_message
    chat, messages = self.prepare_chat(bot_message)
                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/share/Alpaca/alpaca/widgets/instances/openai_instances.py", line 54, in prepare_chat
    chat_element = bot_message.get_ancestor(chat.Chat)
                                            ^^^^
NameError: name 'chat' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions