MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / server_error

Function server_error

api_utils/error_utils.py:33–34  ·  view source on GitHub ↗
(req_id: str, message: str)

Source from the content-addressed store, hash-verified

31
32
33def server_error(req_id: str, message: str) -> HTTPException:
34 return http_error(500, f"[{req_id}] {message}")
35
36
37def upstream_error(req_id: str, message: str) -> HTTPException:

Callers 5

test_server_errorFunction · 0.90
queue_workerFunction · 0.85
locate_response_elementsFunction · 0.85

Calls 1

http_errorFunction · 0.85

Tested by 2

test_server_errorFunction · 0.72