Skip to content

Commit 811dca6

Browse files
committed
Updated description for /providers endpoint
1 parent 750ff7f commit 811dca6

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/app/endpoints/providers.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,16 @@ async def providers_endpoint_handler(
6767
- request: The incoming HTTP request.
6868
- auth: Authentication tuple from the auth dependency.
6969
70+
### Raises:
71+
- HTTPException: with status 401 for unauthorized access.
72+
- HTTPException: with status 403 if permission is denied.
73+
- HTTPException: with status 500 and a detail object containing `response`
74+
and `cause` when service configuration is wrong or incomplete.
75+
- HTTPException: with status 503 and a detail object containing `response`
76+
and `cause` when unable to connect to Llama Stack.
77+
7078
### Returns:
7179
- ProvidersListResponse: Mapping from API type to list of providers.
72-
73-
### Raises:
74-
- HTTPException:
75-
- 401: Authentication failed
76-
- 403: Authorization failed
77-
- 500: Lightspeed Stack configuration not loaded
78-
- 503: Unable to connect to Llama Stack
7980
"""
8081
# Used only by the middleware
8182
_ = auth

0 commit comments

Comments
 (0)