MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / check_http_error

Function check_http_error

backend/app/routes/utils.py:29–31  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

27
28
29def check_http_error(response):
30 if response.status_code != 200:
31 raise HTTPException(status_code=response.status_code, detail=response.json().get("error", {}))
32
33
34async def app_admin_auth_info_required(request: Request) -> Dict:

Callers 10

verify_model_credentialsFunction · 0.90
api_rerankFunction · 0.90
api_text_embeddingFunction · 0.90
sync_model_schema_dataFunction · 0.90
chat_completionFunction · 0.90
embed_queryFunction · 0.90
embed_documentsFunction · 0.90
sync_plugin_dataFunction · 0.90

Calls 2

getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected