fix: react-doctor unused-export 141→~80 (remove dead exports, enums/marketing unused, inline campaignStatusEnum)
This commit is contained in:
@@ -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] ?? [];
|
||||
}
|
||||
Reference in New Issue
Block a user