Skip to content

Commit

Permalink
backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Aug 28, 2024
1 parent 635c51a commit bf8de9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vision_agent/agent/vision_agent_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ def chat_with_workflow(
for chat_i in chat:
if "media" in chat_i:
for media in chat_i["media"]:
media = media if type(media) is str and media.startswith(("http", "https")) else code_interpreter.upload_file(media)
chat_i["content"] += f" Media name {media}" # type: ignore
media_list.append(media)

Expand Down

0 comments on commit bf8de9c

Please sign in to comment.