Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ assistant_id = "asst_bj2N3tOyOXHjuZSTsXuZrXuF" # Replace with your own assistan
|
|
| 27 |
|
| 28 |
def ensure_single_thread_id():
|
| 29 |
if "thread_id" not in st.session_state:
|
| 30 |
-
thread = client.threads.create()
|
| 31 |
st.session_state.thread_id = thread.id
|
| 32 |
return st.session_state.thread_id
|
| 33 |
|
|
|
|
| 27 |
|
| 28 |
def ensure_single_thread_id():
|
| 29 |
if "thread_id" not in st.session_state:
|
| 30 |
+
thread = client.beta.threads.create()
|
| 31 |
st.session_state.thread_id = thread.id
|
| 32 |
return st.session_state.thread_id
|
| 33 |
|