feat: add base_url to ChatOllama to read from remote server

This commit is contained in:
meshkatshb
2025-01-15 15:29:08 +03:30
parent 319a6c8069
commit 332eeab4e7

View File

@@ -89,6 +89,7 @@ def get_llm_model(provider: str, **kwargs):
model=kwargs.get("model_name", "qwen2.5:7b"),
temperature=kwargs.get("temperature", 0.0),
num_ctx=128000,
base_url=kwargs.get("base_url", "http://localhost:11434"),
)
elif provider == "azure_openai":
if not kwargs.get("base_url", ""):