Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ if not OPENAI_API_KEY:
|
|
11 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
12 |
|
13 |
global_system_prompt = None
|
14 |
-
global_model = 'gpt-4'
|
15 |
|
16 |
def encode_image(image_path):
|
17 |
with open(image_path, "rb") as image_file:
|
@@ -48,7 +47,7 @@ def convert_history_to_openai_format(history):
|
|
48 |
def bot(history):
|
49 |
global global_model
|
50 |
response = client.chat.completions.create(
|
51 |
-
model=
|
52 |
messages=convert_history_to_openai_format(history)
|
53 |
)
|
54 |
print(response)
|
|
|
11 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
12 |
|
13 |
global_system_prompt = None
|
|
|
14 |
|
15 |
def encode_image(image_path):
|
16 |
with open(image_path, "rb") as image_file:
|
|
|
47 |
def bot(history):
|
48 |
global global_model
|
49 |
response = client.chat.completions.create(
|
50 |
+
model='gpt-4o',
|
51 |
messages=convert_history_to_openai_format(history)
|
52 |
)
|
53 |
print(response)
|