bstraehle commited on
Commit
f498bf2
1 Parent(s): 4b438ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -28,7 +28,8 @@ def create_assistant(client):
28
  ),
29
  model="gpt-4o",
30
  tools=[
31
- {"type": "code_interpreter"},
 
32
  ],
33
  )
34
 
@@ -127,7 +128,7 @@ def chat(message, history):
127
  global client, assistant, thread
128
 
129
  if assistant == None:
130
- assistant = load_assistant(client)
131
 
132
  if thread == None or len(history) == 0:
133
  thread = create_thread(client)
 
28
  ),
29
  model="gpt-4o",
30
  tools=[
31
+ {"type": "code_interpreter"},
32
+ {"type": "retrieval"},
33
  ],
34
  )
35
 
 
128
  global client, assistant, thread
129
 
130
  if assistant == None:
131
+ assistant = create_assistant(client)
132
 
133
  if thread == None or len(history) == 0:
134
  thread = create_thread(client)