Skip to main content

RouteWarning

codestring

A stable code to branch on:

  • unreadable_request: no task or conversation could be read from body, so the default is proposed
  • router_unavailable: the router model didn't answer, so the default is proposed
  • label_mismatch: the router model can't score some of the router's models, so the default is proposed
  • context_exceeds_models: the request is longer than every model's context window; the default is proposed, but its provider will likely refuse it
  • no_session: the request continues a conversation but no session id was found, so routing can't tell which model's cache is warm

Possible values: [unreadable_request, router_unavailable, label_mismatch, context_exceeds_models, no_session]

Example: no_session
messagestring
Example: This request continues a conversation, but no session id was found in `session_id` or `headers`, so routing can't see which model's cache is warm.
RouteWarning
{
"code": "no_session",
"message": "This request continues a conversation, but no session id was found in `session_id` or `headers`, so routing can't see which model's cache is warm."
}