Merge pull request #3516 from continuedev/tomasz/fix-empty-message

Fix empty message
This commit is contained in:
Tomasz Stefaniak 2024-12-23 15:23:53 -08:00 • committed by GitHub
commit 6294253ab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,9 @@
import { createAsyncThunk } from "@reduxjs/toolkit";
import { abortStream, setInactive } from "../slices/sessionSlice";
import {
abortStream,
clearLastEmptyResponse,
setInactive,
} from "../slices/sessionSlice";
import { ThunkApiType } from "../store";
export const cancelStream = createAsyncThunk<void, undefined, ThunkApiType>(
@ -10,6 +14,6 @@ export const cancelStream = createAsyncThunk<void, undefined, ThunkApiType>(
// If the assistant message is empty, then remove it and the user message, placing the user input in the main text box
// TODO: Waiting until next release
// dispatch(clearLastEmptyResponse());
dispatch(clearLastEmptyResponse());
},
);