Skip to content

Run on GLM 5.2 only; remove other models and the model selector#190

Open
chloeilabs wants to merge 1 commit into
mainfrom
feat/glm-only
Open

Run on GLM 5.2 only; remove other models and the model selector#190
chloeilabs wants to merge 1 commit into
mainfrom
feat/glm-only

Conversation

@chloeilabs

Copy link
Copy Markdown
Owner

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 to zai.

Changes

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-only helpers: MODEL_SELECTOR_MODELS, isModelSelectorModel, getModelSelectorModels, resolveDefaultModelSelectorModel.

UI

  • Deleted model-selector.tsx. The prompt form and the message-edit toolbar now submit DEFAULT_MODEL with no picker (footer is a single right-aligned row).
  • 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 — there is nothing to select or persist.

Server

  • agent-prompt-steering: PromptProvider narrowed to "zai"; resolvePromptProvider() is param-less and always returns "zai".
  • agent-route: defaults to DEFAULT_MODEL and validates against the configured available models; isAvailableModel uses a string Set to stay valid under the single-literal ModelType.

Docs: README + CLAUDE.md updated to single-model.

Test plan

  • pnpm lint — clean
  • pnpm format:check — clean
  • pnpm typecheck — clean
  • pnpm test — 149/149 pass (one obsolete model-persistence test removed; all removed-model references gone except doesNotMatch guard assertions)
  • pnpm build — passes (server/client boundary holds)
  • Browser preview verified: no selector in the prompt form, submit enables with text, no console/build errors
  • Adversarial multi-agent review of the diff: 0 confirmed defects

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chloei Ready Ready Preview, Comment Jun 17, 2026 4:34am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant