INNER CODE UNIT · TypeScript

retryAfterAuth

Jazee6/cloudflare-ai-web · hooks/use-image.ts:208

  const retryAfterAuth = async () => {
    if (lastPromptRef.current) {
      await sendPrompt(lastPromptRef.current, { isRegenerate: true });
    }
  };

  return {
    status,
    sendPrompt,
    messages,
    regenerate,
    retryAfterAuth,
  };
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…