Goal is to consolidate model listing endpoints. This is step 1: adding custom_metadata
field to OpenAIModel that includes model_type, provider_id, provider_resource_id, and
all model metadata from the native /v1/models response.
Next steps: update stainless client to use /v1/openai/v1/models, migrate tests to read
from custom_metadata, then remove /v1/openai/v1/ prefix entirely.
Migrates package structure to src/ layout following Python packaging
best practices.
All code moved from `llama_stack/` to `src/llama_stack/`. Public API
unchanged - imports remain `import llama_stack.*`.
Updated build configs, pre-commit hooks, scripts, and GitHub workflows
accordingly. All hooks pass, package builds cleanly.
**Developer note**: Reinstall after pulling: `pip install -e .`
2025-10-27 12:02:21 -07:00
Renamed from llama_stack/apis/models/models.py (Browse further)