fix: react-doctor unused-export 141→~80 (remove dead exports, enums/marketing unused, inline campaignStatusEnum)

This commit is contained in:
Nora
2026-06-26 05:25:36 -06:00
parent 0ea11e4db6
commit 13d15883b1
34 changed files with 106 additions and 174 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
export type AIProvider = "openai" | "anthropic" | "google" | "xai" | "minimax" | "custom";
export const PROVIDER_MODELS: Record<Exclude<AIProvider, "custom">, string[]> = {
const PROVIDER_MODELS: Record<Exclude<AIProvider, "custom">, string[]> = {
openai: ["gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-3.5-turbo"],
// Note: claude-3-5-sonnet-* model IDs have been retired by Anthropic.
// Current IDs are claude-sonnet-4-5, claude-sonnet-4-*, claude-opus-4-*, etc.
@@ -37,6 +37,6 @@ export const DEFAULT_MODELS: Record<Exclude<AIProvider, "custom">, string> = {
minimax: "MiniMax-M3",
};
export function getModelsForProvider(provider: Exclude<AIProvider, "custom">): string[] {
function getModelsForProvider(provider: Exclude<AIProvider, "custom">): string[] {
return PROVIDER_MODELS[provider] ?? [];
}