Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -276,7 +276,7 @@
"503": {
"description": "Service Unavailable",
"detail": {
"response": "Configuration is no loaded"
"response": "Configuration is not loaded"
}
}
}
Expand Down Expand Up @@ -808,14 +808,7 @@
]
},
"inference": {
"anyOf": [
{
"$ref": "#/components/schemas/InferenceConfiguration"
},
{
"type": "null"
}
],
"$ref": "#/components/schemas/InferenceConfiguration",
"default": {}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/endpoints/feedback.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/app/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
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",
},
}


@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__)
2 changes: 1 addition & 1 deletion src/app/endpoints/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down