refine code

This commit is contained in:
geekan 2024-01-09 17:13:22 +08:00
parent b338dfca64
commit ad525acd33
2 changed files with 22 additions and 19 deletions

View file

@ -15,4 +15,5 @@ from metagpt.provider.base_llm import BaseLLM
def LLM(name: Optional[str] = None, provider: LLMType = LLMType.OPENAI) -> BaseLLM:
"""get the default llm provider if name is None"""
# context.use_llm(name=name, provider=provider)
return context.llm(name=name, provider=provider)