OpenAI-compatible adapter for ComfyUI image generation and editing

This commit is contained in:
Shaman
2026-10-04 21:56:00 +03:00
commit c17ab5036e
29 changed files with 1730 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import httpx
async def test_models_list(client: httpx.AsyncClient):
r = await client.get("/v1/models")
assert r.status_code == 200
body = r.json()
assert body["object"] == "list"
ids = [m["id"] for m in body["data"]]
assert ids == ["z-image-turbo", "qwen-image-edit"]
assert all(m["object"] == "model" for m in body["data"])