Fix some issues around async and tool constraints
This commit is contained in:
parent
0e2e69a71d
commit
22b6d5866c
3 changed files with 22 additions and 9 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue