store: Store model aliases not specific IDs

This commit is contained in:
Cal Corum 2026-02-13 15:08:56 -06:00
parent 37cc3cf2d1
commit c7eb0aff1b

View File

@ -0,0 +1,12 @@
---
id: 7253049d-6710-44d2-9cb8-a095fb037f9b
type: decision
title: "Store model aliases not specific IDs"
tags: [ai-assistant, discord, claude, pattern, decision]
importance: 0.6
confidence: 0.8
created: "2026-02-13T21:08:56.426233+00:00"
updated: "2026-02-13T21:08:56.426233+00:00"
---
When storing user model preferences (sonnet/opus/haiku), always store the alias string, never resolve to specific model IDs like claude-sonnet-4-5. Claude CLI resolves aliases to the latest version at runtime. Hardcoding IDs prevents automatic adoption of newer models. The /model command in ai-assistant-discord-bot was fixed to follow this pattern.