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 7f36f6a commit 635c51a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vision_agent/lmm/lmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ def chat(
{
"type": "image_url",
"image_url": {
"url": encoded_media
if encoded_media.startswith(("http", "https"))
else f"data:image/png;base64,{encoded_media}",
"url": (
encoded_media
if encoded_media.startswith(("http", "https"))
else f"data:image/png;base64,{encoded_media}"
),
"detail": "low",
},
},
Expand Down

0 comments on commit 635c51a

Please sign in to comment.