Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Aug 28, 2024
1 parent bf8de9c commit 19d31c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vision_agent/agent/vision_agent_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,12 @@ 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)
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 19d31c9

Please sign in to comment.