fixbug: LLM()

This commit is contained in:
莘权 马 2023-09-07 12:44:49 +08:00
parent c7bc975cf2
commit 2324c1c6dc

View file

@ -41,6 +41,6 @@ async def ai_func(prompt):
class LLMFactory:
@staticmethod
async def new_llm() -> object:
def new_llm() -> object:
llm = OpenAI_LLM() if CONFIG.LLM_TYPE == LLMType.OPENAI.value else MetaGPT_LLM()
return llm