feat(sponsors): add AICodeMirror sponsor card and ai provider preset
This commit is contained in:
19 files changed
+79
No files matched your search
@@ -893,6 +893,13 @@ describe("settingsStore AI API key normalization", () => {
|
||||
model: "deepseek-v4.1-flash",
|
||||
models: [{ name: "deepseek-v4.1-flash" }],
|
||||
});
|
||||
expect(AI_PROVIDER_PARTNER_PRESETS.find((preset) => preset.id === "aicodemirror")).toMatchObject({
|
||||
endpoint: "https://api.aicodemirror.ai/v1",
|
||||
provider: "openai-compatible",
|
||||
authMethod: "bearer",
|
||||
requiresApiKey: true,
|
||||
websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
});
|
||||
});
|
||||
|
||||
it("uses the mainland MiniMax endpoint only for new zh-CN presets", () => {
|
||||
|
||||
@@ -490,6 +490,21 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
|
||||
apiKeyUrl: "https://api.hualong.online/register?promo=DBX%26HUALONG",
|
||||
descriptionKey: "ai.hualongDescription",
|
||||
},
|
||||
{
|
||||
id: "aicodemirror",
|
||||
label: "AICodeMirror",
|
||||
iconPath: "/icons/ai/aicodemirror.png",
|
||||
group: "partner",
|
||||
provider: "openai-compatible",
|
||||
endpoint: "https://api.aicodemirror.ai/v1",
|
||||
model: "",
|
||||
apiStyle: "completions",
|
||||
authMethod: "bearer",
|
||||
requiresApiKey: true,
|
||||
websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
apiKeyUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
descriptionKey: "ai.aicodemirrorDescription",
|
||||
},
|
||||
];
|
||||
|
||||
function normalizeAiProviderEndpoint(endpoint: string): string {
|
||||
|
||||
Reference in new issue
Block a user