Skip to content

Verify GLM (Z.ai) and Kimi (Moonshot) provider presets against live APIs #27

Open

Description

@melvincarvalho

The zai and moonshot presets in src/providers.js (#25) encode their documented Anthropic-compatible endpoints:

  • Z.ai GLM: https://api.z.ai/api/anthropic (auth-token style), suggested models glm-4.6, glm-4.5-air
  • Moonshot Kimi: https://api.moonshot.ai/anthropic (auth-token style), suggested models kimi-k2-0905-preview, kimi-k2-turbo-preview

These are from provider documentation and cannot be live-verified without API keys. Needs a maintainer with keys to run:

npx jsclaw onboard          # pick Z.ai or Moonshot
export ZAI_API_KEY=...      # or MOONSHOT_API_KEY
npx jsclaw run main "say hi in one word"

and confirm: (1) the endpoint paths are still current, (2) the suggested model ids resolve, (3) auth-token vs api-key style is right for each. Fix the presets if anything drifted. Fallback if either endpoint is gone: route through LiteLLM as a custom endpoint.

Also worth a line in the README once verified ("tested against live GLM/Kimi on ").

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions