llama-stack-mirror/llama_stack
Matthew Farrellee 13aa367c8a
fix: default api_key from env must be a SecretStr (#2565)
# What does this PR do?

fixes the api_key type when read from env

## Test Plan

run nvidia template w/o api_key in run.yaml and perform inference

before change the inference will fail w/ -

```
  File ".../llama-stack/llama_stack/providers/remote/inference/nvidia/nvidia.py", line 118, in _get_client_for_base_url
    api_key=(self._config.api_key.get_secret_value() if self._config.api_key else "NO KEY"),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'get_secret_value'
```
2025-06-30 18:08:44 -07:00
..
apis feat: Add webmethod for deleting openai responses (#2160) 2025-06-30 11:28:02 +02:00
cli fix: stack build (#2485) 2025-06-20 15:15:43 -07:00
distribution fix: dataset metadata without provider_id (#2527) 2025-06-27 08:51:29 -04:00
models fix: finish conversion to StrEnum (#2514) 2025-06-26 08:01:26 +05:30
providers fix: default api_key from env must be a SecretStr (#2565) 2025-06-30 18:08:44 -07:00
strong_typing chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
templates chore: OpenAI compatibility for Milvus (#2470) 2025-06-27 16:00:36 -07:00
ui build: Bump version to 0.2.13 2025-06-27 23:56:14 +00:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00
env.py refactor(test): move tools, evals, datasetio, scoring and post training tests (#1401) 2025-03-04 14:53:47 -08:00
log.py chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
schema_utils.py chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00