8000 feat(openai): add MiniMax chat completions compat by akazwz · Pull Request #16 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

feat(openai): add MiniMax chat completions compat - #16

Merged
sheepbox8646 merged 1 commit into
felinics:mainfrom
akazwz:minimax-openai-compat
Jun 3, 2026
Merged

sheepbox8646 merged 1 commit into
felinics:mainfrom
akazwz:minimax-openai-compat

Conversation

@akazwz
@akazwz akazwz commented Jun 3, 2026
Copy link
Copy Markdown
Member

Summary

  • Add WithMiniMaxChatCompletionsCompat() for MiniMax OpenAI-compatible Chat Completions.
  • Send reasoning_split: true, map SDK reasoning effort onto MiniMax thinking, and omit unsupported reasoning_effort.
  • Parse reasoning_details for non-streaming and streaming responses, preserve it in assistant history for later tool-call turns, and update provider docs.

Testing

  • go test ./...
  • Smoke-tested non-streaming and streaming requests against the MiniMax OpenAI-compatible endpoint; streaming reasoning_details can arrive as deltas, which is covered by the new tests.

Notes

  • MiniMax documents reasoning_split: true as the compatible format for preserving interleaved thinking via reasoning_details.
  • China-region keys should use https://api.minimaxi.com/v1; international keys can use https://api.minimax.io/v1.

@akazwz
akazwz force-pushed the minimax-openai-compat branch from 3e4f86d to f6dac4f Compare June 3, 2026 07:32
@sheepbox8646
sheepbox8646 merged commit eedffe3 into felinics:main Jun 3, 2026
3 checks passed
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

0