mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
add web terminal demo
This commit is contained in:
@@ -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文件",
|
||||
}
|
||||
|
||||
# 环境变量分组
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user