mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-09 05:20:50 +00:00
55335feb17
Reworks external PR #328 (octo-patch). The PR added only the provider core; this brings MiniMax to full parity with the other providers (qwen) so it is selectable and configurable in the UI and installer. Applied from the PR (verified against MiniMax's official API docs — M3/M2.7/ M2.7-highspeed are real current models; corrected the M3 description from the PR's "512K" to the documented ~1M context): - minimax provider package (OpenAI-compatible https://api.minimax.io/v1), config.yml, models.yml, tests; MINIMAX_API_KEY/SERVER_URL/PROVIDER env vars; ProviderMiniMax type + DefaultProviderNameMiniMax; providers.go wiring; Valid() whitelist. Added for completeness: - goose migration adding 'minimax' to the PROVIDER_TYPE enum + database ProviderTypeMinimax const. - GraphQL: minimax in ProviderType enum, ProvidersModelsList, ProvidersReadinessStatus, DefaultProvidersConfig; resolvers wire default config/models + enabled status; gqlgen regenerated. - Frontend: MiniMax icon (lobehub), provider-icon + settings-providers registration + provider type list; regenerated GraphQL types. - Installer wizard: provider form, screen, list, registry, env-var mappings, locale strings + help text. - ctester/ftester: -type/-provider minimax support. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>