Remove os.getenv() from ollama config

This commit is contained in:
Ashwin Bharambe 2025-02-20 14:30:32 -08:00
parent 2cbe9395b0
commit 736560ceba

View file

@ -4,7 +4,6 @@
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import os
from typing import Any, Dict
from pydantic import BaseModel
@ -13,7 +12,7 @@ DEFAULT_OLLAMA_URL = "http://localhost:11434"
class OllamaImplConfig(BaseModel):
url: str = os.getenv("OLLAMA_URL", DEFAULT_OLLAMA_URL)
url: str = DEFAULT_OLLAMA_URL
@classmethod
def sample_run_config(cls, url: str = "${env.OLLAMA_URL:http://localhost:11434}", **kwargs) -> Dict[str, Any]: