Skip to content

Commit

Permalink
Remove os.getenv() from ollama config
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinb committed Feb 20, 2025
1 parent 2cbe939 commit 736560c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llama_stack/providers/remote/inference/ollama/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -13,7 +12,7 @@


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]:
Expand Down

0 comments on commit 736560c

Please sign in to comment.