mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
commit
20db85bfa6
2 changed files with 15 additions and 0 deletions
|
|
@ -235,3 +235,7 @@ class OpenAILLM(BaseLLM):
|
|||
async def amoderation(self, content: Union[str, list[str]]):
|
||||
"""Moderate content."""
|
||||
return await self.aclient.moderations.create(input=content)
|
||||
|
||||
async def atext_to_speech(self, **kwargs):
|
||||
"""text to speech"""
|
||||
return await self.aclient.audio.speech.create(**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue