Skip to content

fix(configuration): update Z-AI API URL to match canonical schema - #443

Merged
edenreich merged 2 commits into
mainfrom
feature/fix-zai-api-url-drift
Jul 20, 2026
Merged

edenreich merged 2 commits into
mainfrom
feature/fix-zai-api-url-drift

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

The Z-AI API URL in the canonical inference-gateway/schemas OpenAPI spec was updated from https://api.z.ai/v1 to https://api.z.ai/api/paas/v4. Running task generate regenerated the provider-derived sections of configuration.md and supported-providers.md to match, fixing the docs drift detected in CI run #29763063415.

Changes

  • configuration.md: Updated Z-AI API URL default value from https://api.z.ai/v1 to https://api.z.ai/api/paas/v4 in the zaiSettings example.
  • supported-providers.md: Updated Z-AI base URL from https://api.z.ai/v1 to https://api.z.ai/api/paas/v4 in the providers table.

The Z-AI base URL changed from https://api.z.ai/v1 to https://api.z.ai/api/paas/v4 in the upstream inference-gateway/schemas openapi.yaml. Ran task generate to sync configuration.md and supported-providers.md.
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review July 20, 2026 17:29
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner July 20, 2026 17:29
@edenreich

Copy link
Copy Markdown
Contributor

@infer Can you fix this? use /ponytail:ponytail

@edenreich

Copy link
Copy Markdown
Contributor

@infer CI is failing! can you fix this?

@inference-gateway-maintainer

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

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Investigate why Docs drift check is failing
  • Update fixture openapi.sample.yaml with new Z-AI URL
  • Run task generate to regenerate from fixture
  • Fix hand-authored env var example in configuration.md
  • Run all checks and commit/push fix

Pull Request

#443

✅ Infer Result: Success

The Docs drift CI check was failing because the fixture file scripts/__fixtures__/openapi.sample.yaml still had the old Z-AI URL (https://api.z.ai/v1), so the provider-docs regression test generated expected output with the old URL while the committed files had the new URL (https://api.z.ai/api/paas/v4). I updated the fixture to match the canonical schema, ran task generate to confirm everything stays in sync, and also fixed a hand-authored .env example in configuration.md that was missed in the initial pass. All checks pass (lint, format, build, and all 11 tests).

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 2m 15s

Tokens: 1,010,930 in · 8,117 out · 1,019,047 total (28 requests)

Tool calls: 34 total · 94% success rate

Traces
Session: 1784569347-6c8096a7

session (standard, success)                2m14s
├── chat ollama_cloud/deepseek-v4-flash     2.2s
├── execute_tool Bash                        4ms
├── execute_tool Bash                        5ms
├── chat ollama_cloud/deepseek-v4-flash     1.8s
├── execute_tool Bash                        3ms
├── chat ollama_cloud/deepseek-v4-flash     1.7s
├── execute_tool Bash                       1.1s [error: tool_error]
├── chat ollama_cloud/deepseek-v4-flash     3.2s
├── execute_tool TodoWrite                 108µs
├── chat ollama_cloud/deepseek-v4-flash     1.8s
├── execute_tool Bash                       1.8s
├── chat ollama_cloud/deepseek-v4-flash    10.4s
├── execute_tool Bash                        4ms
├── execute_tool Bash                        4ms
├── chat ollama_cloud/deepseek-v4-flash     2.9s
├── execute_tool Grep                      868ms
├── chat ollama_cloud/deepseek-v4-flash     5.1s
├── execute_tool Read                      165µs
├── execute_tool Read                      147µs
├── chat ollama_cloud/deepseek-v4-flash     6.1s
├── execute_tool Bash                       38ms [error: tool_error]
├── chat ollama_cloud/deepseek-v4-flash     4.2s
├── execute_tool Read                      280µs
├── chat ollama_cloud/deepseek-v4-flash     5.1s
├── execute_tool Read                      317µs
├── chat ollama_cloud/deepseek-v4-flash     7.2s
├── execute_tool TodoWrite                  51µs
├── chat ollama_cloud/deepseek-v4-flash     2.6s
├── execute_tool Edit                      325µs
├── chat ollama_cloud/deepseek-v4-flash     2.8s
├── execute_tool TodoWrite                  67µs
├── chat ollama_cloud/deepseek-v4-flash     2.5s
├── execute_tool Bash                       1.8s
├── chat ollama_cloud/deepseek-v4-flash     3.1s
├── execute_tool Bash                       38ms
├── chat ollama_cloud/deepseek-v4-flash     3.9s
├── execute_tool TodoWrite                  75µs
├── chat ollama_cloud/deepseek-v4-flash     2.5s
├── execute_tool Read                      175µs
├── chat ollama_cloud/deepseek-v4-flash     2.8s
├── execute_tool Edit                      295µs
├── chat ollama_cloud/deepseek-v4-flash     3.0s
├── execute_tool TodoWrite                  61µs
├── chat ollama_cloud/deepseek-v4-flash     2.6s
├── execute_tool Bash                      23.0s
├── execute_tool Bash                       2.8s
├── execute_tool Bash                       5.3s
├── chat ollama_cloud/deepseek-v4-flash     2.8s
├── execute_tool Bash                        6ms
├── chat ollama_cloud/deepseek-v4-flash     3.0s
├── execute_tool Bash                        6ms
├── chat ollama_cloud/deepseek-v4-flash     2.8s
├── execute_tool Bash                        9ms
├── chat ollama_cloud/deepseek-v4-flash     2.5s
├── execute_tool Bash                       1.4s
├── chat ollama_cloud/deepseek-v4-flash     2.9s
├── execute_tool Bash                        4ms
├── execute_tool Bash                        4ms
├── chat ollama_cloud/deepseek-v4-flash     3.6s
├── execute_tool TodoWrite                  59µs
├── chat ollama_cloud/deepseek-v4-flash     4.1s
╰── chat ollama_cloud/deepseek-v4-flash     4.4s
Stats
Tool Calls

╭───────────┬───────┬───────┬────────╮
│ Tool      │ Calls │ Fail% │ Avg    │
├───────────┼───────┼───────┼────────┤
│ Bash      │ 19    │ 11%   │ 1967ms │
│ TodoWrite │ 6     │ 0%    │ 0ms    │
│ Read      │ 5     │ 0%    │ 0ms    │
│ Edit      │ 2     │ 0%    │ 0ms    │
│ Grep      │ 1     │ 0%    │ 868ms  │
╰───────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────────┬─────────┬────────────┬─────────┬──────╮
│ Model                          │ Prompt  │ Completion │ Total   │ Cost │
├────────────────────────────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/deepseek-v4-flash │ 1059199 │ 8163       │ 1067362 │ -    │
╰────────────────────────────────┴─────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ standard │ 1        │
╰───────────┴──────────┴──────────╯
⚠️ 2 log(s)
  • Bash:
    exit status 1: Docs drift	fail	11s	https://github.com/inference-gateway/docs/actions/runs/29763818472/job/88424825908	
    Analyze (actions)	pass	44s	https://github.com/inference-gateway/docs/actions/runs/29763816614/job/88424820645	
    … (truncated)
    
  • Bash:
    exit status 1: bun test v1.3.13 (bf2e2cec)
    
    … (truncated)
    

Triggered by edenreich · Infer Action

…nical schema

The fixture scripts/__fixtures__/openapi.sample.yaml still had the old Z-AI URL (https://api.z.ai/v1), causing the provider-docs regression test to fail. Updated it to https://api.z.ai/api/paas/v4 to match the canonical schema. Also fixed the hand-authored .env example in configuration.md that was missed in the initial pass.
@edenreich
edenreich merged commit 2ad9f95 into main Jul 20, 2026
1 check passed
@edenreich
edenreich deleted the feature/fix-zai-api-url-drift branch July 20, 2026 17:47
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 22, 2026
## [0.9.3](0.9.2...0.9.3) (2026-07-22)

### 🐛 Bug Fixes

* **configuration:** update Z-AI API URL to match canonical schema ([#443](#443)) ([2ad9f95](2ad9f95))

### 📚 Documentation

* **api-reference:** document community context-window fallback ([#450](#450)) ([be74471](be74471))
* **api-reference:** document community pricing fallback ([#449](#449)) ([3504c8f](3504c8f))
* **api-reference:** document context_window resolution for GET /v1/models include param ([#445](#445)) ([ca01a1b](ca01a1b))
* **api-reference:** document include query parameter on GET /v1/models ([#442](#442)) ([566dd19](566dd19))
* **api-reference:** document include=pricing model pricing metadata on GET /v1/models ([#446](#446)) ([88f0573](88f0573))
* **api-reference:** document subscription field in pricing metadata ([#456](#456)) ([ae251c1](ae251c1))
* document llamacpp LLAMACPP_API_KEY bearer auth ([#437](#437)) ([c8cd256](c8cd256))
* **go-sdk:** document include=context_window on ListModels and ListProviderModels ([#452](#452)) ([ec3a520](ec3a520))
* **observability:** document tracing config env vars ([#459](#459)) ([60a2cc2](60a2cc2)), closes [#457](#457)
* **operator:** add GPU CRD reference page with spec, status, lifecycle, and Gateway consumption example ([#458](#458)) ([39c66e7](39c66e7))
* **operator:** add keyless Llamacpp Gateway CR example ([#431](#431)) ([2937e3c](2937e3c))
* **operator:** note llamacpp requires operator v0.19.0+ ([#433](#433)) ([eca2735](eca2735))
* **typescript-adk:** PascalCase MessageRole enum members ([#427](#427)) ([23d43bc](23d43bc))
* **typescript-sdk:** document listModels include parameter and model metadata fields ([#454](#454)) ([a0cfd8b](a0cfd8b))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#435](#435)) ([cc8f36c](cc8f36c))
* **deps:** bump actions/setup-node in the github-actions group ([#434](#434)) ([53324e0](53324e0))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.3 🎉

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 22, 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.

1 participant