Skip to content

Commit

Permalink
fix bug for no media (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird authored Jul 12, 2024
1 parent e7b3181 commit 0d5b843
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,15 @@ def chat_with_workflow(
int_chat = cast(
List[Message],
[
{"role": c["role"], "content": c["content"], "media": c["media"]}
(
{
"role": c["role"],
"content": c["content"],
"media": c["media"],
}
if "media" in c
else {"role": c["role"], "content": c["content"]}
)
for c in chat
],
)
Expand Down

0 comments on commit 0d5b843

Please sign in to comment.