mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
feat: update model version in example cases
This commit is contained in:
@@ -176,7 +176,7 @@ def construct_workforce() -> Workforce:
|
||||
coordinator_agent_kwargs = {
|
||||
"model": ModelFactory.create(
|
||||
model_platform=ModelPlatformType.OPENAI,
|
||||
model_type=ModelType.GPT_4O,
|
||||
model_type=ModelType.GPT_5_2,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
}
|
||||
@@ -184,7 +184,7 @@ def construct_workforce() -> Workforce:
|
||||
task_agent_kwargs = {
|
||||
"model": ModelFactory.create(
|
||||
model_platform=ModelPlatformType.OPENAI,
|
||||
model_type=ModelType.GPT_4O,
|
||||
model_type=ModelType.GPT_5_2,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -58,37 +58,37 @@ def construct_agent_list() -> List[Dict[str, Any]]:
|
||||
|
||||
web_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
document_processing_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
reasoning_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
image_analysis_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
browsing_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
planning_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
|
||||
@@ -185,7 +185,7 @@ def construct_workforce() -> Workforce:
|
||||
coordinator_agent_kwargs = {
|
||||
"model": ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
}
|
||||
@@ -193,7 +193,7 @@ def construct_workforce() -> Workforce:
|
||||
task_agent_kwargs = {
|
||||
"model": ModelFactory.create(
|
||||
model_platform=ModelPlatformType.ANTHROPIC,
|
||||
model_type=ModelType.CLAUDE_3_7_SONNET,
|
||||
model_type=ModelType.CLAUDE_OPUS_4_6,
|
||||
model_config_dict={"temperature": 0},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ def construct_agent_list() -> List[Dict[str, Any]]:
|
||||
# Get configuration from environment variables
|
||||
api_url = os.getenv("VLLM_API_URL", "http://localhost:8000/v1")
|
||||
api_key = os.getenv("VLLM_API_KEY", None)
|
||||
model_name = os.getenv("VLLM_MODEL_NAME", "meta-llama/Llama-2-7b-chat-hf")
|
||||
model_name = os.getenv("VLLM_MODEL_NAME", "meta-llama/Llama-3.1-8B-Instruct")
|
||||
|
||||
web_model = ModelFactory.create(
|
||||
model_platform=ModelPlatformType.OPENAI_COMPATIBLE_MODEL,
|
||||
|
||||
Reference in New Issue
Block a user