Skip to content

Commit

Permalink
Merge pull request exo-explore#22 from risingsunomi/pr139-dev-oct24
Browse files Browse the repository at this point in the history
fixing chatgpt_api mistake
  • Loading branch information
risingsunomi authored Oct 11, 2024
2 parents 79c9e70 + 9ecbf0c commit ebfd44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exo/api/chatgpt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def build_prompt(tokenizer, _messages: List[Message]):
continue

for content in message.content:
# note: wae only support one image at time right now. Multiple is possible. See: https://github.com/huggingface/transformers/blob/e68ec18ce224af879f22d904c7505a765fb77de3/docs/source/en/model_doc/llava.md?plain=1#L41
# note: we only support one image at a time right now. Multiple is possible. See: https://github.com/huggingface/transformers/blob/e68ec18ce224af879f22d904c7505a765fb77de3/docs/source/en/model_doc/llava.md?plain=1#L41
# follows the convention in https://platform.openai.com/docs/guides/vision
if isinstance(content, dict) and content.get("type", None) == "image":
image_str = content.get("image", None)
Expand Down

0 comments on commit ebfd44a

Please sign in to comment.