fix: parse nested image generation tasks
This commit is contained in:
@@ -872,10 +872,13 @@ async def test_image_generation(values: dict[str, Any], model_id: str) -> Runtim
|
||||
)
|
||||
output = _find_generated_image(result)
|
||||
if not output:
|
||||
from app.integrations.openai_compatible import safe_response_diagnostic
|
||||
|
||||
return RuntimeSettingsTestResult(
|
||||
target=target,
|
||||
ok=False,
|
||||
message="请求已结束,但响应中没有找到图片地址或图片数据。",
|
||||
message="平台请求已结束,但返回体中没有找到可识别的任务 ID、图片地址或图片数据。",
|
||||
details={"response_diagnostic": safe_response_diagnostic(result)},
|
||||
)
|
||||
verification = await _verify_generated_image(output)
|
||||
details = {
|
||||
|
||||
Reference in New Issue
Block a user