Transfer Action usage to ActionNode for subsequent structured reasoning opportunities

- Modifided actions: project_management / design_api / write_prd
This commit is contained in:
geekan 2023-12-14 15:58:05 +08:00
parent 5d7c228539
commit c0bcf57caf
15 changed files with 438 additions and 820 deletions

View file

@ -12,11 +12,12 @@ from metagpt.provider.human_provider import HumanProvider
from metagpt.provider.openai_api import OpenAIGPTAPI
from metagpt.provider.spark_api import SparkAPI
from metagpt.provider.zhipuai_api import ZhiPuAIGPTAPI
from metagpt.provider.base_gpt_api import BaseGPTAPI
_ = HumanProvider() # Avoid pre-commit error
def LLM() -> "BaseGPTAPI":
def LLM() -> BaseGPTAPI:
"""initialize different LLM instance according to the key field existence"""
# TODO a little trick, can use registry to initialize LLM instance further
if CONFIG.openai_api_key: