change model
This commit is contained in:
1 parent
f16104b011
commit
91e1b2b48b
3 files changed
+20
-7
No files matched your search
+2
-2
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user