Files
ThothII/frontend/src/api/models.ts
T

11 lines
216 B
TypeScript

import { apiFetch } from "./client";
export interface PiModel {
provider: string;
id: string;
name: string;
reasoning: boolean;
}
export const listModels = () => apiFetch<{ models: PiModel[] }>("/models");