Skip to content

Commit

Permalink
added gpt-4-turbo-preview to are_functions_available
Browse files Browse the repository at this point in the history
  • Loading branch information
gianlucaalfa committed Feb 11, 2024
1 parent 75426f9 commit f23979f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/openai_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def are_functions_available(model: str) -> bool:
if model in ("gpt-3.5-turbo-0301", "gpt-4-0314", "gpt-4-32k-0314"):
return False
# Stable models will be updated to support functions on June 27, 2023
if model in ("gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-32k","gpt-4-1106-preview"):
if model in ("gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "gpt-4-32k","gpt-4-1106-preview","gpt-4-0125-preview","gpt-4-turbo-preview"):
return datetime.date.today() > datetime.date(2023, 6, 27)
if model == 'gpt-4-vision-preview':
return False
Expand Down

0 comments on commit f23979f

Please sign in to comment.