fix(server): add empty string parameter to create_prompt_with_random_model call

This commit is contained in:
Karl 2025-09-19 22:17:39 +01:00
parent 086695d898
commit d0ce0d6cd8

View File

@ -48,7 +48,7 @@ def scheduled_task():
print(f"Executing scheduled task at {time.strftime('%Y-%m-%d %H:%M:%S')}")
# Generate a random prompt using either OpenWebUI or OpenRouter
from libs.generic import create_prompt_with_random_model
prompt = create_prompt_with_random_model("Generate a random detailed prompt for stable diffusion.")
prompt = create_prompt_with_random_model("Generate a random detailed prompt for stable diffusion.", "")
if prompt:
# Select a random model
import random