按照要求修改

This commit is contained in:
zhouzinimg 2023-10-16 22:53:28 +08:00
parent e2af76fb08
commit f3c7da32a0
41 changed files with 342 additions and 944 deletions

View file

@ -9,10 +9,10 @@
```python
from typing import Optional
from abc import ABC
import metagpt.llm as LLM # 大语言模型,类似GPT
from metagpt.llm import LLM # Large language model, similar to GPT
n
class Action(ABC):
def __init__(self, name='', context=None, llm: llm=LLM.DEFAULT_LLM):
def __init__(self, name='', context=None, llm: LLM = LLM()):
self.name = name
self.llm = llm
self.context = context