mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 20:04:31 +00:00
added back secretstr and ran pre-commit
This commit is contained in:
parent
f7e5ae5dfc
commit
3298e50105
5 changed files with 7 additions and 10 deletions
|
|
@ -85,7 +85,7 @@ class NVIDIAInferenceAdapter(Inference, ModelRegistryHelper):
|
|||
# make sure the client lives longer than any async calls
|
||||
self._client = AsyncOpenAI(
|
||||
base_url=f"{self._config.url}/v1",
|
||||
api_key=(self._config.api_key if self._config.api_key else "NO KEY"),
|
||||
api_key=(self._config.api_key.get_secret_value() if self._config.api_key else "NO KEY"),
|
||||
timeout=self._config.timeout,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue