[GH-ISSUE #5812] Bug: get_all_models() always returns {'data': []} #133864

Closed
opened 2026-05-24 23:20:40 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @luochen1990 on GitHub (Sep 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5812

Bug Report

DEBUG [open_webui.main] Commit session after request
INFO:     10.40.10.1:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P91oklv.0&sid=AwcBygYp5nxCHmm5AAAH HTTP/1.0" 200 OK
INFO  [open_webui.apps.openai.main] get_all_models()
INFO  [open_webui.apps.openai.main] get_all_models()
ERROR [open_webui.apps.openai.main] Connection error:
ERROR [open_webui.apps.openai.main] Connection error:
DEBUG [open_webui.apps.openai.main] get_all_models:responses() [None]
DEBUG [open_webui.apps.openai.main] merge_models_lists <map object at 0x7f2825f5a170>
DEBUG [open_webui.apps.openai.main] models: {'data': []}

Installation Method

NixOS module

{ lib, config, ... }:
  config = {
    services.open-webui = {
      enable = true;
      host = "0.0.0.0";
      port = 5090;
      environment = {
        DEFAULT_LOCALE = "zh-CN";
        ENABLE_OLLAMA_API = "False";

        ENABLE_OPENAI_API = "True";
        OPENAI_API_BASE_URLS = builtins.concatStringsSep ";" [
          "https://api.deepseek.com"
        ];
        OPENAI_API_KEYS = builtins.concatStringsSep ";" [
          "sk-xxx"
        ];
        DEFAULT_MODELS = "deepseek-chat";
      };
    };

    systemd.services.open-webui = {
      serviceConfig = {
        Restart = "on-failure";
        RestartSec = "2s";
        #LimitCORE = "10M";
      };
    };
  };
}

Environment

  • Open WebUI Version: Both v0.3.21 and v0.3.30

  • Ollama (if applicable): Disabled

  • Operating System: NixOS

  • Browser (if applicable): MS-Edge

Reproduce steps:

systemctl stop open-webui
mv /var/lib/private/open-webui   /var/lib/private/open-webui.bak
systemctl start open-webui

journalctl -u open-webui.service | rg get_all_models -C 3
Originally created by @luochen1990 on GitHub (Sep 30, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5812 # Bug Report ``` DEBUG [open_webui.main] Commit session after request INFO: 10.40.10.1:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P91oklv.0&sid=AwcBygYp5nxCHmm5AAAH HTTP/1.0" 200 OK INFO [open_webui.apps.openai.main] get_all_models() INFO [open_webui.apps.openai.main] get_all_models() ERROR [open_webui.apps.openai.main] Connection error: ERROR [open_webui.apps.openai.main] Connection error: DEBUG [open_webui.apps.openai.main] get_all_models:responses() [None] DEBUG [open_webui.apps.openai.main] merge_models_lists <map object at 0x7f2825f5a170> DEBUG [open_webui.apps.openai.main] models: {'data': []} ``` ## Installation Method NixOS module ``` { lib, config, ... }: config = { services.open-webui = { enable = true; host = "0.0.0.0"; port = 5090; environment = { DEFAULT_LOCALE = "zh-CN"; ENABLE_OLLAMA_API = "False"; ENABLE_OPENAI_API = "True"; OPENAI_API_BASE_URLS = builtins.concatStringsSep ";" [ "https://api.deepseek.com" ]; OPENAI_API_KEYS = builtins.concatStringsSep ";" [ "sk-xxx" ]; DEFAULT_MODELS = "deepseek-chat"; }; }; systemd.services.open-webui = { serviceConfig = { Restart = "on-failure"; RestartSec = "2s"; #LimitCORE = "10M"; }; }; }; } ``` ## Environment - **Open WebUI Version:** Both `v0.3.21` and `v0.3.30` - **Ollama (if applicable):** Disabled - **Operating System:** NixOS - **Browser (if applicable):** MS-Edge ## Reproduce steps: ```sh systemctl stop open-webui mv /var/lib/private/open-webui /var/lib/private/open-webui.bak systemctl start open-webui journalctl -u open-webui.service | rg get_all_models -C 3 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#133864