mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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:
|
except:
|
||||||
raise Exception("LiteLLM: No logs saved!")
|
raise Exception("LiteLLM: No logs saved!")
|
||||||
return
|
return
|
||||||
if model and "ollama" in model:
|
if model and "ollama" in model and api_base is None:
|
||||||
run_ollama_serve()
|
run_ollama_serve()
|
||||||
if test_async is True:
|
if test_async is True:
|
||||||
import requests, concurrent, time
|
import requests, concurrent, time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue