mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
rollback to claude sonnet 3.5 and slight timeout changes
This commit is contained in:
@@ -198,7 +198,7 @@ class ToolActivities:
|
|||||||
client = anthropic.Anthropic(api_key=api_key)
|
client = anthropic.Anthropic(api_key=api_key)
|
||||||
|
|
||||||
response = client.messages.create(
|
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,
|
max_tokens=1024,
|
||||||
system=input.context_instructions
|
system=input.context_instructions
|
||||||
+ ". The current date is "
|
+ ". The current date is "
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ from prompts.agent_prompt_generators import (
|
|||||||
from shared.config import TEMPORAL_LEGACY_TASK_QUEUE
|
from shared.config import TEMPORAL_LEGACY_TASK_QUEUE
|
||||||
|
|
||||||
# Constants from original file
|
# 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)
|
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)
|
LLM_ACTIVITY_SCHEDULE_TO_CLOSE_TIMEOUT = timedelta(minutes=30)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user