浏览代码

Merge pull request #5399 from open-webui/main

fix: allow o1
Timothy Jaeryang Baek 7 月之前
父节点
当前提交
c1d3481c41
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      backend/open_webui/apps/openai/main.py

+ 0 - 3
backend/open_webui/apps/openai/main.py

@@ -218,9 +218,6 @@ def merge_models_lists(model_lists):
                         "urlIdx": idx,
                         "urlIdx": idx,
                     }
                     }
                     for model in models
                     for model in models
-                    if "api.openai.com"
-                    not in app.state.config.OPENAI_API_BASE_URLS[idx]
-                    or "gpt" in model["id"]
                 ]
                 ]
             )
             )