Repository navigation
fix(go-models): fix MiniMax driver requests - #15527
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughRefactors the Minimax client to add centralized input validation, enforce non-streaming chat requests and strict response parsing, expand streaming request parameters and SSE headers, perform bodyless GET for model listing, delegate CheckConnection to ListModels, and add a comprehensive httptest-based test suite. ChangesMinimax API Integration Refactoring and Testing
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @Haruko386 @JinHai-CN - please review when you have a little time. 🤝 |
Haruko386
left a comment
There was a problem hiding this comment.
@oktofeesh1 Do a small change would be ok
a4a2a44 to
c8707b6
Compare
Fixed, thanks for the review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15527 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Fixed as well! |
Haruko386
left a comment
There was a problem hiding this comment.
Hi @oktofeesh1
please refer this and fetch the latest code
|
Thanks, I fetched/rebased onto the latest upstream code and verified the MiniMax paths now follow the current pattern: |
789f901 to
ad2f7cf
Compare
Summary
What changed
Why
MiniMax documents its OpenAI-compatible model list endpoint as GET /v1/models with bearer auth: https://platform.minimax.io/docs/api-reference/models/openai/list-models. The previous driver sent a JSON body on that GET, let callers flip the expected stream mode, and could panic on malformed model-list responses.
Validation
Notes