We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a255de commit 2a2b236Copy full SHA for 2a2b236
pcweb/pages/landing/views/hero.py
@@ -40,6 +40,10 @@ class SubmitPromptState(rx.State):
40
@rx.event(background=True, temporal=True)
41
async def redirect_to_ai_builder(self, form_data: dict):
42
if prompt := form_data.get("prompt"):
43
+ if len(prompt) < 5:
44
+ return rx.toast.warning(
45
+ "Your prompt needs at least 5 characters. Please add more details.",
46
+ )
47
random_uuid = uuid.uuid4()
48
async with httpx.AsyncClient() as client:
49
response = await client.post(
0 commit comments