Skip to content

Commit

Permalink
Disable prediction preview for AI Horde backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lmg-anon committed Dec 22, 2024
1 parent 8b992dd commit a071cb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -6211,10 +6211,11 @@

// predicts the prompt preview
useEffect(() => {
if (fimPromptInfo !== undefined || cancel || !showPromptPreview)
return;
if (promptPreviewChunks.length)
setPromptPreviewChunks([]);

setPromptPreviewChunks([]);
if (fimPromptInfo !== undefined || cancel || !showPromptPreview || endpointAPI == API_AI_HORDE)
return;

const ac = new AbortController();
const to = setTimeout(async () => {
Expand Down

0 comments on commit a071cb0

Please sign in to comment.