From 82b4be51bdd69000cc1ace7b7140c6c5f2e07ab9 Mon Sep 17 00:00:00 2001 From: usamimeri_renko <1710269958@qq.com> Date: Mon, 13 May 2024 15:00:22 +0800 Subject: [PATCH] fix schema bug --- metagpt/provider/base_llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/provider/base_llm.py b/metagpt/provider/base_llm.py index 6387e3936..e554f7767 100644 --- a/metagpt/provider/base_llm.py +++ b/metagpt/provider/base_llm.py @@ -65,7 +65,7 @@ class BaseLLM(ABC): # image url or image base64 url = image if image.startswith("http") else f"data:image/jpeg;base64,{image}" # it can with multiple-image inputs - content.append({"type": "image_url", "image_url": url}) + content.append({"type": "image_url", "image_url": {"url": url}}) return {"role": "user", "content": content} def _assistant_msg(self, msg: str) -> dict[str, str]: