MCPcopy Create free account
hub / github.com/Nativu5/Gemini-FastAPI / _is_missing_chat_error

Function _is_missing_chat_error

app/server/chat.py:944–948  ·  view source on GitHub ↗
(exc: Exception)

Source from the content-addressed store, hash-verified

942
943
944def _is_missing_chat_error(exc: Exception) -> bool:
945 normalized = " ".join(part for part in (str(exc), repr(exc)) if part).lower()
946 if not normalized:
947 return False
948 return any(pattern.search(normalized) for pattern in _MISSING_CHAT_ERROR_PATTERNS)
949
950
951async def _send_with_internal_fallback(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected