Fix some issues around async and tool constraints

This commit is contained in:
teknium 2025-10-07 14:08:46 +00:00
parent 0e2e69a71d
commit 22b6d5866c
3 changed files with 22 additions and 9 deletions

View file

@ -319,9 +319,6 @@ async def image_generate_tool(
if not prompt or not isinstance(prompt, str) or len(prompt.strip()) == 0:
raise ValueError("Prompt is required and must be a non-empty string")
if len(prompt) > 1000:
raise ValueError("Prompt must be 1000 characters or less")
# Check API key availability
if not os.getenv("FAL_KEY"):
raise ValueError("FAL_KEY environment variable not set")