add web terminal demo

This commit is contained in:
yifeng.wang
2025-03-12 23:04:56 +08:00
parent 9c187d989c
commit 02805f864d
3 changed files with 5 additions and 3 deletions

View File

@@ -41,6 +41,7 @@ SCRIPTS = {
"GAIA Roleplaying": "run_gaia_roleplaying.py",
"OpenAI Compatible": "run_openai_compatiable_model.py",
"Ollama": "run_ollama.py",
"Terminal": "run_terminal_zh.py",
}
# 脚本描述
@@ -53,6 +54,7 @@ SCRIPT_DESCRIPTIONS = {
"GAIA Roleplaying": "GAIA基准测试实现用于评估模型能力",
"OpenAI Compatible": "使用兼容OpenAI API的第三方模型支持自定义API端点",
"Ollama": "使用Ollama API",
"Terminal": "使用本地终端执行python文件",
}
# 环境变量分组

View File

@@ -41,6 +41,7 @@ SCRIPTS = {
"GAIA Roleplaying": "run_gaia_roleplaying.py",
"OpenAI Compatible": "run_openai_compatiable_model.py",
"Ollama": "run_ollama.py",
"Terminal": "run_terminal.py",
}
# Script descriptions
@@ -53,6 +54,7 @@ SCRIPT_DESCRIPTIONS = {
"GAIA Roleplaying": "GAIA benchmark implementation, used to evaluate model capabilities",
"OpenAI Compatible": "Uses third-party models compatible with OpenAI API, supports custom API endpoints",
"Ollama": "Uses Ollama API",
"Terminal": "Uses local terminal to execute python files",
}
# Environment variable groups

View File

@@ -106,9 +106,7 @@ def main():
# Example research question
question = f"""打开百度搜索总结一下camel-ai的camel框架的github star、fork数目等并把数字用plot包写成python文件保存到"+{os.path.join
(base_dir, 'final_output')}+"用本地终端执行python文件显示图出来给我"""
# question=f"""Create 'app.log' in the logs directory at '{os.path.join
# (base_dir, 'logs')}' with content: 'INFO: Application started successfully at
# 2024-03-10'"""
# Construct and run the society
society = construct_society(question)
answer, chat_history, token_count = run_society(society)