OpenAI-compatible adapter for ComfyUI image generation and editing
This commit is contained in:
@@ -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"])
|
||||
Reference in New Issue
Block a user