From 9ecbf0c0f138950b5adb0839cb8a5e948dc10897 Mon Sep 17 00:00:00 2001 From: risingsunomi Date: Thu, 10 Oct 2024 17:48:40 -0800 Subject: [PATCH] fixing chatgpt_api mistake --- exo/api/chatgpt_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exo/api/chatgpt_api.py b/exo/api/chatgpt_api.py index befc1b43a..7b7be502d 100644 --- a/exo/api/chatgpt_api.py +++ b/exo/api/chatgpt_api.py @@ -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)