diff --git a/bot/openai_helper.py b/bot/openai_helper.py index d626cd41..2ba10899 100644 --- a/bot/openai_helper.py +++ b/bot/openai_helper.py @@ -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