Add MiniMax provider to model resolver and debugging agent - #522
Open
octo-patch wants to merge 1 commit into
Open
Add MiniMax provider to model resolver and debugging agent#522octo-patch wants to merge 1 commit into
octo-patch wants to merge 1 commit into
Conversation
|
@octo-patch is attempting to deploy a commit to the tanishq's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Reason: provider-add — Libretto's executable model resolver and browser-debugging agent omitted MiniMax.
What changed
Add the MiniMax provider to both model-resolution entry points, using MiniMax's OpenAI-compatible and Anthropic-compatible endpoints with global and China hosts. MiniMax model ids (for example MiniMax-M3) are passed straight through as
provider/model-id— no model names are hardcoded.packages/libretto/src/cli/core/resolve-model.tsProvidertype gains"minimax";SUPPORTED_PROVIDER_ALIASESacceptsminimax.parseModellists MiniMax in the supported-providers error message.hasProviderCredentialschecksMINIMAX_API_KEY;missingProviderCredentialsMessagereturns a MiniMax-specific message.getProviderModelresolves MiniMax through@ai-sdk/openaiagainst${host}/v1by default, or@ai-sdk/anthropicagainst${host}/anthropicwhenMINIMAX_API_STYLE=anthropic. The host is the globalapi.minimax.iounlessMINIMAX_REGIONis set to a China value (cn/cn_zh/china), in which case it usesapi.minimaxi.com.packages/playwright-debugger/src/index.tsSupportedAgentProvidergains"minimax";parseAgentModelaccepts it and lists it in the supported-providers error.resolveLanguageModelresolves a MiniMax model throughcreateOpenAI(${host}/v1) by default, orcreateAnthropic(${host}/anthropic) whenMINIMAX_API_STYLE=anthropic, with the same global/China host selection and the sameagent.apiKeyoverride convention as the existing OpenAI/Anthropic branches.packages/playwright-debugger/test/debugger.spec.tsparseAgentModelnow parsesminimax/MiniMax-M3to{ provider: "minimax", modelId: "MiniMax-M3" }.docs/reference/runtime/playwright-debugger.mdxMINIMAX_API_STYLEandMINIMAX_REGION, and addsMINIMAX_API_KEYto the model-keys example.Checks
packages/playwright-debugger:tsc --noEmit(type-check) passed;vitest run test/debugger.spec.tspassed (9 tests).packages/libretto:tsc --noEmit(type-check) passed;vitest run test/ai-config.spec.ts test/credentials.spec.tspassed (9 tests).oxlint --type-awareon the changed source files passed.