Originally created by @bpawnzZ on GitHub (Jan 10, 2025).
Hi everyone,
I’m currently setting up Open-WebUI’s API and running into an issue. The API works perfectly with normal models when accessed through other OpenAI-compatible clients (such as Cline or ChatboxAI). However, when I attach a knowledge/RAG database to the API, I encounter the following error:
Cannot read properties of undefined (reading '0')
This error occurs consistently across multiple client applications (except Open-WebUI itself), suggesting an issue with how the API handles the knowledge/RAG database in non-Open-WebUI clients.
To reproduce:
Set up a working Open-WebUI API endpoint with a normal model (no knowledge/RAG database).
Verify that it works with other clients like Cline or ChatboxAI.
Attach a knowledge/RAG database to the API.
Attempt to connect it to Cline or ChatboxAI again.
Observe the error mentioned above.
I’ve confirmed that the API works fine with curl in the terminal and can connect to other Open-WebUI instances without issues, even with the knowledge/RAG database attached.
Has anyone else experienced this or have any insights into why this might be happening? Any suggestions or potential solutions would be greatly appreciated!
Thank you in advance for your help!
Originally created by @bpawnzZ on GitHub (Jan 10, 2025).
Hi everyone,
I’m currently setting up Open-WebUI’s API and running into an issue. The API works perfectly with normal models when accessed through other OpenAI-compatible clients (such as Cline or [ChatboxAI](https://web.chatboxai.app)). However, when I attach a knowledge/RAG database to the API, I encounter the following error:
```
Cannot read properties of undefined (reading '0')
```
This error occurs consistently across multiple client applications (except Open-WebUI itself), suggesting an issue with how the API handles the knowledge/RAG database in non-Open-WebUI clients.
To reproduce:
1. Set up a working Open-WebUI API endpoint with a normal model (no knowledge/RAG database).
- Verify that it works with other clients like Cline or ChatboxAI.
2. Attach a knowledge/RAG database to the API.
3. Attempt to connect it to Cline or ChatboxAI again.
4. Observe the error mentioned above.
I’ve confirmed that the API works fine with `curl` in the terminal and can connect to other Open-WebUI instances without issues, even with the knowledge/RAG database attached.
Has anyone else experienced this or have any insights into why this might be happening? Any suggestions or potential solutions would be greatly appreciated!
Thank you in advance for your help!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @bpawnzZ on GitHub (Jan 10, 2025).
Hi everyone,
I’m currently setting up Open-WebUI’s API and running into an issue. The API works perfectly with normal models when accessed through other OpenAI-compatible clients (such as Cline or ChatboxAI). However, when I attach a knowledge/RAG database to the API, I encounter the following error:
This error occurs consistently across multiple client applications (except Open-WebUI itself), suggesting an issue with how the API handles the knowledge/RAG database in non-Open-WebUI clients.
To reproduce:
I’ve confirmed that the API works fine with
curlin the terminal and can connect to other Open-WebUI instances without issues, even with the knowledge/RAG database attached.Has anyone else experienced this or have any insights into why this might be happening? Any suggestions or potential solutions would be greatly appreciated!
Thank you in advance for your help!