Skip to content

Commit

Permalink
Merge pull request #129 from beanlover/main
Browse files Browse the repository at this point in the history
Changed default OPENAI model to GPT-4o
  • Loading branch information
VRSEN authored May 27, 2024
2 parents 3296f85 + 8b645b6 commit 8254ecf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run(self):
while n < 3:
resp = client.chat.completions.create(
messages=messages,
model="gpt-4-turbo",
model="gpt-4o",
temperature=0,
)

Expand Down
4 changes: 2 additions & 2 deletions agency_swarm/agents/Devid/tools/FileWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def run(self):
while n < 3:
resp = client.chat.completions.create(
messages=messages,
model="gpt-4-turbo",
model="gpt-4o",
temperature=0,
)

Expand Down Expand Up @@ -190,7 +190,7 @@ def validate_content(self, v):
llm_validator(
statement="Check if the code is bug-free. Code should be considered in isolation, with the understanding that it is part of a larger, fully developed program that strictly adheres to these standards of completeness and correctness. All files, elements, components, functions, or modules referenced within this snippet are assumed to exist in other parts of the project and are also devoid of any errors, ensuring a cohesive and error-free integration across the entire software solution. Certain placeholders may be present.",
client=client,
model="gpt-4-turbo",
model="gpt-4o",
temperature=0,
allow_override=False
)(v)
Expand Down
4 changes: 2 additions & 2 deletions agency_swarm/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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,
Expand All @@ -107,7 +107,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.
Expand Down

0 comments on commit 8254ecf

Please sign in to comment.