Skip to content

feat: add native support for GLM-5.3, GLM-5.3-Flash and GLM-5V-Turbo models - #5910

Open
DewellNaa wants to merge 1 commit into
Aider-AI:mainfrom
DewellNaa:feat/support-glm-5.3-and-flash
Open

DewellNaa wants to merge 1 commit into
Aider-AI:mainfrom
DewellNaa:feat/support-glm-5.3-and-flash

Conversation

@DewellNaa

Copy link
Copy Markdown

Summary

Add first-class native support for Zhipu's latest flagship models: GLM-5.3, GLM-5.3-Flash, and GLM-5V-Turbo.

  • Model Aliases: Added glm, glm-flash, glm-5.3, and glm-5.3-flash shortcuts mapping to zai/glm-5.3 and zai/glm-5.3-flash.
  • Environment Validation: Added API key resolution fallback for zai/ models allowing ZAI_API_KEY, BIGMODEL_API_KEY, or ZHIPUAI_API_KEY to be used interchangeably.
  • Model Settings: Configured diff edit format, repository map support, system reminders, prompt caching, and 128k max output tokens in model-settings.yml.
  • Tests: Added comprehensive unit tests in tests/basic/test_models.py covering model settings resolution, alias resolution, and environment variable validation.

Test Results

pytest tests/basic/test_models.py -k "glm or zai" -v
# 4 passed, 23 deselected, 3 subtests passed in 5.03s

- Add glm/glm-flash/glm-5.3/glm-5.3-flash aliases in MODEL_ALIASES
- Accept ZAI_API_KEY, BIGMODEL_API_KEY or ZHIPUAI_API_KEY when
  validating the environment for zai/ models
- Add model-settings.yml entries for zai/glm-5.3, zai/glm-5.3-flash
  and zai/glm-5v-turbo (diff edit format, repo map, sys reminders,
  128k max_tokens, prompt caching)
- Add tests for the new settings, aliases and env validation
@CLAassistant

CLAassistant commented Oct 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
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