mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
regenerate OpenAPI spec and add model selection components
This commit is contained in:
1 parent
9ed292af2a
commit
17ee96d316
12 files changed
+10266
-3453
No files matched your search
@@ -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 };
|
||||
|
||||
Reference in new issue
Block a user