llama-stack-mirror/llama_stack/providers/utils
Matthew Farrellee f731f369a2
feat: add infrastructure to allow inference model discovery (#2710)
# What does this PR do?

inference providers each have a static list of supported / known models.
some also have access to a dynamic list of currently available models.
this change gives prodivers using the ModelRegistryHelper the ability to
combine their static and dynamic lists.

for instance, OpenAIInferenceAdapter can implement
```
   def query_available_models(self) -> list[str]:
      return [entry.model for entry in self.openai_client.models.list()]
```
to augment its static list w/ a current list from openai.

## Test Plan

scripts/unit-test.sh
2025-07-14 11:38:53 -07:00
..
bedrock feat: drop python 3.10 support (#2469) 2025-06-19 12:07:14 +05:30
common chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
datasetio chore(refact): move paginate_records fn outside of datasetio (#2137) 2025-05-12 10:56:14 -07:00
inference feat: add infrastructure to allow inference model discovery (#2710) 2025-07-14 11:38:53 -07:00
kvstore fix: store configs (#2593) 2025-07-03 10:07:23 -07:00
memory fix: handle encoding errors when adding files to vector store (#2574) 2025-07-04 12:10:18 +02:00
responses fix: add missing argument and methods (#2550) 2025-06-30 14:55:37 +02:00
scoring chore: enable pyupgrade fixes (#1806) 2025-05-01 14:23:50 -07:00
sqlstore fix: auth sql store: user is owner policy (#2674) 2025-07-10 14:40:32 -07:00
telemetry chore: update pre-commit hook versions (#2708) 2025-07-10 16:47:59 +02:00
tools chore: bump python supported version to 3.12 (#2475) 2025-06-24 09:22:04 +05:30
vector_io chore: Updating chunk id generation to ensure uniqueness (#2618) 2025-07-04 10:26:35 +05:30
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
pagination.py chore(refact): move paginate_records fn outside of datasetio (#2137) 2025-05-12 10:56:14 -07:00
scheduler.py chore: bump python supported version to 3.12 (#2475) 2025-06-24 09:22:04 +05:30