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

This commit is contained in:
xuyue committed 2026-03-31 05:50:33 -06:00
1 parent f16104b011
commit 91e1b2b48b
3 files changed
+20 -7

No files matched your search

+2 -2
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: {