Skip to content

【BUG】router: cache-aware switching can block judge-requested tier upgrades #594

Description

@lcp2021211

Description

When automatic model selection and smart routing are enabled, a conversation can become stuck on the simple tier.

After an earlier request selects a simple model and gets a cache hit, later requests that require a stronger tier may still use the same simple model. The cache-aware switching logic compares costs without distinguishing between upgrades and downgrades. Since upgrading is normally more expensive, the previous cached model may keep winning the comparison.

The screenshot below shows three turns using the same simple model. The final request asks for in-depth research and a long report, but the router still keeps it on simple.

Image

Expected behavior

Cache cost should not prevent a judge-requested tier upgrade. It should only affect downgrade decisions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions