Skip to content

Switch LLM config to MiniMax-M3 and fix MiniMax auth header - #15

Merged
jascal merged 1 commit into
mainfrom
minimax-m3
Jun 1, 2026
Merged

Switch LLM config to MiniMax-M3 and fix MiniMax auth header#15
jascal merged 1 commit into
mainfrom
minimax-m3

Conversation

@jascal

@jascal jascal commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

Switches the configured LLM model to MiniMax-M3 and fixes a latent auth bug that blocked the MiniMax Anthropic-compatible endpoint.

  • orca.yaml: model: MiniMax-M2.7MiniMax-M3
  • packages/orca-lang/src/llm/anthropic.ts: MiniMax's Anthropic-compatible endpoint (api.minimax.io/anthropic) authenticates via the x-api-key header, not Authorization: Bearer. The Bearer path returned 401 ("Please carry the API secret key in the 'X-Api-Key' field"). MiniMax's docs say to point the Anthropic SDK at their endpoint — and that SDK uses x-api-key.
  • README.md: bump the MCP server example ORCA_MODEL to MiniMax-M3.

Verification

Tested end-to-end against MiniMax-M3:

  • CLI (/generate-orca, reads orca.yaml): authenticates and generates valid machines — a TrafficLight was generated and passed verify. (Turnstile sampled 3×: 2 clean, 1 hit the normal refine step where M3 occasionally returns prose instead of the corrected machine — instruction-following variance, not a config issue.)
  • MCP server (stdio, pointed at M3): server_status reports model: MiniMax-M3 / base_url: …/anthropic; generate_machine returns status: "success" with a valid machine. Non-LLM tools (verify/compile/parse) pass.

Note for reviewers

dist/ is gitignored, so after checkout run a build (pnpm build or npm run build in packages/orca-lang) for the auth fix to reach the MCP server's dist/server.js.

🤖 Generated with Claude Code

- orca.yaml: model MiniMax-M2.7 -> MiniMax-M3
- anthropic.ts: MiniMax's Anthropic-compatible endpoint (api.minimax.io/anthropic)
  authenticates via the x-api-key header, not Authorization: Bearer.
  The Bearer path returned 401 ("carry the API secret key in the X-Api-Key
  field"); switching to x-api-key matches how MiniMax's docs say to use the
  Anthropic SDK against their endpoint.
- README.md: bump MCP server example ORCA_MODEL to MiniMax-M3

Verified end-to-end on MiniMax-M3 via the orca-lang CLI (/generate-orca generated
and verified a TrafficLight machine) and the MCP server (server_status reports
MiniMax-M3; generate_machine returns status: success over stdio).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jascal
jascal merged commit 1743f37 into main Jun 1, 2026
3 checks passed
@jascal
jascal deleted the minimax-m3 branch June 1, 2026 17:32
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