Skip to content

Write decision explanations with Huawei MaaS on the Forge cluster - #13

Merged
kenzycodex merged 2 commits into
mainfrom
feat/huawei-maas
Nov 11, 2026
Merged

kenzycodex merged 2 commits into
mainfrom
feat/huawei-maas

Conversation

@kenzycodex

@kenzycodex kenzycodex commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Uses the Forge gateway's Huawei MaaS (OpenAI-compatible) to word the explanation of a FLAG or BLOCK decision, as the platform guide describes: glm-5.2 (override with FORGE_MAAS_MODEL), team key in the apikey header, thinking off via chat_template_kwargs.

  • Runs off the request path, after the decision; results are cached by signal shape, which protects the shared 60 requests a minute
  • Any model error or timeout keeps the built-in template, so a decision never waits on the model
  • Only active where FORGE_MAAS_BASE_URL is set (the cluster manifest already sets it; GATEWAY_KEY comes from the huawei-gateway secret)
  • Tests for the header, thinking off and the fallback; API suite 458 passed, ruff clean

The model only words the explanation of a decision already made, off the
request path; any error leaves the built-in template in place.
@kenzycodex
kenzycodex merged commit 865a587 into main Nov 11, 2026
@kenzycodex
kenzycodex deleted the feat/huawei-maas branch November 11, 2026 13:02
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