11 lines
216 B
TypeScript
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");
|