Skip to content

Accept set_route compatibility alias for model switching #295

Closed

Description

@1jehuang

Summary

Switching models from a client that emits the route-oriented request name set_route fails against the current server protocol.

Error

Invalid request: unknown variant `set_route`, expected one of ... `set_model` ... at line 1 column 19

Impact

Model switching can fail, including when switching to Claude API models, if the UI/client sends the legacy or route-oriented set_route request shape.

Expected behavior

The server should treat set_route as a compatibility alias for set_model, since both requests carry the active model selection.

Proposed fix

Accept set_route as a serde alias for Request::SetModel while continuing to serialize outbound requests as set_model.

Activity

  1. added a commit that references this issue on Jun 1, 2026
  2. added a commit that references this issue on Jun 12, 2026
    8ac0fa4
  3. added 6 commits that reference this issue on Aug 30, 2026
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