change prompting

This commit is contained in:
Owl 2025-03-07 00:04:31 +07:00
parent aa1fb245f5
commit a6355c5904

View File

@ -26,7 +26,7 @@ scheduled_prompts: dict = {}
async def ws_task(): async def ws_task():
ws_url = f"wss://{IMAGE_GENERATOR_API_HOST}/ws?token={IMAGE_GENERATOR_TOKEN}" ws_url = f"wss://{IMAGE_GENERATOR_API_HOST}/system/ws?token={IMAGE_GENERATOR_TOKEN}"
retry_delay = 1 # Initial delay (1s), will increase with backoff retry_delay = 1 # Initial delay (1s), will increase with backoff
while True: while True:
@ -74,7 +74,7 @@ thread.start()
async def enqueue_prompt_t2i(args: dict): async def enqueue_prompt_t2i(args: dict):
url = f"https://{IMAGE_GENERATOR_API_HOST}/prompt/generic/txt2img/" url = f"https://{IMAGE_GENERATOR_API_HOST}/prompting/txt2img/"
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
headers = {"Authorization": headers = {"Authorization":
"Bearer " + IMAGE_GENERATOR_TOKEN "Bearer " + IMAGE_GENERATOR_TOKEN