import { api } from './http';

export interface AiModel {
  id: string;
  model_name: string;
  icon: string;
  model_ratio: number;
  completion_ratio: number;
}

export const ModelAPI = {
  list: () => api.get<{ data: AiModel[] }>('/models').then((r) => r.data.data)
};

