mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
fixbug: unit test
This commit is contained in:
parent
251352e802
commit
1523a0df81
19 changed files with 152 additions and 82 deletions
|
|
@ -30,8 +30,8 @@ async def text_to_image(text, size_type: str = "512x512", model_url="", config:
|
|||
|
||||
if model_url:
|
||||
binary_data = await oas3_metagpt_text_to_image(text, size_type, model_url)
|
||||
elif oai_llm := config.get_openai_llm():
|
||||
binary_data = await oas3_openai_text_to_image(text, size_type, LLM(oai_llm))
|
||||
elif config.get_openai_llm():
|
||||
binary_data = await oas3_openai_text_to_image(text, size_type, LLM())
|
||||
else:
|
||||
raise ValueError("Missing necessary parameters.")
|
||||
base64_data = base64.b64encode(binary_data).decode("utf-8")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue