mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
Merge pull request #8793 from open-webui/dev
fix: model ids not being applied
This commit is contained in:
commit
6c8d68b6fc
2 changed files with 2 additions and 2 deletions
|
|
@ -261,7 +261,7 @@ async def get_all_models(request: Request):
|
||||||
if request.app.state.config.ENABLE_OLLAMA_API:
|
if request.app.state.config.ENABLE_OLLAMA_API:
|
||||||
request_tasks = []
|
request_tasks = []
|
||||||
for idx, url in enumerate(request.app.state.config.OLLAMA_BASE_URLS):
|
for idx, url in enumerate(request.app.state.config.OLLAMA_BASE_URLS):
|
||||||
if (str(idx) not in request.app.state.config.OLLAMA_API_CONFIGS) or (
|
if (str(idx) not in request.app.state.config.OLLAMA_API_CONFIGS) and (
|
||||||
url not in request.app.state.config.OLLAMA_API_CONFIGS # Legacy support
|
url not in request.app.state.config.OLLAMA_API_CONFIGS # Legacy support
|
||||||
):
|
):
|
||||||
request_tasks.append(send_get_request(f"{url}/api/tags"))
|
request_tasks.append(send_get_request(f"{url}/api/tags"))
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,7 @@ async def get_all_models_responses(request: Request) -> list:
|
||||||
|
|
||||||
request_tasks = []
|
request_tasks = []
|
||||||
for idx, url in enumerate(request.app.state.config.OPENAI_API_BASE_URLS):
|
for idx, url in enumerate(request.app.state.config.OPENAI_API_BASE_URLS):
|
||||||
if (str(idx) not in request.app.state.config.OPENAI_API_CONFIGS) or (
|
if (str(idx) not in request.app.state.config.OPENAI_API_CONFIGS) and (
|
||||||
url not in request.app.state.config.OPENAI_API_CONFIGS # Legacy support
|
url not in request.app.state.config.OPENAI_API_CONFIGS # Legacy support
|
||||||
):
|
):
|
||||||
request_tasks.append(
|
request_tasks.append(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue