Skip to content

Commit

Permalink
update to gpt4o (#273)
Browse files Browse the repository at this point in the history
* update to gpt4o

* adding prompots dir
  • Loading branch information
aarushik93 authored May 17, 2024
1 parent 8dfebac commit 08d1e51
Show file tree
Hide file tree
Showing 50 changed files with 4,432 additions and 10 deletions.
2 changes: 1 addition & 1 deletion codex/common/ai_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def num_tokens_from_messages(messages):
"""Just a rough estimate here."""
try:
encoding = tiktoken.encoding_for_model("gpt-4-turbo")
encoding = tiktoken.encoding_for_model("gpt-4o")
except KeyError:
print("Warning: model not found. Using cl100k_base encoding.")
encoding = tiktoken.get_encoding("cl100k_base")
Expand Down
2 changes: 1 addition & 1 deletion codex/develop/ai_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DocumentationExtractor(AIBlock):
# The name of the prompt template folder in codex/prompts/{model}
prompt_template_name = "validate/documentation_extractor"
# Model to use for the LLM
model = "gpt-4-turbo"
model = "gpt-4o"
# Should we force the LLM to reply in JSON
is_json_response = False

Expand Down
2 changes: 1 addition & 1 deletion codex/develop/develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def parse_requirements(requirements_str: str) -> List[Package]:
class DevelopAIBlock(AIBlock):
developement_phase: DevelopmentPhase = DevelopmentPhase.DEVELOPMENT
prompt_template_name = "develop"
model = "gpt-4-turbo"
model = "gpt-4o"
language = "python"

async def validate(
Expand Down
2 changes: 1 addition & 1 deletion codex/interview/ai_interview.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class InterviewBlock(AIBlock):
"""

prompt_template_name = "interview/understand"
model = "gpt-4-turbo"
model = "gpt-4o"
is_json_response = True
pydantic_object = UndestandRequest

Expand Down
2 changes: 1 addition & 1 deletion codex/interview/ai_interview_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InterviewUpdateBlock(AIBlock):
"""

prompt_template_name = "interview/update"
model = "gpt-4-turbo"
model = "gpt-4o"
is_json_response = True
pydantic_object = UpdateUnderstanding

Expand Down
2 changes: 1 addition & 1 deletion codex/interview/ai_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ModuleGenerationBlock(codex.common.ai_block.AIBlock):
# The name of the prompt template folder in codex/prompts/{model}
prompt_template_name = "interview/module"
# Model to use for the LLM
model = "gpt-4-turbo"
model = "gpt-4o"
# Should we force the LLM to reply in JSON
is_json_response = True
# If we are using is_json_response, what is the response model
Expand Down
Loading

0 comments on commit 08d1e51

Please sign in to comment.