MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _build_openai_json_response

Function _build_openai_json_response

src/api/routes.py:531–532  ·  view source on GitHub ↗
(payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

529
530
531def _build_openai_json_response(payload: Dict[str, Any]) -> JSONResponse:
532 return JSONResponse(content=payload, status_code=_get_error_status_code(payload))
533
534
535def _build_gemini_error_payload(status_code: int, message: str) -> Dict[str, Any]:

Callers 1

create_chat_completionFunction · 0.85

Calls 1

_get_error_status_codeFunction · 0.85

Tested by

no test coverage detected