mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-08 15:22:38 +02:00
修改内容:
调整llm引用模式 添加对星火大模型的支持 在模型报错时可以人工输入 可以通过config直接全人工输入
This commit is contained in:
parent
206bc252de
commit
6046f9c942
18 changed files with 277 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue