Switch LLM config to MiniMax-M3 and fix MiniMax auth header - #15
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.7→MiniMax-M3packages/orca-lang/src/llm/anthropic.ts: MiniMax's Anthropic-compatible endpoint (api.minimax.io/anthropic) authenticates via thex-api-keyheader, notAuthorization: Bearer. The Bearer path returned401 ("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 usesx-api-key.README.md: bump the MCP server exampleORCA_MODELtoMiniMax-M3.Verification
Tested end-to-end against MiniMax-M3:
/generate-orca, readsorca.yaml): authenticates and generates valid machines — a TrafficLight was generated and passedverify. (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.)server_statusreportsmodel: MiniMax-M3/base_url: …/anthropic;generate_machinereturnsstatus: "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 buildornpm run buildinpackages/orca-lang) for the auth fix to reach the MCP server'sdist/server.js.🤖 Generated with Claude Code