From 0a962fc1ba2d09cbf82c5ff1fbaddaae1fc4b263 Mon Sep 17 00:00:00 2001 From: octo-patch <266937838+octo-patch@users.noreply.github.com> Date: Thu, 9 Jul 2026 10:25:53 +0000 Subject: [PATCH] Add MiniMax AI provider Reason: add target provider/model to existing provider registry Co-Authored-By: Claude Opus 4.7 --- flutter_app/lib/models/ai_provider.dart | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/flutter_app/lib/models/ai_provider.dart b/flutter_app/lib/models/ai_provider.dart index d24f8a5..7cc5358 100644 --- a/flutter_app/lib/models/ai_provider.dart +++ b/flutter_app/lib/models/ai_provider.dart @@ -133,6 +133,28 @@ class AiProvider { apiKeyHint: 'xai-...', ); + static const minimax = AiProvider( + id: 'minimax', + name: 'MiniMax', + description: 'MiniMax models with long-context reasoning', + icon: Icons.all_inclusive, + color: Color(0xFF8B5CF6), + baseUrl: 'https://api.minimax.io/v1', + defaultModels: [ + 'MiniMax-M3', + ], + apiKeyHint: 'sk-...', + ); + /// All available AI providers. - static const all = [anthropic, openai, google, openrouter, nvidia, deepseek, xai]; + static const all = [ + anthropic, + openai, + google, + openrouter, + nvidia, + deepseek, + xai, + minimax, + ]; }