mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
fixes
This commit is contained in:
parent
5c2cbb6bc7
commit
7c73997b50
1 changed files with 0 additions and 5 deletions
|
|
@ -20,11 +20,6 @@ class CerebrasInferenceAdapter(OpenAIMixin):
|
||||||
|
|
||||||
provider_data_api_key_field: str = "cerebras_api_key"
|
provider_data_api_key_field: str = "cerebras_api_key"
|
||||||
|
|
||||||
def get_api_key(self) -> str:
|
|
||||||
if self.config.auth_credential is None:
|
|
||||||
raise ValueError("Cerebras API key is required")
|
|
||||||
return self.config.auth_credential.get_secret_value()
|
|
||||||
|
|
||||||
def get_base_url(self) -> str:
|
def get_base_url(self) -> str:
|
||||||
return urljoin(self.config.base_url, "v1")
|
return urljoin(self.config.base_url, "v1")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue