Skip to content

Commit

Permalink
fix: fixed mistyped path to image_url detail (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik authored Nov 5, 2024
1 parent 83b9dd2 commit ff993da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aidial_adapter_openai/gpt4_multi_modal/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def download_content_images(

for content_part in content:
if image_url := content_part.get("image_url", {}).get("url"):
image_detail = content_part.get("detail")
image_detail = content_part.get("image_url", {}).get("detail")
if image_detail not in [None, "auto", "low", "high"]:
raise ValidationError("Unexpected image detail")

Expand Down

0 comments on commit ff993da

Please sign in to comment.