add list models

This commit is contained in:
Owl 2025-03-14 21:05:29 +07:00
parent ff75b18c24
commit adae98a7b0

View File

@ -92,7 +92,7 @@ async def enqueue_prompt_t2i(args: dict):
async def list_models(): async def list_models():
url = f"https://{IMAGE_GENERATOR_API_HOST}/prompting/txt2img/" url = f"https://{IMAGE_GENERATOR_API_HOST}/prompting/list_models/"
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
headers = {"Authorization": headers = {"Authorization":
"Bearer " + IMAGE_GENERATOR_TOKEN "Bearer " + IMAGE_GENERATOR_TOKEN