No description
  • TypeScript 97.7%
  • JavaScript 2.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
therry47 1fae7646ef fix: reject image attachments on text-only models with an actionable error
- Add containsImageInput() to detect image DataParts before the request
  is sent, so text-only models fail fast with a clear message instead of
  an opaque API error at runtime
- The error lists the vision-capable models available in the picker
  (e.g. GLM-5.3 Flash) so the user knows where to switch
- Verified with a standalone test harness (vscode stub): 5/5 cases —
  text-only, image in current/earlier message, non-image data, tool result
2026-09-02 00:28:57 +02:00
images Initial commit: add project files 2026-01-15 05:47:25 +03:00
src fix: reject image attachments on text-only models with an actionable error 2026-09-02 00:28:57 +02:00
.editorconfig Refactor code structure for improved readability and maintainability 2026-02-11 09:40:00 +03:00
.gitignore Initial commit: add project files 2026-01-15 05:47:25 +03:00
.prettierrc.cjs Add configuration files for Prettier and ESLint, implement bundling with esbuild, and update API key handling in the GLM Chat Provider 2026-04-26 02:49:57 +03:00
.vscodeignore fix performance buffer 2026-04-25 23:14:01 +03:00
bundle.mjs Add configuration files for Prettier and ESLint, implement bundling with esbuild, and update API key handling in the GLM Chat Provider 2026-04-26 02:49:57 +03:00
eslint.config.cjs Add configuration files for Prettier and ESLint, implement bundling with esbuild, and update API key handling in the GLM Chat Provider 2026-04-26 02:49:57 +03:00
eslint.ignores.cjs Add configuration files for Prettier and ESLint, implement bundling with esbuild, and update API key handling in the GLM Chat Provider 2026-04-26 02:49:57 +03:00
LICENSE Initial commit: add project files 2026-01-15 05:47:25 +03:00
package-lock.json feat: add GLM-5.3 and GLM-5.3-Flash support 2026-09-02 00:08:14 +02:00
package.json feat: add GLM-5.3 and GLM-5.3-Flash support 2026-09-02 00:08:14 +02:00
README.md feat: add GLM-5.3 and GLM-5.3-Flash support 2026-09-02 00:08:14 +02:00
tsconfig.json Refactor code structure for improved readability and maintainability 2026-02-11 09:40:00 +03:00
tsconfig.tsbuildinfo Bump version to 0.7.1 and add image support for chat messages 2026-06-20 23:47:43 +03:00

GLM Chat Provider

Z.AI GLM models as a VS Code Language Model Chat Provider for the Coding Plan.

Text Models

Model Context Output Tool Calling
GLM-5.3 1M 128K Yes
GLM-5.2 1M 131K Yes
GLM-5.1 200K 131K Yes
GLM-5 205K 131K Yes
GLM-5-Turbo 200K 131K Yes
GLM-4.7 205K 131K Yes
GLM-4.7-Flash 200K 131K Yes
GLM-4.7-FlashX 200K 131K Yes
GLM-4.6 205K 131K Yes
GLM-4.5 131K 98K Yes
GLM-4.5-Flash 131K 98K Yes
GLM-4.5-Air 131K 98K Yes

Vision Models

Model Context Output Image Input Tool Calling
GLM-5.3-Flash 1M 128K Yes (image/video) Yes
GLM-5V-Turbo 200K 131K Yes Yes
GLM-4.6V 128K 33K Yes Yes
GLM-4.5V 64K 16K Yes Yes

Commands

  • GLM: Set API Key -- Store your Z.AI API key in VS Code secrets
  • GLM: Clear API Key -- Remove the stored API key
  • GLM: Manage Provider -- Open provider management options
  • GLM: Set Thinking Effort -- Toggle thinking mode (Auto, Enabled, Low, High, Max, Disabled)

Thinking Mode

For models that support it (GLM-4.5 and above), you can control whether the model uses its reasoning/thinking capability.

Run GLM: Set Thinking Effort from the Command Palette to choose between:

  • Auto -- Let the model decide when to think (default)
  • Enabled -- Always use thinking mode
  • Disabled -- Never use thinking mode

The selected value is persisted in your VS Code settings under glm-chat-provider.defaultThinkingMode.

How to Use

  1. Open the Command Palette and run GLM: Set API Key to configure your API credentials
  2. Use the provider from VS Code's Language Model Chat UI and select Z.AI GLM

License

MIT (c) Denizhan Dakilir