@@ -34,7 +34,7 @@ Handle request to the / endpoint.
3434Handle request to the /info endpoint.
3535
3636Process GET requests to the /info endpoint, returning the
37- service name and version.
37+ service name, version and Llama-stack version.
3838
3939Returns:
4040 InfoResponse: An object containing the service's name and version.
@@ -74,7 +74,7 @@ Returns:
7474| Status Code | Description | Component |
7575| -------------| -------------| -----------|
7676| 200 | Successful Response | [ ModelsResponse] ( #modelsresponse ) |
77- | 503 | Connection to Llama Stack is broken | |
77+ | 500 | Connection to Llama Stack is broken | |
7878## POST ` /v1/query `
7979
8080> ** Query Endpoint Handler**
@@ -108,7 +108,7 @@ Returns:
108108| 200 | Successful Response | [ QueryResponse] ( #queryresponse ) |
109109| 400 | Missing or invalid credentials provided by client | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
110110| 403 | User is not authorized | [ ForbiddenResponse] ( #forbiddenresponse ) |
111- | 503 | Service Unavailable | |
111+ | 500 | Internal Server Error | |
112112| 422 | Validation Error | [ HTTPValidationError] ( #httpvalidationerror ) |
113113## POST ` /v1/streaming_query `
114114
@@ -143,7 +143,11 @@ Raises:
143143
144144| Status Code | Description | Component |
145145| -------------| -------------| -----------|
146- | 200 | Successful Response | ... |
146+ | 200 | Streaming response with Server-Sent Events | ...string |
147+ | 400 | Missing or invalid credentials provided by client | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
148+ | 401 | Unauthorized: Invalid or missing Bearer token for k8s auth | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
149+ | 403 | User is not authorized | [ ForbiddenResponse] ( #forbiddenresponse ) |
150+ | 500 | Internal Server Error | |
147151| 422 | Validation Error | [ HTTPValidationError] ( #httpvalidationerror ) |
148152## GET ` /v1/config `
149153
@@ -269,6 +273,8 @@ Handle request to retrieve all conversations for the authenticated user.
269273| Status Code | Description | Component |
270274| -------------| -------------| -----------|
271275| 200 | Successful Response | [ ConversationsListResponse] ( #conversationslistresponse ) |
276+ | 400 | Missing or invalid credentials provided by client | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
277+ | 401 | Unauthorized: Invalid or missing Bearer token | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
272278| 503 | Service Unavailable | |
273279## GET ` /v1/conversations/{conversation_id} `
274280
@@ -304,6 +310,8 @@ Returns:
304310| Status Code | Description | Component |
305311| -------------| -------------| -----------|
306312| 200 | Successful Response | [ ConversationResponse] ( #conversationresponse ) |
313+ | 400 | Missing or invalid credentials provided by client | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
314+ | 401 | Unauthorized: Invalid or missing Bearer token | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
307315| 404 | Not Found | |
308316| 503 | Service Unavailable | |
309317| 422 | Validation Error | [ HTTPValidationError] ( #httpvalidationerror ) |
@@ -335,6 +343,8 @@ Returns:
335343| Status Code | Description | Component |
336344| -------------| -------------| -----------|
337345| 200 | Successful Response | [ ConversationDeleteResponse] ( #conversationdeleteresponse ) |
346+ | 400 | Missing or invalid credentials provided by client | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
347+ | 401 | Unauthorized: Invalid or missing Bearer token | [ UnauthorizedResponse] ( #unauthorizedresponse ) |
338348| 404 | Not Found | |
339349| 503 | Service Unavailable | |
340350| 422 | Validation Error | [ HTTPValidationError] ( #httpvalidationerror ) |
@@ -769,15 +779,6 @@ Example:
769779 user_question="what are you doing?",
770780 user_feedback="This response is not helpful",
771781 llm_response="I don't know",
772- sentiment=1
773- )
774-
775- # Feedback with categories
776- feedback_request = FeedbackRequest(
777- conversation_id="12345678-abcd-0000-0123-456789abcdef",
778- user_question="How do I deploy a web app?",
779- llm_response="You need to use Docker and Kubernetes for everything.",
780- user_feedback="This response is too general and doesn't provide specific steps.",
781782 sentiment=-1,
782783 categories=[ FeedbackCategory.INCORRECT, FeedbackCategory.INCOMPLETE]
783784 )
0 commit comments