llama-stack-mirror/llama_stack/providers/remote
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
..
agents test: add unit test to ensure all config types are instantiable (#1601) 2025-03-12 22:29:58 -07:00
datasetio refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
eval refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
inference fix: default api_key from env must be a SecretStr (#2565) 2025-06-30 18:08:44 -07:00
post_training refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
safety refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
tool_runtime refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
vector_io docs: auto generated documentation for providers (#2543) 2025-06-30 15:13:20 +02:00
__init__.py impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00