Skip to content

Add GLM provider support and contributor guidance - #104

Merged
webup merged 1 commit into
developfrom
feat/native-glm-provider
Apr 27, 2026
Merged

Add GLM provider support and contributor guidance#104
webup merged 1 commit into
developfrom
feat/native-glm-provider

Conversation

@webup

@webup webup commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

What

Add GLM/Z.AI as a native model provider in ClawMaster. The setup wizard and Models page now expose GLM directly, persist the OpenClaw zai provider config, and use live model catalog discovery in both desktop and web runtimes.

Why

Users should not need to configure GLM through the generic custom OpenAI-compatible provider path. A native provider entry gives them the right API-key link, base URL, fallback model list, validation flow, and default model references.

How

  • Add zai to the shared provider catalog used by the setup wizard and Models page
  • Allow Z.AI live model catalog requests in both frontend and backend catalog helpers
  • Filter non-chat entries from GLM model catalog responses
  • Add focused tests for provider setup, Models UI behavior, catalog requests, and persisted config
  • Document the provider integration workflow in CONTRIBUTING.md

Testing

  • npx vitest run src/shared/providerCatalog.test.ts src/modules/setup/tests/realAdapter.test.ts src/modules/setup/tests/SetupWizard.test.tsx src/modules/models/tests/ModelsPage.test.tsx from packages/web
  • npm test --workspace=@openclaw-manager/backend
  • npm run build --workspace=@openclaw-manager/backend
  • npm run build --workspace=@openclaw-manager/web

Screenshots

Not included. This PR adds a provider option in existing setup/model surfaces; no layout change beyond the new GLM provider entry.

@webup
webup changed the base branch from main to develop April 27, 2026 11:54
@webup
webup marked this pull request as ready for review April 27, 2026 12:23
@webup
webup merged commit 46e3ddd into develop Apr 27, 2026
31 of 32 checks passed
@webup
webup deleted the feat/native-glm-provider branch April 29, 2026 08:20
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.

1 participant