Removed unused file_id param from open_ai_conversation request (#143878)

This commit is contained in:
Seweryn Zeman 2025-05-11 20:33:17 +02:00 committed by Franck Nijhof
parent 010b044379
commit 7d163aa659
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952
2 changed files with 0 additions and 4 deletions

View File

@ -140,7 +140,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
content.append( content.append(
ResponseInputImageParam( ResponseInputImageParam(
type="input_image", type="input_image",
file_id=filename,
image_url=f"data:{mime_type};base64,{base64_file}", image_url=f"data:{mime_type};base64,{base64_file}",
detail="auto", detail="auto",
) )

View File

@ -324,7 +324,6 @@ async def test_init_error(
"type": "input_image", "type": "input_image",
"image_url": "data:image/jpeg;base64,BASE64IMAGE1", "image_url": "data:image/jpeg;base64,BASE64IMAGE1",
"detail": "auto", "detail": "auto",
"file_id": "/a/b/c.jpg",
}, },
], ],
}, },
@ -349,13 +348,11 @@ async def test_init_error(
"type": "input_image", "type": "input_image",
"image_url": "data:image/jpeg;base64,BASE64IMAGE1", "image_url": "data:image/jpeg;base64,BASE64IMAGE1",
"detail": "auto", "detail": "auto",
"file_id": "/a/b/c.jpg",
}, },
{ {
"type": "input_image", "type": "input_image",
"image_url": "data:image/jpeg;base64,BASE64IMAGE2", "image_url": "data:image/jpeg;base64,BASE64IMAGE2",
"detail": "auto", "detail": "auto",
"file_id": "d/e/f.jpg",
}, },
], ],
}, },