Skip to content

internal/profiles: add z.ai backend for Claude Code with fixed models#14

Merged
mostlygeek merged 1 commit intomainfrom
zai-backend
Apr 29, 2026
Merged

internal/profiles: add z.ai backend for Claude Code with fixed models#14
mostlygeek merged 1 commit intomainfrom
zai-backend

Conversation

@mostlygeek
Copy link
Copy Markdown
Collaborator

Add support for z.ai for Claude Code. The Aperture provider setting should look like this:

  "zai_ant": {
	  "baseurl": "https://api.z.ai/api/anthropic",
	  "apikey":  "<key-from-z.ai>",
	  "models": [
		  "glm-5.1",
		  "glm-5-turbo",
		  "glm-4.7",
	  ],
	  "compatibility": {
		  "anthropic_messages": true,
		  "openai_chat":        false,
	  },
  },

Use ANTHROPIC_API_KEY (not ANTHROPIC_AUTH_TOKEN) for the ZAI backend.
Skip provider-derived model overrides so the fixed glm-5.1 and
glm-5-turbo model names are preserved at runtime.
@mostlygeek mostlygeek requested a review from lkosewsk April 10, 2026 00:16
Copy link
Copy Markdown
Contributor

@lkosewsk lkosewsk left a comment

Choose a reason for hiding this comment

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

lgtm!

@mostlygeek mostlygeek merged commit a78cb7c into main Apr 29, 2026
1 check passed
@mostlygeek mostlygeek deleted the zai-backend branch April 29, 2026 21:35
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