KamoCRM

Allow SWITCH_MODEL to reset a session to Auto

FixAIService
Shipped
16 ஜூலை, 2026 அன்று 5:45 PM UTC
Author
Kamo
Commit
b1d9bd3

handleSwitchModel always UUID-parsed modelId and errored on null, so a session could never be reverted to automatic model selection mid-chat. Parse modelId as a string: null/empty/"auto" clears the session model (setModel(null) + save, responding modelName "Auto"); a UUID selects a concrete model; an invalid UUID returns a clean error instead of throwing.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing