update example

This commit is contained in:
Wendong
2025-03-10 12:28:38 +08:00
parent 3310223cc0
commit 476ead199d
2 changed files with 12 additions and 2 deletions

View File

@@ -74,6 +74,11 @@ def construct_society(question: str) -> OwlRolePlaying:
model_type=ModelType.GPT_4O,
model_config_dict={"temperature": 0},
),
"document": ModelFactory.create(
model_platform=ModelPlatformType.OPENAI,
model_type=ModelType.GPT_4O,
model_config_dict={"temperature": 0},
),
}
# Configure toolkits
@@ -91,7 +96,7 @@ def construct_society(question: str) -> OwlRolePlaying:
SearchToolkit().search_google, # Comment this out if you don't have google search
SearchToolkit().search_wiki,
*ExcelToolkit().get_tools(),
*DocumentProcessingToolkit().get_tools(),
*DocumentProcessingToolkit(model=models["document"]).get_tools(),
]
# Configure agent roles and parameters

View File

@@ -80,6 +80,11 @@ def construct_society(question: str) -> OwlRolePlaying:
model_type=ModelType.QWEN_VL_MAX,
model_config_dict={"temperature": 0},
),
"document": ModelFactory.create(
model_platform=ModelPlatformType.QWEN,
model_type=ModelType.QWEN_VL_MAX,
model_config_dict={"temperature": 0},
),
}
# Configure toolkits
@@ -97,7 +102,7 @@ def construct_society(question: str) -> OwlRolePlaying:
SearchToolkit().search_google, # Comment this out if you don't have google search
SearchToolkit().search_wiki,
*ExcelToolkit().get_tools(),
*DocumentProcessingToolkit().get_tools(),
*DocumentProcessingToolkit(model=models["document"]).get_tools(),
]
# Configure agent roles and parameters