(nextPrompt = input)
| 456 | }) |
| 457 | |
| 458 | async function send(nextPrompt = input) { |
| 459 | const next = nextPrompt.trim() |
| 460 | if (!next || isLoading) return |
| 461 | setInput('') |
| 462 | await sendMessage(next) |
| 463 | } |
| 464 | |
| 465 | async function reloadLast() { |
| 466 | if (isLoading || messages.length === 0) return |