MCPcopy Create free account
hub / github.com/pollinations/pollinations / stopGeneration

Function stopGeneration

apps/chat/src/utils/api.js:495–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493};
494
495export const stopGeneration = () => {
496 if (abortController) {
497 abortController.abort();
498 abortController = null;
499 }
500};
501
502export const generateImage = async (prompt, options = {}) => {
503 const {

Callers 1

AppFunction · 0.90

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected