mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
update fal requirements
This commit is contained in:
parent
f4ff1f496b
commit
58d5fa1e4c
1 changed files with 5 additions and 5 deletions
|
|
@ -323,8 +323,8 @@ async def image_generate_tool(
|
|||
raise ValueError("Prompt must be 1000 characters or less")
|
||||
|
||||
# Check API key availability
|
||||
if not os.getenv("FAL_API_KEY"):
|
||||
raise ValueError("FAL_API_KEY environment variable not set")
|
||||
if not os.getenv("FAL_KEY"):
|
||||
raise ValueError("FAL_KEY environment variable not set")
|
||||
|
||||
# Validate parameters
|
||||
validated_params = _validate_parameters(
|
||||
|
|
@ -445,7 +445,7 @@ def check_fal_api_key() -> bool:
|
|||
Returns:
|
||||
bool: True if API key is set, False otherwise
|
||||
"""
|
||||
return bool(os.getenv("FAL_API_KEY"))
|
||||
return bool(os.getenv("FAL_KEY"))
|
||||
|
||||
|
||||
def check_image_generation_requirements() -> bool:
|
||||
|
|
@ -502,8 +502,8 @@ if __name__ == "__main__":
|
|||
api_available = check_fal_api_key()
|
||||
|
||||
if not api_available:
|
||||
print("❌ FAL_API_KEY environment variable not set")
|
||||
print("Please set your API key: export FAL_API_KEY='your-key-here'")
|
||||
print("❌ FAL_KEY environment variable not set")
|
||||
print("Please set your API key: export FAL_KEY='your-key-here'")
|
||||
print("Get API key at: https://fal.ai/")
|
||||
exit(1)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue