[GH-ISSUE #7692] get_all_models() is called twice with the first call always failing #14847

Closed
opened 2026-04-19 21:06:47 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @FutureAI-X on GitHub (Dec 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7692

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: [v0.4.8]

  • Ollama (if applicable): [v0.4.0]

  • Operating System: [Windows11]

  • Browser (if applicable): [Chrome 131.0.6778.109]

Confirmation:

  • [√ ] I have read and followed all the instructions provided in the README.md.
  • [√ ] I am on the latest version of both Open WebUI and Ollama.
  • [ √] I have included the browser console logs.
  • √ I have included the Docker container logs.
  • [ √] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

The conversation response is fast.

Actual Behavior:

The conversation response is slow.

Description

Bug Summary:
During each conversation, get_all_models() is called twice, with the first call always failing and the second call always succeeding. This results in delayed responses in the conversation.

Reproduction Details

Steps to Reproduce:
Every time a message is sent

Logs and Screenshots

Browser Console Logs:
None

Docker Container Logs:

2024-12-08 11:22:50 INFO  [open_webui.apps.openai.main] get_all_models()
2024-12-08 11:22:56 ERROR [open_webui.apps.openai.main] Connection error: 
2024-12-08 11:22:56 INFO  [open_webui.apps.ollama.main] get_all_models()
2024-12-08 11:22:56 INFO  [open_webui.apps.ollama.main] url: http://host.docker.internal:11434
2024-12-08 11:22:57 INFO:     172.17.0.1:46672 - "POST /api/chat/completions HTTP/1.1" 200 OK
2024-12-08 11:22:58 ERROR [asyncio] Unclosed client session
2024-12-08 11:22:58 client_session: <aiohttp.client.ClientSession object at 0x7fe2aa10d5d0>
2024-12-08 11:22:58 ERROR [asyncio] Unclosed connector
2024-12-08 11:22:58 connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x7fe2aa138600>, 1794.63503293)])']
2024-12-08 11:22:58 connector: <aiohttp.connector.TCPConnector object at 0x7fe2aa12e090>
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "POST /api/v1/chats/0a5250c2-ad52-4024-b46f-ccdf62021909 HTTP/1.1" 200 OK
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "POST /api/chat/completed HTTP/1.1" 200 OK
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "POST /api/v1/chats/0a5250c2-ad52-4024-b46f-ccdf62021909 HTTP/1.1" 200 OK
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
2024-12-08 11:22:58 INFO:     172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK

Screenshots/Screen Recordings (if applicable):
None

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @FutureAI-X on GitHub (Dec 8, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7692 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** [v0.4.8] - **Ollama (if applicable):** [v0.4.0] - **Operating System:** [Windows11] - **Browser (if applicable):** [Chrome 131.0.6778.109] **Confirmation:** - [√ ] I have read and followed all the instructions provided in the README.md. - [√ ] I am on the latest version of both Open WebUI and Ollama. - [ √] I have included the browser console logs. - [ ]√ I have included the Docker container logs. - [ √] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: The conversation response is fast. ## Actual Behavior: The conversation response is slow. ## Description **Bug Summary:** During each conversation, get_all_models() is called twice, with the first call always failing and the second call always succeeding. This results in delayed responses in the conversation. ## Reproduction Details **Steps to Reproduce:** Every time a message is sent ## Logs and Screenshots **Browser Console Logs:** None **Docker Container Logs:** ``` 2024-12-08 11:22:50 INFO [open_webui.apps.openai.main] get_all_models() 2024-12-08 11:22:56 ERROR [open_webui.apps.openai.main] Connection error: 2024-12-08 11:22:56 INFO [open_webui.apps.ollama.main] get_all_models() 2024-12-08 11:22:56 INFO [open_webui.apps.ollama.main] url: http://host.docker.internal:11434 2024-12-08 11:22:57 INFO: 172.17.0.1:46672 - "POST /api/chat/completions HTTP/1.1" 200 OK 2024-12-08 11:22:58 ERROR [asyncio] Unclosed client session 2024-12-08 11:22:58 client_session: <aiohttp.client.ClientSession object at 0x7fe2aa10d5d0> 2024-12-08 11:22:58 ERROR [asyncio] Unclosed connector 2024-12-08 11:22:58 connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x7fe2aa138600>, 1794.63503293)])'] 2024-12-08 11:22:58 connector: <aiohttp.connector.TCPConnector object at 0x7fe2aa12e090> 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "POST /api/v1/chats/0a5250c2-ad52-4024-b46f-ccdf62021909 HTTP/1.1" 200 OK 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "POST /api/chat/completed HTTP/1.1" 200 OK 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "POST /api/v1/chats/0a5250c2-ad52-4024-b46f-ccdf62021909 HTTP/1.1" 200 OK 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK 2024-12-08 11:22:58 INFO: 172.17.0.1:46672 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK ``` **Screenshots/Screen Recordings (if applicable):** None ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14847