Skip to content

fix(tensorzero): override Z.AI GLM-5 temperature to 0.1 for coding variants (SUPERSEDED) - #1510

Closed
POWERFULMOVES wants to merge 1 commit into
mainfrom
fix/zai-glm5-coding-temperature
Closed

POWERFULMOVES wants to merge 1 commit into
mainfrom
fix/zai-glm5-coding-temperature

Conversation

@POWERFULMOVES

@POWERFULMOVES POWERFULMOVES commented May 16, 2026 •

Copy link
Copy Markdown
Owner

Superseded by #1511 which contains the identical temperature = 0.1 additions to tensorzero.toml for all 6 Z.AI coding variants, plus the ClawZ submodule bump. Merging #1510 first would create a conflict on #1511. Close this and merge #1511 instead.

…riants

Per 4090 handoff report 2026-05-14 (PR #1508, item #1 in
research/HANDOFF_4090_FIXES_MAY2026.md) and Z.AI coding plan docs:
GLM-5-Turbo defaults to temperature=1.0 which is too creative for code
generation and tool calling. Override to 0.1 (in the documented 0.0-0.3
coding range) for deterministic-enough generation while preserving
small variation for retry diversity.

Applied to 6 TensorZero variants that route to the Z.AI coding endpoint
(`https://api.z.ai/api/coding/paas/v4`):

functions.agent_zero (KiloCode primary):
- hosted_zai_turbo         (chat_zai_glm5_turbo,  w=0.6)
- hosted_zai_vision_turbo  (chat_zai_glm5v_turbo, w=0.3)

functions.coding_glm (code-gen specialist):
- cloud_zai_turbo          (chat_zai_glm5_turbo,  w=0.8)
- cloud_zai_vision_turbo   (chat_zai_glm5v_turbo, w=0.4)
- cloud_zai_glm51          (chat_zai_glm51)
- cloud_zai_glm_flash      (chat_zai_glm)

Rationale comments added at both variant-block headers cross-referencing
research/HANDOFF_4090_FIXES_MAY2026.md.

Note (out of scope): `python3 -c 'import tomllib; tomllib.load(...)'`
flags a pre-existing duplicate model declaration at line 549
(`models.ollama_spark_gemma4_31b_fp16` declared twice). Reproduces on
origin/main; not introduced by this PR. TensorZero's Rust TOML parser
is likely more permissive than Python's strict tomllib, hence the
config probably loads fine at runtime. Worth a separate dedup PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 16, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@POWERFULMOVES has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 26 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a3d54f7b-3d6b-4403-a5e0-bb3d7d7d2ff5

📥 Commits

Reviewing files that changed from the base of the PR and between 1b0875f and 3a365e8.

📒 Files selected for processing (1)
  • pmoves/tensorzero/config/tensorzero.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/zai-glm5-coding-temperature

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@POWERFULMOVES POWERFULMOVES changed the title fix(tensorzero): override Z.AI GLM-5 temperature to 0.1 for coding variants fix(tensorzero): override Z.AI GLM-5 temperature to 0.1 for coding variants (SUPERSEDED) May 16, 2026
POWERFULMOVES added a commit that referenced this pull request May 16, 2026
…ure (#1511)

Sync 27,974 upstream ClawZ commits. Override Z.AI GLM-5 temperature
to 0.1 for all 6 coding variants (agent_zero + coding_glm).

Supersedes #1510 (identical temperature diff, subset of this PR).

Co-authored-by: Agent-Zero-Sidecar <agent-zero@pmoves.ai>
@POWERFULMOVES
POWERFULMOVES deleted the fix/zai-glm5-coding-temperature branch June 13, 2026 06:12
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