added back secretstr and ran pre-commit

This commit is contained in:
Chantal D Gama Rose 2025-03-04 01:23:12 -08:00
parent f7e5ae5dfc
commit 3298e50105
5 changed files with 7 additions and 10 deletions

View file

@ -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,
)