export type ModelProvider = 'OpenAI' | 'Anthropic' | '阿里云百炼' | 'Google' | 'DeepSeek';
export type ModelType = '对话' | '嵌入' | '多模态';

export interface ModelItem {
  id: string;
  name: string;
  provider: ModelProvider;
  modelId: string;
  type: ModelType;
  enabled: boolean;
  todayToken: number;
  order: number;
  updatedAt: string;
}

export interface UsagePoint {
  date: string;
  value: number;
}

export interface RecentCall {
  id: string;
  time: string;
  token: number;
  status: '成功' | '失败';
}

export const initialModels: ModelItem[] = [
  {
    id: '1',
    name: 'GPT-4o',
    provider: 'OpenAI',
    modelId: 'gpt-4o',
    type: '多模态',
    enabled: true,
    todayToken: 12345678,
    order: 1,
    updatedAt: '2026-07-25 14:30:22',
  },
  {
    id: '2',
    name: 'Claude-3.5-Sonnet',
    provider: 'Anthropic',
    modelId: 'claude-3-5-sonnet-20240620',
    type: '对话',
    enabled: true,
    todayToken: 8765432,
    order: 2,
    updatedAt: '2026-07-25 14:18:45',
  },
  {
    id: '3',
    name: '通义千问-Max',
    provider: '阿里云百炼',
    modelId: 'qwen-max',
    type: '对话',
    enabled: true,
    todayToken: 5678901,
    order: 3,
    updatedAt: '2026-07-25 13:55:10',
  },
  {
    id: '4',
    name: 'Gemini-1.5-Pro',
    provider: 'Google',
    modelId: 'gemini-1.5-pro',
    type: '多模态',
    enabled: false,
    todayToken: 123456,
    order: 4,
    updatedAt: '2026-07-24 18:20:33',
  },
  {
    id: '5',
    name: 'DeepSeek-V3',
    provider: 'DeepSeek',
    modelId: 'deepseek-chat',
    type: '对话',
    enabled: true,
    todayToken: 3456789,
    order: 5,
    updatedAt: '2026-07-24 16:42:08',
  },
];

export const usageTrend: UsagePoint[] = [
  { date: '07-19', value: 4200000 },
  { date: '07-20', value: 6800000 },
  { date: '07-21', value: 5900000 },
  { date: '07-22', value: 9100000 },
  { date: '07-23', value: 7200000 },
  { date: '07-24', value: 8400000 },
  { date: '07-25', value: 12345678 },
];

export const recentCalls: RecentCall[] = [
  { id: 'call-1', time: '2026-07-25 14:23:45', token: 12345, status: '成功' },
  { id: 'call-2', time: '2026-07-25 14:20:11', token: 8765, status: '成功' },
  { id: 'call-3', time: '2026-07-25 14:18:03', token: 3210, status: '成功' },
  { id: 'call-4', time: '2026-07-25 14:15:42', token: 9876, status: '失败' },
  { id: 'call-5', time: '2026-07-25 14:10:33', token: 7654, status: '成功' },
];
