14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
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) });
|