update run readme and moudle import

This commit is contained in:
yifeng.wang
2025-03-13 12:39:08 +08:00
parent fd2617ca73
commit e31c39f9d8
12 changed files with 19 additions and 19 deletions

View File

@@ -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:

View File

@@ -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` 脚本来运行自己的任务:

View File

@@ -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()

View File

@@ -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

View File

@@ -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")

View File

@@ -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")

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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")

View File

@@ -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")