Skip to content

docs: add Z-AI provider documentation - #363

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-362
Jul 8, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-362

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #362

Summary

Add Z-AI (ZAI) provider documentation to the docs site. Z-AI is an OpenAI-compatible provider at api.z.ai offering direct access to open-weight models like GLM 5.2, with bearer auth and vision support.

Changes

  • Add Z-AI entry to scripts/provider-overrides.json with display name, vision support (GLM 5.2), and ADK example model
  • Regenerate provider-derived docs via task generate: supported-providers.md (providers table, vision list, uppercase list), configuration.md (env var consts and config sections), rust-adk.md and typescript-adk.md (ADK provider table)
  • Add Z-AI provider-specific example section to supported-providers.md with curl example and model listing
  • Add ZAI_API_URL and ZAI_API_KEY to the complete configuration example in configuration.md

Downstream impact

  • inference-gateway/inference-gateway - needs ZAI provider constant, registry entry, and env config (tracked in [DOCS] Add llama.cpp provider documentation #416)
  • inference-gateway/cli - may need ZAI provider support
  • inference-gateway/adk - may need ZAI provider support

Add Z-AI (ZAI) as a new provider in the supported providers list, configuration reference, and provider-specific examples.

- Add Z-AI entry to provider-overrides.json with display name, vision support (GLM 5.2), and ADK example model

- Regenerate provider docs via task generate: supported-providers.md, configuration.md, rust-adk.md, typescript-adk.md

- Add Z-AI provider-specific example section to supported-providers.md

- Add ZAI_API_URL and ZAI_API_KEY to the complete config example in configuration.md
@edenreich

Copy link
Copy Markdown
Contributor

@claude CI is failing, can you fix this?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 2m 55s —— View job


CI failure fixed

  • Investigate the CI failure
  • Identify the root cause
  • Fix the issue
  • Verify the fix locally
  • Commit the fix

Root cause: The Docs drift job's offline regression test (bun test) failed:

error: scripts/provider-overrides.json lists provider(s) absent from
the schema enum: zai. Remove them or fix the id.
      at buildProviders (scripts/generate-provider-docs.mjs:263:15)

This PR added zai to scripts/provider-overrides.json and regenerated the docs from the upstream schema, but the offline test fixture scripts/__fixtures__/openapi.sample.yaml was never updated to include zai. The generator's buildProviders throws when an override references a provider absent from the (fixture) schema enum, so every regression assertion errored before it could run.

Fix (commit 2ed4034):

  • Added zai to the fixture's Provider enum and a matching x-provider-configs block, using the same hard facts the committed docs were generated from - url: https://api.z.ai/v1, auth_type: bearer, supports_vision: true.
  • Appended 'zai' to the expected-provider list in scripts/generate-provider-docs.test.mjs.

Local verification:

$ bun test
 10 pass
 0 fail
Ran 10 tests across 1 file.

$ bunx prettier --check scripts/__fixtures__/openapi.sample.yaml scripts/generate-provider-docs.test.mjs
All matched files use Prettier code style!

All regression tests now pass and both changed files are prettier-clean, so the Docs drift, Lint, and Build jobs should all go green on re-run.

Note: I only mirrored the addition into the offline fixture - the committed docs already match the real upstream schema, so the zai facts above should stay in sync when inference-gateway/schemas adds the provider. If those values differ upstream, update the schema and re-run task generate.

@edenreich
edenreich marked this pull request as ready for review July 8, 2026 09:04
@edenreich
edenreich requested a review from a team as a code owner July 8, 2026 09:04
@edenreich
edenreich merged commit 3c3db53 into main Jul 8, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-362 branch July 8, 2026 09:04
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 9, 2026
## [0.9.0](0.8.0...0.9.0) (2026-07-09)

### ✨ Features

* generate ADK provider tables from the schema ([#347](#347)) ([aece944](aece944)), closes [#346](#346)

### 👷 CI

* **claude:** centralize claude.yml via reusable workflow ([#372](#372)) ([9a41158](9a41158))
* **infer:** centralize infer.yml via reusable workflow ([#367](#367)) ([47d5fb2](47d5fb2))
* **infer:** centralize infer.yml via reusable workflow ([#368](#368)) ([305d621](305d621))

### 📚 Documentation

* add Wait tool documentation to CLI reference ([#371](#371)) ([8018c50](8018c50)), references [inference-gateway/cli#792](inference-gateway/cli#792)
* add Z-AI provider documentation ([#363](#363)) ([3c3db53](3c3db53))
* document agent.skills.max_chars, line-boundary truncation, and date-only system prompt ([#359](#359)) ([73d49b5](73d49b5))
* document infer chat --session-id flag ([#351](#351)) ([d6b3cf6](d6b3cf6))
* document infer-action system prompt override semantics ([#357](#357)) ([58c8bc4](58c8bc4))
* **github-action:** add zai-api-key input to the inputs table ([#366](#366)) ([a129831](a129831))
* remove Claude Code subscription mode documentation ([#374](#374)) ([442a9fa](442a9fa)), references [inference-gateway/cli#812](inference-gateway/cli#812)
* **rust-adk:** add NVIDIA provider to Rust ADK docs ([#345](#345)) ([a329e43](a329e43)), references [#347](#347)
* update memory documentation for per-project fact organization and entry caps ([#350](#350)) ([8dca0cd](8dca0cd)), closes [#348](#348)

### 🔧 Miscellaneous

* **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#353](#353)) ([5f714de](5f714de))
* **deps:** bump claude-code-action v1.0.165 -> v1.0.169 ([#370](#370)) ([293e9b8](293e9b8))
* **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.24.0 -> v0.26.0 ([#354](#354)) ([824a288](824a288))
* **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.27.0 -> v0.27.1 ([#360](#360)) ([03ec147](03ec147))
* **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#361](#361)) ([e7bec3e](e7bec3e))
* **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#365](#365)) ([02be4c8](02be4c8))
* **deps:** bump infer CLI v0.138.0 -> v0.140.1 ([#375](#375)) ([2fd4097](2fd4097))
* **deps:** bump infer-action v0.26.0 -> v0.26.1 ([#356](#356)) ([17f74f8](17f74f8))
* **deps:** bump infer-action v0.26.1 -> v0.27.0 ([#358](#358)) ([89c944b](89c944b))
* enable debug mode in infer.yml workflow ([9e373c6](9e373c6))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Add Z-AI provider documentation

1 participant