mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
Transfer Action usage to ActionNode for subsequent structured reasoning opportunities
- Modifided actions: project_management / design_api / write_prd
This commit is contained in:
parent
5d7c228539
commit
c0bcf57caf
15 changed files with 438 additions and 820 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue