Repository navigation
[feat] providers: add Zhipu BigModel GLM chat support - #245
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
- Register the Zhipu BigModel provider preset with its canonical URL, the Z.ai brand logo and the GLM agent model catalog. - Map the shared thinking levels to GLM reasoning_effort in the shared chat payload. GLM accepts only low, high and max, auto omits the parameter and unknown levels fall back as in the DeepSeek branch. - Cover the preset shape, bilingual labels, saved connection identity and effort mapping with tests, and the provider form and assistant picker with an isolated browser case. - .venv/bin/python -m pytest tests -q: 1083 passed, 6 skipped - npm test: 678 passed - npm run build - npm run check:i18n - CREATION_API_URL=http://127.0.0.1:8019 CREATION_WEB_URL=http://127.0.0.1:5179 node tests/browser/zhipu_provider.mjs - Real credential acceptance: streaming conversation, tool call execution and both display languages verified against open.bigmodel.cn with screenshots. Refs: ThinkFlowLab#236
242906a to
a4bb700
Compare
|
fix conflicts |
|
Conflict already fixed in |
FayeSpica
left a comment
There was a problem hiding this comment.
Thanks! Please fix the browser manifest check before merging.
## summary - Register the Zhipu provider browser workflow in the extended lane. - Reuse the assistant picker check for both Chinese and English labels.
## summary - Run Chinese and English picker checks on fresh pages and projects. - Keep saved model configuration shared while avoiding assistant state and project lease interference. ## validation - node tests/browser/zhipu_provider.mjs - node --check tests/browser/zhipu_provider.mjs - git diff --staged --check Signed-off-by: MrDongsls <dhy1042542469@126.com>
|
@FayeSpica Thanks for your review! Both problems are addressed in |
|
Let’s wait for CI to pass before moving forward. |
|
@FayeSpica I investigated the CI failure and found it was an intermittent storage_busy session-lease race during voice-library cold reopen (the PR does not touch that path); could you please re-run CI? |
Closes #236. Parent RFC: #234
Summary
https://open.bigmodel.cn/api/paas/v4, the Z.ai brand logo and a curated GLM agent model catalog, so GLM models appear in the assistant Default group exactly like other chat providers. The preset ships a fixed model list because the platform does not document a model listing endpoint; manual model IDs stay available.Evidence
asset write-text, added it to the canvas withcanvas add-material, and reported the executed steps; the text node appeared on the canvas.Both acceptance items from the issue were verified with the real connection: a streaming conversation, and an assistant turn that called OpenDirector tools, received results and continued the conversation. One of six tool calls in that run failed and the agent loop recovered on retry; the final canvas state and reply were correct.
Validation
.venv/bin/python -m pytest tests -q: 1260 passed, 7 failed, 6 skipped at 242906a. The 7 voice library failures also fail on upstream main f06e22f without this commit, so they are pre-existing on the rebased basenpm test: 695 passed, 0 failednpm run buildnpm run check:i18nCREATION_API_URL=http://127.0.0.1:8019 CREATION_WEB_URL=http://127.0.0.1:5179 node tests/browser/zhipu_provider.mjs: passed, no request reaches open.bigmodel.cn