Skip to content

Commit 201f35a

Browse files
HavenDVclaude
andcommitted
Add Minimax CustomProvider
Adds CustomProviders.Minimax() factory method with base URL https://api.minimax.io/v1 for the MiniMax AI platform (MiniMax-M2.7, M2.5) which uses OpenAI-compatible endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c21afac commit 201f35a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/libs/tryAGI.OpenAI/CustomProviders.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public static class CustomProviders
106106
/// </summary>
107107
public const string OllamaCloudBaseUrl = "https://ollama.com/api/v1";
108108

109+
/// <summary>
110+
/// https://platform.minimax.io/docs/api-reference
111+
/// </summary>
112+
public const string MinimaxBaseUrl = "https://api.minimax.io/v1";
113+
109114
/// <summary>
110115
/// Creates an API to use for GitHub Models: https://github.com/marketplace/models
111116
/// </summary>
@@ -294,4 +299,13 @@ public static OpenAiClient OllamaCloud(string apiKey)
294299
{
295300
return new OpenAiClient(apiKey, baseUri: new Uri(OllamaCloudBaseUrl));
296301
}
302+
303+
/// <summary>
304+
/// Create an API to use for MiniMax.
305+
/// </summary>
306+
/// <returns></returns>
307+
public static OpenAiClient Minimax(string apiKey)
308+
{
309+
return new OpenAiClient(apiKey, baseUri: new Uri(MinimaxBaseUrl));
310+
}
297311
}

0 commit comments

Comments
 (0)