Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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)
|