Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Multimodal message, clear, undo
|
2 |
-
# File search
|
3 |
# Matlplotlib chart
|
4 |
# Function: Tavily API
|
5 |
|
@@ -57,7 +57,7 @@ def create_message(client, thread, msg):
|
|
57 |
role="user",
|
58 |
thread_id=thread.id,
|
59 |
content=msg["text"],
|
60 |
-
attachments=
|
61 |
)
|
62 |
|
63 |
show_json("message", message)
|
|
|
1 |
# Multimodal message, clear, undo
|
2 |
+
# File search https://platform.openai.com/docs/api-reference/messages/createMessage
|
3 |
# Matlplotlib chart
|
4 |
# Function: Tavily API
|
5 |
|
|
|
57 |
role="user",
|
58 |
thread_id=thread.id,
|
59 |
content=msg["text"],
|
60 |
+
attachments=[msg["files"], [code_interpreter, file_search]],
|
61 |
)
|
62 |
|
63 |
show_json("message", message)
|