mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
Remove os.getenv() from ollama config
This commit is contained in:
parent
2cbe9395b0
commit
736560ceba
1 changed files with 1 additions and 2 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue