MCPcopy
hub / github.com/lm-sys/FastChat / validation_exception_handler

Function validation_exception_handler

fastchat/serve/openai_api_server.py:141–142  ·  view source on GitHub ↗
(request, exc)

Source from the content-addressed store, hash-verified

139
140@app.exception_handler(RequestValidationError)
141async def validation_exception_handler(request, exc):
142 return create_error_response(ErrorCode.VALIDATION_TYPE_ERROR, str(exc))
143
144
145async def check_model(request) -> Optional[JSONResponse]:

Callers

nothing calls this directly

Calls 1

create_error_responseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…