Fixed up images in chat

This commit is contained in:
Paul Gauthier 2024-04-18 14:39:32 -07:00
parent f1c09ececf
commit 0da1b59901
5 changed files with 14 additions and 29 deletions

View file

@ -104,14 +104,3 @@ def show_messages(messages, title=None, functions=None):
if functions:
dump(functions)
# TODO: fix this
def is_gpt4_with_openai_base_url(model_name):
"""
Check if the model_name starts with 'gpt-4' and the client base URL includes 'api.openai.com'.
:param model_name: The name of the model to check.
:return: True if conditions are met, False otherwise.
"""
return model_name.startswith("gpt-4")