Skip to content

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

Open
mostlygeek wants to merge 1 commit intomainfrom
zai-backend
Open

internal/profiles: add z.ai backend for Claude Code with fixed models#14
mostlygeek wants to merge 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

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

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