Skip to content

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

update:Modify based on comments

zhangleiebb5ec9c0a84
diff --git a/metagpt/provider/openai_api.py b/metagpt/provider/openai_api.py
index 26dcc65c5..624388d35 100644
--- a/metagpt/provider/openai_api.py
+++ b/metagpt/provider/openai_api.py
@@ -304,7 +304,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
rsp = self._moderation(content=content)
return rsp
except Exception as e:
- logger.error("moderating failed!", e)
+ logger.error(f"moderating failed:{e}")
def _moderation(self, content: Union[str]):
rsp = self.llm.Moderation.create(input=content)