feat: add minimax to the provider enum#43
Merged
Conversation
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
Adds the
minimaxprovider (introduced upstream in inference-gateway/schemas#62, closing inference-gateway/schemas#61) to the SDK. MiniMax is OpenAI-compatible: idminimax,bearerauth, base URLhttps://api.minimax.io/v1,supports_vision: true.Changes:
openapi.yaml(vendored spec): addminimaxto theProviderenum, itsx-provider-configsentry, and theMINIMAX_API_URL/MINIMAX_API_KEYconfig env vars — matching upstream byte-for-byte.inference_gateway/models.py: addminimaxto the generatedProviderenum (bothLiteralblocks), in spec order (aftermistral, beforemoonshot).README.md: list MiniMax under "Supported Providers".Scope note (focused sync)
The upstream
schemasopenapi.yamlhas drifted beyond minimax since this copy was last vendored (header timestamp 2026-05-07). To keep this PR scoped to the issue, I synced only the minimax additions, not the full upstream delta. Deferred (unrelated) upstream changes, suitable for a separate "sync vendored openapi.yaml with schemas" task:$ref: SSEventtooneOf: [SSEvent, CreateChatCompletionStreamResponse];contentadded to the streaming chunk delta'srequired(would change generated typing);moonshotsupports_visionflippedfalse→true;Codegen note
datamodel-codegenis not runnable in the CI sandbox, so theProviderenum delta was applied directly tomodels.py. Because the vendored spec was updated in lockstep, the result is identical to generator output (enum order preserved) andtask generatestays idempotent.Validation
models.pysyntax-checked viaast.parse.black --check .,pytest tests/) are expected to pass. Dev-dependency install and the codegen tool are blocked in this sandbox, so the full lint/test suite runs in CI.Closes #42