Доработка управления моделями
This commit is contained in:
@@ -89,6 +89,11 @@ async def test_unknown_model_400(client):
|
||||
await _assert_400(await client.post(GEN, json={"prompt": "x", "model": "dall-e-3"}))
|
||||
|
||||
|
||||
async def test_incompatible_model_400(client):
|
||||
# qwen-image-edit declares {image}, which generations cannot supply
|
||||
await _assert_400(await client.post(GEN, json={"prompt": "x", "model": "qwen-image-edit"}))
|
||||
|
||||
|
||||
async def test_bad_json_400(client):
|
||||
await _assert_400(await client.post(GEN, content=b"{not json", headers={"Content-Type": "application/json"}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user