mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 05:22:36 +00:00
update anthropic, databricks, tgi, together after get_models rename
This commit is contained in:
parent
733e72caf9
commit
8658949bbb
4 changed files with 4 additions and 12 deletions
|
|
@ -35,5 +35,5 @@ class AnthropicInferenceAdapter(OpenAIMixin):
|
|||
def get_base_url(self):
|
||||
return "https://api.anthropic.com/v1"
|
||||
|
||||
async def get_models(self) -> Iterable[str] | None:
|
||||
async def list_provider_model_ids(self) -> Iterable[str]:
|
||||
return [m.id async for m in AsyncAnthropic(api_key=self.get_api_key()).models.list()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue