mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
simplify code
This commit is contained in:
parent
e7cd90f7f8
commit
df728a034e
1 changed files with 1 additions and 4 deletions
|
|
@ -262,9 +262,6 @@ class OpenAILLM(BaseLLM):
|
|||
)
|
||||
imgs = []
|
||||
for item in res.data:
|
||||
if resp_format == "url":
|
||||
img_url_or_b64 = item.url
|
||||
else:
|
||||
img_url_or_b64 = item.b64_json
|
||||
img_url_or_b64 = item.url if resp_format == "url" else item.b64_json
|
||||
imgs.append(decode_image(img_url_or_b64))
|
||||
return imgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue