szczyglis-dev / py-gpt

Desktop AI Assistant powered by GPT-4, GPT-4 Vision, GPT-3.5, DALL-E 3, Langchain, Llama-index, chat, vision, voice control, image generation and analysis, autonomous agents, code and command execution, file upload and download, speech synthesis and recognition, access to Web, memory, prompt presets, plugins, assistants & more. Linux, Windows, Mac.
https://pygpt.net
MIT License
449 stars 92 forks source link

Indexing Fails #50

Closed kantic closed 2 months ago

kantic commented 2 months ago

The indexing of files doesn't work and throws an error.

My setup is the following: I've installed pygpt version 2.1.71 via snapd on a fresh VM with Ubuntu-22.04.

When I try to index my files, I get the following error message:

Exception: 'type'
Type: KeyErrorMessage: 'type'
Traceback:   File "/data/home/user/Software/pygpt/venv/lib/python3.11/site-packages/pygpt_net/core/idx/llm.py", line 94, in get_embeddings_provider
    return self.window.core.llm.llms[provider].get_embeddings_model(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/home/user/Software/pygpt/venv/lib/python3.11/site-packages/pygpt_net/provider/llms/openai.py", line 76, in get_embeddings_model
    args = self.parse_args({
           ^^^^^^^^^^^^^^^^^
  File "/data/home/user/Software/pygpt/venv/lib/python3.11/site-packages/pygpt_net/provider/llms/base.py", line 77, in parse_args
    args = parse_args(options['args'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/home/user/Software/pygpt/venv/lib/python3.11/site-packages/pygpt_net/utils.py", line 114, in parse_args
    type = item['type']
           ~~~~^^^^^^^^
szczyglis-dev commented 2 months ago

Fixed in 2.1.73