File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- """Handler for REST API call to provide info ."""
1+ """Handler for REST API endpoint for user feedback ."""
22
33import logging
44from typing import Annotated , Any
Original file line number Diff line number Diff line change 1313router = APIRouter (tags = ["info" ])
1414
1515
16- get_into_responses : dict [int | str , dict [str , Any ]] = {
16+ get_info_responses : dict [int | str , dict [str , Any ]] = {
1717 200 : {
1818 "name" : "Service name" ,
1919 "version" : "Service version" ,
2020 },
2121}
2222
2323
24- @router .get ("/info" , responses = get_into_responses )
24+ @router .get ("/info" , responses = get_info_responses )
2525def info_endpoint_handler (_request : Request ) -> InfoResponse :
2626 """Handle request to the /info endpoint."""
2727 return InfoResponse (name = configuration .configuration .name , version = __version__ )
Original file line number Diff line number Diff line change 3737query_response : dict [int | str , dict [str , Any ]] = {
3838 200 : {
3939 "conversation_id" : "123e4567-e89b-12d3-a456-426614174000" ,
40- "response" : "LLM ansert " ,
40+ "response" : "LLM answer " ,
4141 },
4242 400 : {
4343 "description" : "Missing or invalid credentials provided by client" ,
You can’t perform that action at this time.
0 commit comments