Обновление AI-модели в чат-приложении
★ 7.0 · vibe-coding
upgrade-model is a Claude Code skill that updates an AI chat model across both backend and frontend, managing two model slots: fast (Enter) and good (Cmd+Enter). Using Bash, Read, Write, Edit, Grep, and Glob tools, it adds the enum variant, string constants, and match arms to the Rust crate at `crates/agent/src/model/predefined_model.rs`, updates `CHAT_MODELS` and `FALLBACK_MODEL` in the Document Cognition Service, and patches the WebSocket chat message handler — then runs `cargo check` to confirm compilation. On the frontend side, it executes `bun run gen-api` inside `apps/web/` to regenerate the OpenAPI spec and TypeScript types, followed by `bun check` to surface stale model references in constants, hooks, and tests. Designed for fullstack teams building Claude-powered chat on a Rust + TypeScript stack who need a reliable, repeatable model upgrade path.
- #model-upgrade
- #ai-integration
- #rust-frontend-sync
- #claude
- #chat-model
- #backend-frontend