mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Removed unused file_id param from open_ai_conversation request (#143878)
This commit is contained in:
parent
010b044379
commit
7d163aa659
@ -140,7 +140,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
content.append(
|
||||
ResponseInputImageParam(
|
||||
type="input_image",
|
||||
file_id=filename,
|
||||
image_url=f"data:{mime_type};base64,{base64_file}",
|
||||
detail="auto",
|
||||
)
|
||||
|
@ -324,7 +324,6 @@ async def test_init_error(
|
||||
"type": "input_image",
|
||||
"image_url": "data:image/jpeg;base64,BASE64IMAGE1",
|
||||
"detail": "auto",
|
||||
"file_id": "/a/b/c.jpg",
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -349,13 +348,11 @@ async def test_init_error(
|
||||
"type": "input_image",
|
||||
"image_url": "data:image/jpeg;base64,BASE64IMAGE1",
|
||||
"detail": "auto",
|
||||
"file_id": "/a/b/c.jpg",
|
||||
},
|
||||
{
|
||||
"type": "input_image",
|
||||
"image_url": "data:image/jpeg;base64,BASE64IMAGE2",
|
||||
"detail": "auto",
|
||||
"file_id": "d/e/f.jpg",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user