RouteWarning
codestring
A stable code to branch on:
unreadable_request: no task or conversation could be read frombody, so the default is proposedrouter_unavailable: the router model didn't answer, so the default is proposedlabel_mismatch: the router model can't score some of the router's models, so the default is proposedcontext_exceeds_models: the request is longer than every model's context window; the default is proposed, but its provider will likely refuse itno_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_sessionmessagestring
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."
}