mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Removed unused file_id param from open_ai_conversation request (#143878)
This commit is contained in:
parent
8840970d64
commit
494c7aa3da
@ -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",
|
||||||
)
|
)
|
||||||
|
@ -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",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user