regenerate OpenAPI spec and add model selection components

This commit is contained in:
Chris Scott committed 2026-01-10 18:39:12 -05:00
1 parent 9ed292af2a
commit 17ee96d316
12 files changed
+10266 -3453

No files matched your search

+6
View File
@@ -252,12 +252,14 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?:
parts,
model,
agent,
variant,
}: {
sessionID: string;
prompt?: string;
parts?: ContentPart[];
model?: string;
agent?: string;
variant?: string;
}) => {
if (!client) throw new Error("No client available");
@@ -312,6 +314,10 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?:
requestData.agent = agent;
}
if (variant) {
requestData.variant = variant;
}
const response = await client.sendPrompt(sessionID, requestData);
return { optimisticUserID, response, userPromptText };