From e31c39f9d880e0c55beac5bb84b04be9f568711a Mon Sep 17 00:00:00 2001 From: "yifeng.wang" <3038880699@qq.com> Date: Thu, 13 Mar 2025 12:39:08 +0800 Subject: [PATCH] update run readme and moudle import --- README.md | 10 +++++----- README_zh.md | 8 ++++---- owl/examples/run.py | 2 +- owl/examples/run_deepseek_zh.py | 2 +- owl/examples/run_gaia_roleplaying.py | 2 +- owl/examples/run_mini.py | 2 +- owl/examples/run_ollama.py | 2 +- owl/examples/run_openai_compatiable_model.py | 2 +- owl/examples/run_qwen_mini_zh.py | 2 +- owl/examples/run_qwen_zh.py | 2 +- owl/examples/run_terminal.py | 2 +- owl/examples/run_terminal_zh.py | 2 +- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 23e8a28..5928184 100644 --- a/README.md +++ b/README.md @@ -299,22 +299,22 @@ OWL supports various LLM backends, though capabilities may vary depending on the ```bash # Run with Qwen model -python owl/run_qwen_zh.py +python owl/examples/run_qwen_zh.py # Run with Deepseek model -python owl/run_deepseek_zh.py +python owl/examples/run_deepseek_zh.py # Run with other OpenAI-compatible models -python owl/run_openai_compatiable_model.py +python owl/examples/run_openai_compatiable_model.py # Run with Ollama -python owl/run_ollama.py +python owl/examples/run_ollama.py ``` For a simpler version that only requires an LLM API key, you can try our minimal example: ```bash -python owl/run_mini.py +python owl/examples/run_mini.py ``` You can run OWL agent with your own task by modifying the `run.py` script: diff --git a/README_zh.md b/README_zh.md index fb19750..3885736 100644 --- a/README_zh.md +++ b/README_zh.md @@ -303,16 +303,16 @@ OWL 支持多种 LLM 后端,但功能可能因模型的工具调用和多模 ```bash # 使用 Qwen 模型运行 -python owl/run_qwen_zh.py +python owl/examples/run_qwen_zh.py # 使用 Deepseek 模型运行 -python owl/run_deepseek_zh.py +python owl/examples/run_deepseek_zh.py # 使用其他 OpenAI 兼容模型运行 -python owl/run_openai_compatiable_model.py +python owl/examples/run_openai_compatiable_model.py # 使用 Ollama 运行 -python owl/run_ollama.py +python owl/examples/run_ollama.py ``` 你可以通过修改 `run.py` 脚本来运行自己的任务: diff --git a/owl/examples/run.py b/owl/examples/run.py index 2d562ea..9f1cb32 100644 --- a/owl/examples/run.py +++ b/owl/examples/run.py @@ -26,7 +26,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType from camel.logger import set_log_level -from utils import OwlRolePlaying, run_society, DocumentProcessingToolkit +from owl.utils import OwlRolePlaying, run_society, DocumentProcessingToolkit load_dotenv() diff --git a/owl/examples/run_deepseek_zh.py b/owl/examples/run_deepseek_zh.py index 52b4c34..f109722 100644 --- a/owl/examples/run_deepseek_zh.py +++ b/owl/examples/run_deepseek_zh.py @@ -31,7 +31,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType -from utils import OwlRolePlaying, run_society, DocumentProcessingToolkit +from owl.utils import OwlRolePlaying, run_society, DocumentProcessingToolkit from camel.logger import set_log_level diff --git a/owl/examples/run_gaia_roleplaying.py b/owl/examples/run_gaia_roleplaying.py index ff4b90b..d08c669 100644 --- a/owl/examples/run_gaia_roleplaying.py +++ b/owl/examples/run_gaia_roleplaying.py @@ -32,7 +32,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType from camel.configs import ChatGPTConfig -from utils import GAIABenchmark +from owl.utils import GAIABenchmark from camel.logger import set_log_level set_log_level(level="DEBUG") diff --git a/owl/examples/run_mini.py b/owl/examples/run_mini.py index a20849e..59fac6e 100644 --- a/owl/examples/run_mini.py +++ b/owl/examples/run_mini.py @@ -22,7 +22,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType from camel.logger import set_log_level -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society load_dotenv() set_log_level(level="DEBUG") diff --git a/owl/examples/run_ollama.py b/owl/examples/run_ollama.py index 55f1b8a..8da8a64 100644 --- a/owl/examples/run_ollama.py +++ b/owl/examples/run_ollama.py @@ -25,7 +25,7 @@ from camel.toolkits import ( ) from camel.types import ModelPlatformType -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society from camel.logger import set_log_level diff --git a/owl/examples/run_openai_compatiable_model.py b/owl/examples/run_openai_compatiable_model.py index fd271ce..029059b 100644 --- a/owl/examples/run_openai_compatiable_model.py +++ b/owl/examples/run_openai_compatiable_model.py @@ -25,7 +25,7 @@ from camel.toolkits import ( ) from camel.types import ModelPlatformType -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society from camel.logger import set_log_level diff --git a/owl/examples/run_qwen_mini_zh.py b/owl/examples/run_qwen_mini_zh.py index d602315..f6782ee 100644 --- a/owl/examples/run_qwen_mini_zh.py +++ b/owl/examples/run_qwen_mini_zh.py @@ -22,7 +22,7 @@ from camel.models import ModelFactory from camel.toolkits import BrowserToolkit, SearchToolkit, FileWriteToolkit from camel.types import ModelPlatformType, ModelType -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society from camel.logger import set_log_level diff --git a/owl/examples/run_qwen_zh.py b/owl/examples/run_qwen_zh.py index dceb851..e7c36df 100644 --- a/owl/examples/run_qwen_zh.py +++ b/owl/examples/run_qwen_zh.py @@ -29,7 +29,7 @@ from camel.toolkits import ( ) from camel.types import ModelPlatformType, ModelType -from utils import OwlRolePlaying, run_society, DocumentProcessingToolkit +from owl.utils import OwlRolePlaying, run_society, DocumentProcessingToolkit from camel.logger import set_log_level diff --git a/owl/examples/run_terminal.py b/owl/examples/run_terminal.py index 3741a7e..576f29c 100644 --- a/owl/examples/run_terminal.py +++ b/owl/examples/run_terminal.py @@ -23,7 +23,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType from camel.logger import set_log_level -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society load_dotenv() set_log_level(level="DEBUG") diff --git a/owl/examples/run_terminal_zh.py b/owl/examples/run_terminal_zh.py index 2582c24..946a0ed 100644 --- a/owl/examples/run_terminal_zh.py +++ b/owl/examples/run_terminal_zh.py @@ -23,7 +23,7 @@ from camel.toolkits import ( from camel.types import ModelPlatformType, ModelType from camel.logger import set_log_level -from utils import OwlRolePlaying, run_society +from owl.utils import OwlRolePlaying, run_society load_dotenv() set_log_level(level="DEBUG")