mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 02:46:24 +02:00
update:Modify based on comments
This commit is contained in:
parent
0bf0ab2917
commit
ebb5ec9c0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue