Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +5 -3
assistants.py
CHANGED
|
@@ -99,8 +99,10 @@ def create_message(thread, msg):
|
|
| 99 |
thread_id=thread.id,
|
| 100 |
content=msg,
|
| 101 |
)
|
| 102 |
-
|
| 103 |
-
|
|
|
|
|
|
|
| 104 |
return message
|
| 105 |
|
| 106 |
def create_run(assistant, thread):
|
|
@@ -162,7 +164,7 @@ def execute_tool_calls(run_steps):
|
|
| 162 |
step_details = step.step_details
|
| 163 |
str = get_json("step_details", step_details)
|
| 164 |
print(str)
|
| 165 |
-
gr.Info(str, duration=15)
|
| 166 |
|
| 167 |
if hasattr(step_details, "tool_calls"):
|
| 168 |
for tool_call in step_details.tool_calls:
|
|
|
|
| 99 |
thread_id=thread.id,
|
| 100 |
content=msg,
|
| 101 |
)
|
| 102 |
+
|
| 103 |
+
str = get_json("message", message)
|
| 104 |
+
print(str)
|
| 105 |
+
gr.Info(str, duration=15)
|
| 106 |
return message
|
| 107 |
|
| 108 |
def create_run(assistant, thread):
|
|
|
|
| 164 |
step_details = step.step_details
|
| 165 |
str = get_json("step_details", step_details)
|
| 166 |
print(str)
|
| 167 |
+
#gr.Info(str, duration=15)
|
| 168 |
|
| 169 |
if hasattr(step_details, "tool_calls"):
|
| 170 |
for tool_call in step_details.tool_calls:
|