Skip to content

Add z.ai provider support#4

Merged
magix022 merged 1 commit into
mainfrom
add-zai-provider-support
Jun 22, 2026
Merged

Add z.ai provider support#4
magix022 merged 1 commit into
mainfrom
add-zai-provider-support

Conversation

@magix022

Copy link
Copy Markdown
Collaborator

Summary

  • Add z.ai as a LiteLLM-backed API-key provider using the zai/ runtime prefix.
  • Default the setup menu to glm-5.2 with curated GLM alternatives: glm-5.1, glm-4.7, glm-4.6, glm-4.5, and glm-4.5-flash.
  • Document z.ai in provider docs and clarify that setup model menus are curated, not exhaustive.

Auth and secrets

  • Uses ZAI_API_KEY by default, following Fractal's existing env/stored credential flow.
  • No raw API keys or secrets are stored in config.

Model sources

  • LiteLLM documents the Z.AI provider prefix as zai/ and ZAI_API_KEY.
  • Z.AI docs list GLM-5.2 and GLM-5.1 in the current model overview; LiteLLM documents the requested GLM 4.x model IDs.

Tests

  • .venv/bin/python -m pytest tests/test_providers.py tests/test_cli_config.py
  • .venv/bin/python -m pytest

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@magix022 magix022 merged commit 86cee8a into main Jun 22, 2026
5 checks passed
@magix022 magix022 deleted the add-zai-provider-support branch June 22, 2026 13:56
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.

2 participants