update anthropic, databricks, tgi, together after get_models rename

This commit is contained in:
Matthew Farrellee 2025-10-06 09:08:09 -04:00
parent 733e72caf9
commit 8658949bbb
4 changed files with 4 additions and 12 deletions

View file

@ -33,7 +33,7 @@ class DatabricksInferenceAdapter(OpenAIMixin):
def get_base_url(self) -> str:
return f"{self.config.url}/serving-endpoints"
async def get_models(self) -> list[str] | None:
async def list_provider_model_ids(self) -> Iterable[str]:
return [
endpoint.name
for endpoint in WorkspaceClient(
@ -68,11 +68,3 @@ class DatabricksInferenceAdapter(OpenAIMixin):
suffix: str | None = None,
) -> OpenAICompletion:
raise NotImplementedError()
async def list_provider_model_ids(self) -> Iterable[str]:
return [
endpoint.name
for endpoint in WorkspaceClient(
host=self.config.url, token=self.get_api_key()
).serving_endpoints.list() # TODO: this is not async
]