mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-16 23:52:36 +00:00
allow env NVIDIA_BASE_URL to set NVIDIAConfig.url
This commit is contained in:
parent
d3956a1d22
commit
1708ab1225
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ class NVIDIAConfig(BaseModel):
|
|||
"""
|
||||
|
||||
url: str = Field(
|
||||
default="https://integrate.api.nvidia.com",
|
||||
default_factory=lambda: os.getenv(
|
||||
"NVIDIA_BASE_URL", "https://integrate.api.nvidia.com"
|
||||
),
|
||||
description="A base url for accessing the NVIDIA NIM",
|
||||
)
|
||||
api_key: Optional[str] = Field(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue