mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: fix run_ollama_serve to only run if api base is none
This commit is contained in:
parent
82484691cb
commit
f10bb708c0
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ def run_server(host, port, api_base, api_version, model, alias, add_key, headers
|
|||
except:
|
||||
raise Exception("LiteLLM: No logs saved!")
|
||||
return
|
||||
if model and "ollama" in model:
|
||||
if model and "ollama" in model and api_base is None:
|
||||
run_ollama_serve()
|
||||
if test_async is True:
|
||||
import requests, concurrent, time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue