[GH-ISSUE #8039] Bug: Frequent Model List Fetching Leading to Connection Errors #118285

Closed
opened 2026-05-20 19:40:43 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Adhithya03 on GitHub (Dec 24, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8039

Hello,

Firstly, thank you for all your hard work on the Open-webui package. I appreciate that it's provided for free and has been very useful.

I'm experiencing an issue where the package seems to fetch the list of models from the API every time a message is sent. This often leads to connection errors, which interrupts the workflow. I understand there might be reasons for fetching the model list frequently, but I wanted to bring this to your attention in case there's room for optimization.

Installation Method:

  • Installed via PIP
  • Open-webui version: 0.4.8

Environment:

  • Operating System: Windows 11

Expected Behavior:

  • The package would fetch the model list once and reuse it for subsequent messages, minimizing unnecessary API calls and reducing the likelihood of connection errors.

Actual Behavior:

  • With every message sent, the package fetches the model list from the API.
  • This results in frequent connection errors, even after increasing the timeout settings for OpenAI models.

Logs and Screenshots:

  • Error messages received after sending messages:

    Error Screenshot 1

    Error Screenshot 2

Additional Information:

  • Increasing the timeout for OpenAI models did not resolve the connection errors.
  • I haven't found similar issues reported by others, so I'm not sure if this is an isolated case or not.
  • I'm not certain of the specific steps to reproduce the issue consistently, but it occurs frequently during normal use.

Suggestions:

  • If possible, implementing a caching mechanism for the model list might help improve performance and reduce connection errors.
  • Alternatively, providing an option to manually refresh the model list or to set automatic refresh intervals could be beneficial.
  • Handling connection errors gracefully to prevent disruptions in usage would enhance the user experience.

Again, thank you for your time and effort in developing and maintaining this package. Any guidance or assistance in resolving this issue would be greatly appreciated.

Originally created by @Adhithya03 on GitHub (Dec 24, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8039 Hello, Firstly, thank you for all your hard work on the Open-webui package. I appreciate that it's provided for free and has been very useful. I'm experiencing an issue where the package seems to fetch the list of models from the API every time a message is sent. This often leads to connection errors, which interrupts the workflow. I understand there might be reasons for fetching the model list frequently, but I wanted to bring this to your attention in case there's room for optimization. **Installation Method:** - Installed via PIP - Open-webui version: 0.4.8 **Environment:** - Operating System: Windows 11 **Expected Behavior:** - The package would fetch the model list once and reuse it for subsequent messages, minimizing unnecessary API calls and reducing the likelihood of connection errors. **Actual Behavior:** - With every message sent, the package fetches the model list from the API. - This results in frequent connection errors, even after increasing the timeout settings for OpenAI models. **Logs and Screenshots:** - Error messages received after sending messages: ![Error Screenshot 1](https://github.com/user-attachments/assets/7b4a5531-d07f-461e-924f-6bec7c74d5af) ![Error Screenshot 2](https://github.com/user-attachments/assets/51a7f1e5-57c2-4540-8248-dabb09359a2b) **Additional Information:** - Increasing the timeout for OpenAI models did not resolve the connection errors. - I haven't found similar issues reported by others, so I'm not sure if this is an isolated case or not. - I'm not certain of the specific steps to reproduce the issue consistently, but it occurs frequently during normal use. **Suggestions:** - If possible, implementing a caching mechanism for the model list might help improve performance and reduce connection errors. - Alternatively, providing an option to manually refresh the model list or to set automatic refresh intervals could be beneficial. - Handling connection errors gracefully to prevent disruptions in usage would enhance the user experience. --- Again, thank you for your time and effort in developing and maintaining this package. Any guidance or assistance in resolving this issue would be greatly appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#118285