mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 18:22:26 +00:00
Fix Groq invalid self.config reference
This commit is contained in:
parent
04d5b9814f
commit
d87b83bd28
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ class GroqInferenceAdapter(Inference, ModelRegistryHelper, NeedsRequestProviderD
|
|||
|
||||
def _get_client(self) -> Groq:
|
||||
if self._config.api_key is not None:
|
||||
return Groq(api_key=self.config.api_key)
|
||||
return Groq(api_key=self._config.api_key)
|
||||
else:
|
||||
provider_data = self.get_request_provider_data()
|
||||
if provider_data is None or not provider_data.groq_api_key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue