mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 09:21:45 +00:00
update the env parsing logic
This commit is contained in:
parent
38ff88ba64
commit
0eaf5c21c3
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ class NVIDIAConfig(BaseModel):
|
||||||
description="Timeout for the HTTP requests",
|
description="Timeout for the HTTP requests",
|
||||||
)
|
)
|
||||||
append_api_version: bool = Field(
|
append_api_version: bool = Field(
|
||||||
default=lambda: os.getenv("NVIDIA_APPEND_API_VERSION", True),
|
default_factory=lambda: os.getenv("NVIDIA_APPEND_API_VERSION", "True").lower() != "false",
|
||||||
description="Whether to append the API version to the model ID",
|
description="When set to false, the API version will not be appended to the base_url. By default, it is true.",
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue