mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 23:41:50 +00:00
update api_key_from_config initialization
This commit is contained in:
parent
d739fe77a9
commit
bc65d5c9ef
2 changed files with 1 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ class SambaNovaInferenceAdapter(LiteLLMOpenAIMixin):
|
|||
LiteLLMOpenAIMixin.__init__(
|
||||
self,
|
||||
model_entries=MODEL_ENTRIES,
|
||||
api_key_from_config=self.config.api_key,
|
||||
api_key_from_config=self.config.api_key.get_secret_value() if self.config.api_key else None,
|
||||
provider_data_api_key_field="sambanova_api_key",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue