diff --git a/src/photo/ai/useAiImageQuery.ts b/src/photo/ai/useAiImageQuery.ts index fcb8e10e..311d20dc 100644 --- a/src/photo/ai/useAiImageQuery.ts +++ b/src/photo/ai/useAiImageQuery.ts @@ -38,7 +38,7 @@ export default function useAiImageQuery( }, []); // Withhold streaming text if it's a null response - const isTextError = text.toLocaleLowerCase().startsWith('sorry'); + const isTextError = /^(I'*m )*sorry/i.test(text); return [ request,