Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Merge branch 'dev' of https://github.com/geekan/MetaGPT into geekan/dev

莘权 马dce4696f1743
diff --cc metagpt/tools/openai_text_to_image.py
index fcfa86c7d,b76385b13..bd6078245
--- a/metagpt/tools/openai_text_to_image.py
+++ b/metagpt/tools/openai_text_to_image.py
@@@ -20,11 -23,8 +20,7 @@@ class OpenAIText2Image
:param openai_api_key: OpenAI API key, For more details, checkout: `https://platform.openai.com/account/api-keys`
"""
self._llm = LLM()
- self._client = self._llm.async_client
- def __del__(self):
- if self._llm:
- self._llm.close()
-
async def text_2_image(self, text, size_type="1024x1024"):
"""Text to image