mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
default api_key from env must be a SecretStr
This commit is contained in:
parent
b333a3c03a
commit
e819d07149
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class NVIDIAConfig(BaseModel):
|
|||
description="A base url for accessing the NVIDIA NIM",
|
||||
)
|
||||
api_key: SecretStr | None = Field(
|
||||
default_factory=lambda: os.getenv("NVIDIA_API_KEY"),
|
||||
default_factory=lambda: SecretStr(os.getenv("NVIDIA_API_KEY")),
|
||||
description="The NVIDIA API key, only needed of using the hosted service",
|
||||
)
|
||||
timeout: int = Field(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue