Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,8 @@ def chat(message, history):
|
|
53 |
run_steps = get_run_steps(openai_client, thread, run)
|
54 |
|
55 |
### TODO
|
|
|
|
|
56 |
tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
|
57 |
|
58 |
if len(tool_call_ids) > 0:
|
@@ -78,7 +80,9 @@ def chat(message, history):
|
|
78 |
|
79 |
run = wait_on_run(openai_client, thread, run)
|
80 |
run_steps = get_run_steps(openai_client, thread, run)
|
|
|
81 |
###
|
|
|
82 |
tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
|
83 |
|
84 |
if len(tool_call_ids) > 1:
|
@@ -104,6 +108,7 @@ def chat(message, history):
|
|
104 |
|
105 |
run = wait_on_run(openai_client, thread, run)
|
106 |
run_steps = get_run_steps(openai_client, thread, run)
|
|
|
107 |
###
|
108 |
|
109 |
messages = get_messages(openai_client, thread)
|
|
|
53 |
run_steps = get_run_steps(openai_client, thread, run)
|
54 |
|
55 |
### TODO
|
56 |
+
recurse_tool_execution(thread, run, run_steps, 0)
|
57 |
+
"""
|
58 |
tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
|
59 |
|
60 |
if len(tool_call_ids) > 0:
|
|
|
80 |
|
81 |
run = wait_on_run(openai_client, thread, run)
|
82 |
run_steps = get_run_steps(openai_client, thread, run)
|
83 |
+
"""
|
84 |
###
|
85 |
+
"""
|
86 |
tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
|
87 |
|
88 |
if len(tool_call_ids) > 1:
|
|
|
108 |
|
109 |
run = wait_on_run(openai_client, thread, run)
|
110 |
run_steps = get_run_steps(openai_client, thread, run)
|
111 |
+
"""
|
112 |
###
|
113 |
|
114 |
messages = get_messages(openai_client, thread)
|