change model
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-31 05:50:33 -06:00
parent f16104b011
commit 91e1b2b48b
3 changed files with 20 additions and 7 deletions

View File

@@ -103,10 +103,10 @@ export function disconnectPrompt() {
_onCodeComplete = null
}
export function sendPrompt(content: string) {
export function sendPrompt(content: string, model: string = "") {
if (!ws || ws.readyState !== WebSocket.OPEN) return
messages.value.push({ role: "user", content })
ws.send(JSON.stringify({ type: "message", content }))
ws.send(JSON.stringify({ type: "message", content, model }))
}
function applyCode(code: {