feat(frontend): settings api, typed PiModel, question-only createSession
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { apiFetch } from "./client";
|
||||
|
||||
export interface Settings {
|
||||
workspace?: string;
|
||||
provider?: string;
|
||||
model?: string;
|
||||
thinking?: string;
|
||||
}
|
||||
|
||||
export const getSettings = () => apiFetch<Settings>("/settings");
|
||||
|
||||
export const putSettings = (s: Settings) =>
|
||||
apiFetch<Settings>("/settings", { method: "PUT", body: JSON.stringify(s) });
|
||||
Reference in New Issue
Block a user