Run on GLM 5.2 only; remove other models and the model selector#190
Open
chloeilabs wants to merge 1 commit into
Open
Run on GLM 5.2 only; remove other models and the model selector#190chloeilabs wants to merge 1 commit into
chloeilabs wants to merge 1 commit into
Conversation
The app now ships a single model, GLM 5.2 (zai/glm-5.2). Removes Qwen 3.7 Max and Kimi K2.6 from the registry, deletes the user-facing model selector and the per-user selection-persistence layer, and collapses provider steering to zai. Registry (src/lib/shared/llm/models.ts): - AvailableModels/SUPPORTED_MODELS/ALL_MODELS/ModelInfos reduced to GLM 5.2. - New DEFAULT_MODEL export; the model value still flows through requests and threads so the API can validate it. - Deleted selector helpers: MODEL_SELECTOR_MODELS, isModelSelectorModel, getModelSelectorModels, resolveDefaultModelSelectorModel. UI: - Deleted model-selector.tsx; prompt-form and the message-edit toolbar now submit DEFAULT_MODEL with no picker. The "Configure AI_GATEWAY_API_KEY" hint and submit-enable now key off whether any model is configured (useModels()). - Deleted use-persistent-selected-model.tsx + persistent-selected-model-utils.ts and the model-selector localStorage constants. Server: - agent-prompt-steering: PromptProvider narrowed to "zai"; resolvePromptProvider() is param-less and always returns "zai". - agent-route: default to DEFAULT_MODEL and validate against the configured available models; isAvailableModel uses a string Set to stay valid under the single-literal ModelType. Tests + docs updated; all removed-model references gone (only doesNotMatch guard assertions remain). lint, format, typecheck, test (149), and build pass; verified in the browser preview (no selector, submit works). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The app now ships a single model — GLM 5.2 (
zai/glm-5.2). This removes Qwen 3.7 Max and Kimi K2.6, deletes the user-facing model selector and the per-user selection-persistence layer, and collapses provider steering tozai.Changes
Registry (
src/lib/shared/llm/models.ts)AvailableModels/SUPPORTED_MODELS/ALL_MODELS/ModelInfosreduced to GLM 5.2.DEFAULT_MODELexport. The model value still flows through requests and threads so the API can validate it.MODEL_SELECTOR_MODELS,isModelSelectorModel,getModelSelectorModels,resolveDefaultModelSelectorModel.UI
model-selector.tsx. The prompt form and the message-edit toolbar now submitDEFAULT_MODELwith no picker (footer is a single right-aligned row).AI_GATEWAY_API_KEY" hint and submit-enable now key off whether any model is configured (useModels()).use-persistent-selected-model.tsx+persistent-selected-model-utils.tsand the model-selectorlocalStorageconstants — there is nothing to select or persist.Server
agent-prompt-steering:PromptProvidernarrowed to"zai";resolvePromptProvider()is param-less and always returns"zai".agent-route: defaults toDEFAULT_MODELand validates against the configured available models;isAvailableModeluses a stringSetto stay valid under the single-literalModelType.Docs: README + CLAUDE.md updated to single-model.
Test plan
pnpm lint— cleanpnpm format:check— cleanpnpm typecheck— cleanpnpm test— 149/149 pass (one obsolete model-persistence test removed; all removed-model references gone exceptdoesNotMatchguard assertions)pnpm build— passes (server/client boundary holds)🤖 Generated with Claude Code