feat(frontend): settings api, typed PiModel, question-only createSession
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
import { apiFetch } from "./client";
|
||||
|
||||
export const listModels = () => apiFetch<{ models: unknown[] }>("/models");
|
||||
export interface PiModel {
|
||||
provider: string;
|
||||
id: string;
|
||||
name: string;
|
||||
reasoning: boolean;
|
||||
}
|
||||
|
||||
export const listModels = () => apiFetch<{ models: PiModel[] }>("/models");
|
||||
|
||||
Reference in New Issue
Block a user