feat(ai): per-partner promo badges on ai provider presets
This commit is contained in:
14 files changed
+29
-1
No files matched your search
@@ -899,6 +899,7 @@ describe("settingsStore AI API key normalization", () => {
|
||||
authMethod: "bearer",
|
||||
requiresApiKey: true,
|
||||
websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
badgeKey: "ai.aicodemirrorSponsored",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -249,6 +249,8 @@ export interface AiPartnerProviderPreset extends AiProviderPreset {
|
||||
websiteUrl: string;
|
||||
apiKeyUrl: string;
|
||||
descriptionKey: string;
|
||||
/** Locale key of the promo badge shown next to this preset; omit for no badge. */
|
||||
badgeKey?: string;
|
||||
}
|
||||
|
||||
export const AI_PROVIDER_PRESETS: Record<AiProvider, AiProviderPreset> = {
|
||||
@@ -472,6 +474,7 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
|
||||
websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
apiKeyUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH",
|
||||
descriptionKey: "ai.aicodemirrorDescription",
|
||||
badgeKey: "ai.aicodemirrorSponsored",
|
||||
},
|
||||
{
|
||||
id: "jalapeno-cloud",
|
||||
@@ -488,6 +491,7 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
|
||||
websiteUrl: "https://www.jalapeno-cloud.ai/dbx",
|
||||
apiKeyUrl: "https://www.jalapeno-cloud.ai/dbx",
|
||||
descriptionKey: "ai.jalapenoDescription",
|
||||
badgeKey: "ai.jalapenoSponsored",
|
||||
},
|
||||
{
|
||||
id: "hualong-ai",
|
||||
@@ -504,6 +508,7 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
|
||||
websiteUrl: "https://api.hualong.online/register?promo=DBX%26HUALONG",
|
||||
apiKeyUrl: "https://api.hualong.online/register?promo=DBX%26HUALONG",
|
||||
descriptionKey: "ai.hualongDescription",
|
||||
badgeKey: "ai.hualongSponsored",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user