Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c5ff485
feat(zai): add Z.AI adapter for TanStack AI
shakibdshy Jan 15, 2026
84deb15
refactor(ai-zai): improve type safety and code quality
shakibdshy Jan 15, 2026
214d155
feat(tools): add tool support for Z.AI including web search and funct…
shakibdshy Jan 15, 2026
54bf059
feat(zai): add zai provider support across multiple examples
shakibdshy Jan 15, 2026
d6c7a64
feat(adapters): add multimodal support for image/video content in ZAI…
shakibdshy Jan 15, 2026
725fb92
chore: restructure examples, add e2e testing fixtures and update pack…
shakibdshy Apr 26, 2026
d44da17
feat(zai): add coding endpoint support and update to AG-UI protocol
shakibdshy Apr 26, 2026
1df8af1
feat(zai): add Z.AI provider support across examples and fix formatting
shakibdshy Apr 26, 2026
c0ef5a9
feat: add Z.AI provider support and model selection UI
shakibdshy Apr 28, 2026
c1cd797
chore(typescript/ai-zai): add vitest config and dev dependencies
shakibdshy Apr 28, 2026
779f848
Merge upstream/main into zai-adapters
shakibdshy Oct 28, 2026
4a934d4
feat(ai-zai): rebuild adapter on the OpenAI chat completions base
shakibdshy Oct 28, 2026
092a5e1
feat(ai-zai): add BYOK key support and refresh the package README
shakibdshy Oct 28, 2026
b378d33
docs(ai-zai): add the Z.AI adapter guide
shakibdshy Oct 28, 2026
36bfb4f
chore(examples,panel): drop Z.AI leftovers from the example sweep
shakibdshy Oct 28, 2026
25db2f9
fix(ai-zai): honor toolChoice none and correct the GLM reasoning maps
shakibdshy Oct 29, 2026
84e808d
chore(examples,panel): harden provider dispatch and persist the model…
shakibdshy Oct 29, 2026
7fd1215
Merge remote-tracking branch 'upstream/main' into zai-adapters
shakibdshy Oct 30, 2026
241db8c
docs(ai-zai): date the Z.AI page entry for the day it lands
shakibdshy Oct 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/zai-chat-completions-adapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@tanstack/ai-zai': minor
---

Add the Z.AI adapter. It drives Z.AI's OpenAI-compatible Chat Completions API through `@tanstack/openai-base` and ships the GLM-5 and GLM-4 model catalog (`glm-5.3`, `glm-5.3-flash`, and `glm-5.2` first), `createZAIText`/`zaiText`, `createZAISummarize`/`zaiSummarize`, the branded `zaiWebSearchTool`, and a `zaiByok` descriptor at `@tanstack/ai-zai/byok` so a browser-supplied key wins over `ZAI_API_KEY`.

The adapter sets the coding-plan base URL when `coding: true` is passed. It sends `json_object` plus a schema system prompt because Z.AI rejects `json_schema`. Z.AI accepts a `tool_choice` of `auto` only, so `toolChoice: 'none'` sends no tools and `'required'` or a named tool warns once and falls back to `auto`. It streams `delta.reasoning_content` as AG-UI reasoning events.
Loading