From 9669ea7b51f5d0b479eba658c2b33b83cf8c56c5 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Fri, 29 Mar 2024 20:50:20 +0400 Subject: [PATCH] fix: decrease min body length for AI text to speech --- src/lib/ai/textToSpeech.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ai/textToSpeech.ts b/src/lib/ai/textToSpeech.ts index 9ebb894..afdf091 100644 --- a/src/lib/ai/textToSpeech.ts +++ b/src/lib/ai/textToSpeech.ts @@ -4,7 +4,7 @@ import Cache from '../cache'; import { fetchProposal, Proposal } from '../../helpers/snapshot'; import { IStorage } from '../storage/types'; -const MIN_BODY_LENGTH = 500; +const MIN_BODY_LENGTH = 1; const MAX_BODY_LENGTH = 4096; export default class TextToSpeech extends Cache {