(fix:agentPreview) build err

This commit is contained in:
ManishMadan2882
2025-08-06 02:55:39 +05:30
parent ba260e3382
commit ae116b0d0d

View File

@@ -57,12 +57,11 @@ export const fetchPreviewAnswer = createAsyncThunk<
signal,
state.preference.token,
state.preference.selectedDocs!,
state.agentPreview.queries,
null, // No conversation ID for previews
state.preference.prompt.id,
state.preference.chunks,
state.preference.token_limit,
(event) => {
(event: MessageEvent) => {
const data = JSON.parse(event.data);
const targetIndex = indx ?? state.agentPreview.queries.length - 1;
@@ -118,7 +117,6 @@ export const fetchPreviewAnswer = createAsyncThunk<
signal,
state.preference.token,
state.preference.selectedDocs!,
state.agentPreview.queries,
null, // No conversation ID for previews
state.preference.prompt.id,
state.preference.chunks,