修改内容:

调整llm引用模式
添加对星火大模型的支持
在模型报错时可以人工输入
可以通过config直接全人工输入
This commit is contained in:
ziming 2023-09-05 21:52:13 +08:00
parent 206bc252de
commit 6046f9c942
18 changed files with 277 additions and 29 deletions

View file

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