get_models -> list_provider_model_ids

This commit is contained in:
Matthew Farrellee 2025-10-06 06:37:56 -04:00
parent c465472e42
commit a765f1c029
3 changed files with 64 additions and 189 deletions

View file

@ -4,13 +4,13 @@
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from collections.abc import Iterable
from typing import Any
from databricks.sdk import WorkspaceClient
from llama_stack.apis.inference import (
Inference,
Model,
OpenAICompletion,
)
from llama_stack.log import get_logger
@ -71,7 +71,7 @@ class DatabricksInferenceAdapter(
) -> OpenAICompletion:
raise NotImplementedError()
async def get_models(self) -> list[Model] | None:
async def list_provider_model_ids(self) -> Iterable[str]:
return [
endpoint.name
for endpoint in WorkspaceClient(