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

Function is_provider_service_error

inference/test/utils/utils.py:341–345  ·  view source on GitHub ↗
(response: ResponseWrapper)

Source from the content-addressed store, hash-verified

339
340
341def is_provider_service_error(response: ResponseWrapper) -> bool:
342 return (
343 response.status_code == 400
344 and response.json().get("error").get("message") == "Provider's service is unavailable"
345 )

Calls 2

getMethod · 0.45
jsonMethod · 0.45