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

Function _parse_handler_result

src/api/routes.py:512–516  ·  view source on GitHub ↗
(result: str)

Source from the content-addressed store, hash-verified

510
511
512def _parse_handler_result(result: str) -> Dict[str, Any]:
513 try:
514 return json.loads(result)
515 except json.JSONDecodeError:
516 return {"result": result}
517
518
519def _get_error_status_code(payload: Dict[str, Any]) -> int:

Callers 4

_iterate_openai_streamFunction · 0.85
_iterate_gemini_streamFunction · 0.85
create_chat_completionFunction · 0.85
generate_contentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected