mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-20 16:48:40 +00:00
feat: migrate Inspect API to FastAPI router (#4403)
# What does this PR do? Migrate the Inspect API to the FastAPI router pattern. Changes: - Add inspect API to FastAPI router registry - Add PUBLIC_ROUTE_KEY support for routes that don't require auth - Update WebMethod creation to respect route's openapi_extra for authentication requirements Fixes: https://github.com/llamastack/llama-stack/issues/4346 <!-- Provide a short summary of what this PR does and why. Link to relevant issues if applicable. --> <!-- If resolving an issue, uncomment and update the line below --> <!-- Closes #[issue-number] --> ## Test Plan CI and various curls on /v1/inspect/routes, /v1/health, /v1/version Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
cd5095a247
commit
a7d509aaf9
14 changed files with 281 additions and 182 deletions
6
docs/static/deprecated-llama-stack-spec.yaml
vendored
6
docs/static/deprecated-llama-stack-spec.yaml
vendored
|
|
@ -3196,6 +3196,7 @@ components:
|
|||
properties:
|
||||
status:
|
||||
$ref: '#/components/schemas/HealthStatus'
|
||||
description: The health status of the service
|
||||
type: object
|
||||
required:
|
||||
- status
|
||||
|
|
@ -3206,14 +3207,17 @@ components:
|
|||
route:
|
||||
type: string
|
||||
title: Route
|
||||
description: The API route path
|
||||
method:
|
||||
type: string
|
||||
title: Method
|
||||
description: The HTTP method for the route
|
||||
provider_types:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
title: Provider Types
|
||||
description: List of provider types implementing this route
|
||||
type: object
|
||||
required:
|
||||
- route
|
||||
|
|
@ -3228,6 +3232,7 @@ components:
|
|||
$ref: '#/components/schemas/RouteInfo'
|
||||
type: array
|
||||
title: Data
|
||||
description: List of available API routes
|
||||
type: object
|
||||
required:
|
||||
- data
|
||||
|
|
@ -7349,6 +7354,7 @@ components:
|
|||
version:
|
||||
type: string
|
||||
title: Version
|
||||
description: The version string of the service
|
||||
type: object
|
||||
required:
|
||||
- version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue