feat: add max effort level for GLM 5.2 (#1562)

* feat: add max effort level for GLM 5.2

GLM 5.2 supports a 'max' thinking effort level (recommended for coding
tasks per Z.ai/Fireworks docs). Add it to the model's effort list so it
surfaces in the profile editor and maps to reasoning_effort=max.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: restrict GLM 5.2 efforts to none, high, max

GLM 5.2 only supports non-thinking (none), high, and max effort levels.
Remove low and medium which the model does not support.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
Johannes du Plessis 2026-06-17 09:10:22 -07:00 • committed by GitHub
parent 3945757592
commit 46e8982b29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ SUPPORTED_MODELS: list[ModelOption] = [
{
"id": "fireworks:accounts/fireworks/models/glm-5p2",
"label": "GLM 5.2",
"efforts": ["none", "low", "medium", "high"],
"efforts": ["none", "high", "max"],
"default_effort": "high",
"supports_images": False,
},