From 6fc43a4593f32b40c787a833dfa71505018c58a7 Mon Sep 17 00:00:00 2001 From: Steve Androulakis Date: Tue, 25 Feb 2025 08:23:09 -0600 Subject: [PATCH] rollback to claude sonnet 3.5 and slight timeout changes --- activities/tool_activities.py | 2 +- workflows/workflow_helpers.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activities/tool_activities.py b/activities/tool_activities.py index 3bc7333..405b33a 100644 --- a/activities/tool_activities.py +++ b/activities/tool_activities.py @@ -198,7 +198,7 @@ class ToolActivities: client = anthropic.Anthropic(api_key=api_key) response = client.messages.create( - model="claude-3-7-sonnet-20250219", # replacing claude-3-5-sonnet-20241022 + model="claude-3-5-sonnet-20241022", # todo try claude-3-7-sonnet-20250219 max_tokens=1024, system=input.context_instructions + ". The current date is " diff --git a/workflows/workflow_helpers.py b/workflows/workflow_helpers.py index 35a0aa1..868b301 100644 --- a/workflows/workflow_helpers.py +++ b/workflows/workflow_helpers.py @@ -12,9 +12,9 @@ from prompts.agent_prompt_generators import ( from shared.config import TEMPORAL_LEGACY_TASK_QUEUE # Constants from original file -TOOL_ACTIVITY_START_TO_CLOSE_TIMEOUT = timedelta(seconds=10) +TOOL_ACTIVITY_START_TO_CLOSE_TIMEOUT = timedelta(seconds=12) TOOL_ACTIVITY_SCHEDULE_TO_CLOSE_TIMEOUT = timedelta(minutes=30) -LLM_ACTIVITY_START_TO_CLOSE_TIMEOUT = timedelta(seconds=10) +LLM_ACTIVITY_START_TO_CLOSE_TIMEOUT = timedelta(seconds=12) LLM_ACTIVITY_SCHEDULE_TO_CLOSE_TIMEOUT = timedelta(minutes=30)