MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _routing_infeasible_response

Function _routing_infeasible_response

uncommon_route/proxy.py:2001–2011  ·  view source on GitHub ↗
(
    error: RoutingInfeasibleError,
    *,
    api_format: str = "openai",
    headers: dict[str, str] | None = None,
)

Source from the content-addressed store, hash-verified

1999
2000
2001def _routing_infeasible_response(
2002 error: RoutingInfeasibleError,
2003 *,
2004 api_format: str = "openai",
2005 headers: dict[str, str] | None = None,
2006) -> JSONResponse:
2007 return JSONResponse(
2008 _routing_infeasible_payload(error, api_format=api_format),
2009 status_code=400,
2010 headers=headers,
2011 )
2012
2013
2014def _safe_header_value(value: object) -> str:

Callers 1

_handle_chat_coreFunction · 0.85

Calls 1

Tested by

no test coverage detected