mirror of
https://github.com/voideditor/void
synced 2026-05-23 01:18:25 +00:00
fix double cancel
This commit is contained in:
parent
d9f2fcd700
commit
e424a2cdbd
3 changed files with 0 additions and 8 deletions
|
|
@ -1097,7 +1097,6 @@ We only need to do it for files that were edited since `from`, ie files between
|
|||
|
||||
// interrupt existing stream
|
||||
if (this.streamState[threadId]?.isRunning) {
|
||||
console.log('stopping....')
|
||||
await this.abortRunning(threadId)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -314,11 +314,6 @@ export const VoidChatArea: React.FC<VoidChatAreaProps> = ({
|
|||
onClick={(e) => {
|
||||
onClickAnywhere?.()
|
||||
}}
|
||||
onKeyDown={(e: React.KeyboardEvent) => {
|
||||
if (e.key === 'Escape' && isStreaming && onAbort) {
|
||||
onAbort();
|
||||
}
|
||||
}}
|
||||
>
|
||||
{/* Selections section */}
|
||||
{showSelections && selections && setSelections && (
|
||||
|
|
|
|||
|
|
@ -667,8 +667,6 @@ const sendGeminiChat = async ({
|
|||
chatMode,
|
||||
}: SendChatParams_Internal) => {
|
||||
|
||||
console.log('MESSAGES', JSON.stringify(messages, null, 2))
|
||||
|
||||
if (providerName !== 'gemini') throw new Error(`Sending Gemini chat, but provider was ${providerName}`)
|
||||
|
||||
const thisConfig = settingsOfProvider[providerName]
|
||||
|
|
|
|||
Loading…
Reference in a new issue