Skip to content

fix: add current Z.AI GLM models#426

Open
devatnull wants to merge 1 commit into
automazeio:mainfrom
devatnull:fix/zai-glm-5-models-codex-guide
Open

fix: add current Z.AI GLM models#426
devatnull wants to merge 1 commit into
automazeio:mainfrom
devatnull:fix/zai-glm-5-models-codex-guide

Conversation

@devatnull

Copy link
Copy Markdown
Contributor

Summary

  • add glm-5.2 and glm-5 to the managed Z.AI provider defaults
  • update Z.AI Settings help text and Factory docs
  • add a Codex Desktop setup guide for using VibeProxy as the single provider for OpenAI/Codex and GLM model switching

Verification

  • swift test
  • swiftc src/Sources/ConfigComposer.swift src/Sources/ProviderCatalog.swift src/Sources/CustomProviders.swift src/Verification/ConfigComposerSpec.swift -o /tmp/vibeproxy-config-composer-spec && /tmp/vibeproxy-config-composer-spec
  • locally installed a patched VibeProxy build and verified curl http://localhost:8317/v1/models includes glm-5.2, glm-5, and existing OpenAI/Codex models
  • verified POST /v1/responses with glm-5.2 returns a completed response with final text
  • verified codex exec --model glm-5.2 routes through provider vibeproxy and returns the expected output

Note

The local OpenAI/Codex smoke route reached VibeProxy correctly but the connected Codex credential was in usage-limit cooldown, so the PR validation focuses on model exposure and GLM routing.

Copilot AI review requested due to automatic review settings June 17, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates Z.AI/GLM model support to include GLM-5.2 and GLM-5 across runtime config, UI copy, tests, and docs, plus adds a Codex Desktop setup guide.

Changes:

  • Add GLM-5.2 and GLM-5 to default Z.AI model list and validate via spec.
  • Update Settings UI help text and documentation to reference newer GLM models.
  • Add new CODEX_DESKTOP_SETUP.md guide and link it from the README.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Verification/ConfigComposerSpec.swift Adds an assertion that managed Z.AI provider includes the expected GLM aliases.
src/Sources/SettingsView.swift Updates Z.AI provider help text to mention GLM-5.2/GLM-5.
src/Sources/ConfigComposer.swift Extends default Z.AI models with GLM-5.2 and GLM-5.
README.md Updates “latest models supported” text and adds link to Codex Desktop setup.
FACTORY_SETUP.md Adds GLM-5.2 to example config and documents it in the model list.
CODEX_DESKTOP_SETUP.md Introduces a new setup guide for using VibeProxy with Codex Desktop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +248 to +253
expectEqual(
modelAliases(in: zai ?? [:]),
["glm-5.2", "glm-5", "glm-4.7", "glm-4-plus", "glm-4-air", "glm-4-flash"],
"managed zai provider should include current GLM aliases",
recorder: recorder
)
Comment thread CODEX_DESKTOP_SETUP.md
```toml
model = "gpt-5.5"
model_provider = "vibeproxy"
model_catalog_json = "/Users/YOU/.codex/model_catalog_vibeproxy.json"
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.

2 participants