remove HTML experiment (#335)

This commit is contained in:
LawyZheng
2024-05-17 11:39:46 +08:00
committed by GitHub
parent 2466897158
commit 2e86b41beb

View File

@@ -676,13 +676,8 @@ class ForgeAgent:
LOG.info("Using Claude3 Sonnet prompt template for action extraction")
prompt_template = "extract-action-claude3-sonnet"
element_tree_format = ElementTreeFormat.JSON
if app.EXPERIMENTATION_PROVIDER.is_feature_enabled_cached(
"USE_HTML_ELEMENT_TREE",
task.workflow_run_id or task.task_id,
properties={"organization_id": task.organization_id},
):
element_tree_format = ElementTreeFormat.HTML
# TODO: we only use HTML element for now, introduce a way to swith in the future
element_tree_format = ElementTreeFormat.HTML
LOG.info(
"Building element tree",
task_id=task.task_id,