From 7f81286ca3959a9d173218b5c7dc0006d359ddbc Mon Sep 17 00:00:00 2001 From: Onur ULUSOY Date: Wed, 18 Dec 2024 14:21:31 +0300 Subject: [PATCH] fix: Update condition for model selection based on AWS access key --- gpt_computer_assistant/agent/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt_computer_assistant/agent/agent.py b/gpt_computer_assistant/agent/agent.py index 707831383..63e5cf987 100644 --- a/gpt_computer_assistant/agent/agent.py +++ b/gpt_computer_assistant/agent/agent.py @@ -68,7 +68,7 @@ def get_agent_executor(the_anthropic_model=False): if the_anthropic_model: tools += [] - if not llm_settings[model]["provider"] == "aws": + if load_aws_access_key_id() == "default": model_catch = get_model(the_model="claude-3-5-sonnet-20241022") else: model_catch = get_model(the_model="us.anthropic.claude-3-5-sonnet-20241022-v2:0")