MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / bad_request

Function bad_request

examples/server/server.py:15767–15768  ·  view source on GitHub ↗
(exc: CompletionRequestValidationError)

Source from the content-addressed store, hash-verified

15765 raise exc
15766
15767 def bad_request(exc: CompletionRequestValidationError) -> HTTPException:
15768 return HTTPException(status_code=400, detail=str(exc))
15769
15770 async def collect_completion_result(
15771 formatter: OpenAIFormatter,

Callers 4

create_completionFunction · 0.85
create_embeddingFunction · 0.85
create_chat_completionFunction · 0.85
create_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…