Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion flutter_app/lib/models/ai_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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-...',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The apiKeyHint for MiniMax uses sk-... but MiniMax API keys have the documented prefix sk-cp-.... Updating the hint to sk-cp-... would make it consistent with the other providers (Anthropic uses sk-ant-..., OpenRouter uses sk-or-..., etc.) and help users match their key to the right field more quickly.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At flutter_app/lib/models/ai_provider.dart, line 146:

<comment>The `apiKeyHint` for MiniMax uses `sk-...` but MiniMax API keys have the documented prefix `sk-cp-...`. Updating the hint to `sk-cp-...` would make it consistent with the other providers (Anthropic uses `sk-ant-...`, OpenRouter uses `sk-or-...`, etc.) and help users match their key to the right field more quickly.</comment>

<file context>
@@ -133,6 +133,28 @@ class AiProvider {
+    defaultModels: [
+      'MiniMax-M3',
+    ],
+    apiKeyHint: 'sk-...',
+  );
+
</file context>
Suggested change
apiKeyHint: 'sk-...',
apiKeyHint: 'sk-cp-...',

);

/// 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,
];
}
Loading