Skip to content

Commit 0078b56

Browse files
committed
Fixed description (docstring)
1 parent 98b2e11 commit 0078b56

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/app/endpoints/providers.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,17 @@ async def get_provider_endpoint_handler(
136136
- provider_id: Provider identification string
137137
- auth: Authentication tuple from the auth dependency.
138138
139+
### Raises:
140+
- HTTPException: with status 401 for unauthorized access.
141+
- HTTPException: with status 403 if permission is denied.
142+
- HTTPException: with status 404 if provider is not found.
143+
- HTTPException: with status 500 and a detail object containing `response`
144+
and `cause` when service configuration is wrong or incomplete.
145+
- HTTPException: with status 503 and a detail object containing `response`
146+
and `cause` when unable to connect to Llama Stack.
147+
139148
### Returns:
140149
- ProviderResponse: Provider details.
141-
142-
### Raises:
143-
- HTTPException:
144-
- 401: Authentication failed
145-
- 403: Authorization failed
146-
- 404: Provider not found
147-
- 500: Lightspeed Stack configuration not loaded
148-
- 503: Unable to connect to Llama Stack
149150
"""
150151
# Used only by the middleware
151152
_ = auth

0 commit comments

Comments
 (0)