diff --git a/docs/openapi.json b/docs/openapi.json index cc9c7f46..10435a63 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -132,7 +132,7 @@ } }, "conversation_id": "123e4567-e89b-12d3-a456-426614174000", - "response": "LLM ansert" + "response": "LLM answer" }, "400": { "description": "Missing or invalid credentials provided by client", @@ -276,7 +276,7 @@ "503": { "description": "Service Unavailable", "detail": { - "response": "Configuration is no loaded" + "response": "Configuration is not loaded" } } } @@ -808,14 +808,7 @@ ] }, "inference": { - "anyOf": [ - { - "$ref": "#/components/schemas/InferenceConfiguration" - }, - { - "type": "null" - } - ], + "$ref": "#/components/schemas/InferenceConfiguration", "default": {} } }, diff --git a/src/app/endpoints/feedback.py b/src/app/endpoints/feedback.py index 39d9659b..82263b4a 100644 --- a/src/app/endpoints/feedback.py +++ b/src/app/endpoints/feedback.py @@ -1,4 +1,4 @@ -"""Handler for REST API call to provide info.""" +"""Handler for REST API endpoint for user feedback.""" import logging from typing import Annotated, Any diff --git a/src/app/endpoints/info.py b/src/app/endpoints/info.py index e6bcf640..7982a4aa 100644 --- a/src/app/endpoints/info.py +++ b/src/app/endpoints/info.py @@ -13,7 +13,7 @@ router = APIRouter(tags=["info"]) -get_into_responses: dict[int | str, dict[str, Any]] = { +get_info_responses: dict[int | str, dict[str, Any]] = { 200: { "name": "Service name", "version": "Service version", @@ -21,7 +21,7 @@ } -@router.get("/info", responses=get_into_responses) +@router.get("/info", responses=get_info_responses) def info_endpoint_handler(_request: Request) -> InfoResponse: """Handle request to the /info endpoint.""" return InfoResponse(name=configuration.configuration.name, version=__version__) diff --git a/src/app/endpoints/query.py b/src/app/endpoints/query.py index 44127a7a..86b1ef44 100644 --- a/src/app/endpoints/query.py +++ b/src/app/endpoints/query.py @@ -37,7 +37,7 @@ query_response: dict[int | str, dict[str, Any]] = { 200: { "conversation_id": "123e4567-e89b-12d3-a456-426614174000", - "response": "LLM ansert", + "response": "LLM answer", }, 400: { "description": "Missing or invalid credentials provided by client",