From 08eda93963976f6f9aa4de3898d726326bf54b88 Mon Sep 17 00:00:00 2001 From: Bob Beauchamp Date: Thu, 23 May 2024 10:10:43 -0400 Subject: [PATCH] Changed default OPENAI model to GPT-4o --- agency_swarm/agents/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agency_swarm/agents/agent.py b/agency_swarm/agents/agent.py index 37f22776..31789743 100644 --- a/agency_swarm/agents/agent.py +++ b/agency_swarm/agents/agent.py @@ -68,7 +68,7 @@ def __init__( api_params: Dict[str, Dict[str, str]] = None, file_ids: List[str] = None, metadata: Dict[str, str] = None, - model: str = "gpt-4-turbo", + model: str = "gpt-4o", validation_attempts: int = 1, max_prompt_tokens: int = None, max_completion_tokens: int = None, @@ -94,7 +94,7 @@ def __init__( api_headers (Dict[str,Dict[str, str]], optional): Headers to be used for the openapi requests. Each key must be a full filename from schemas_folder. Defaults to an empty dictionary. api_params (Dict[str, Dict[str, str]], optional): Extra params to be used for the openapi requests. Each key must be a full filename from schemas_folder. Defaults to an empty dictionary. metadata (Dict[str, str], optional): Metadata associated with the agent. Defaults to an empty dictionary. - model (str, optional): The model identifier for the OpenAI API. Defaults to "gpt-4-turbo-preview". + model (str, optional): The model identifier for the OpenAI API. Defaults to "gpt-4o". validation_attempts (int, optional): Number of attempts to validate the response with response_validator function. Defaults to 1. max_prompt_tokens (int, optional): Maximum number of tokens allowed in the prompt. Defaults to None. max_completion_tokens (int, optional): Maximum number of tokens allowed in the completion. Defaults to None.