Skip to content

Freeze when creating and save OpenAi-compatible instance #1124

@jsmendek

Description

@jsmendek

Describe the bug

Create OpenAi compatible instance -> Save:

Traceback (most recent call last):
File "/usr/lib/python3.13/threading.py", line 1044, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/app/share/Alpaca/alpaca/widgets/instances/init.py", line 261, in save_requested
self.instance.start()
~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/threading.py", line 995, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/Alpaca/alpaca/widgets/instances/openai_instances.py", line 55, in start
self.client = openai.OpenAI(**arguments)
^^^^^^^^^
File "/app/share/Alpaca/alpaca/window.py", line 131, in change_instance
row.instance.start()
~~~~~~~~~~~~~~~~~~^^
NameError: name 'arguments' is not defined
File "/app/share/Alpaca/alpaca/widgets/instances/openai_instances.py", line 55, in start
self.client = openai.OpenAI(**arguments)
^^^^^^^^^
NameError: name 'arguments' is not defined

Debugging information
Version 9.2.0, Linux Mint, Python 3.13.5

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=alpaca com.jeffser.Alpaca

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