Skip to content

Commit a071cb0

Browse files
committed
Disable prediction preview for AI Horde backend
1 parent 8b992dd commit a071cb0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mikupad.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -6211,10 +6211,11 @@
62116211

62126212
// predicts the prompt preview
62136213
useEffect(() => {
6214-
if (fimPromptInfo !== undefined || cancel || !showPromptPreview)
6215-
return;
6214+
if (promptPreviewChunks.length)
6215+
setPromptPreviewChunks([]);
62166216

6217-
setPromptPreviewChunks([]);
6217+
if (fimPromptInfo !== undefined || cancel || !showPromptPreview || endpointAPI == API_AI_HORDE)
6218+
return;
62186219

62196220
const ac = new AbortController();
62206221
const to = setTimeout(async () => {

0 commit comments

Comments
 (0)