mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
modify reproduce function
This commit is contained in:
parent
38c825d04c
commit
95bed6e8e8
6 changed files with 72 additions and 0 deletions
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(current_path))))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
|
|
@ -3,6 +3,18 @@
|
|||
# @Author : didi
|
||||
# @Desc : Entrance of AFlow.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def setup_environment():
|
||||
current_path = os.path.abspath(__file__)
|
||||
root_path = os.path.dirname(os.path.dirname(os.path.dirname(current_path)))
|
||||
sys.path.insert(0, root_path)
|
||||
os.chdir(root_path)
|
||||
|
||||
|
||||
setup_environment()
|
||||
|
||||
from metagpt.configs.models_config import ModelsConfig
|
||||
from metagpt.ext.aflow.scripts.optimizer import DatasetType, Optimizer, QuestionType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue