Spaces:
Running
on
Zero
Running
on
Zero
jedick
commited on
Commit
·
885cffb
1
Parent(s):
4eb4f2a
Remove debugging prints
Browse files- mods/tool_calling_llm.py +5 -5
mods/tool_calling_llm.py
CHANGED
|
@@ -177,9 +177,9 @@ class ToolCallingLLM(BaseChatModel, ABC):
|
|
| 177 |
# Extract <think>...</think> content and text after </think> for further processing 20250726 jmd
|
| 178 |
think_text, post_think = extract_think(response_message.content)
|
| 179 |
|
| 180 |
-
|
| 181 |
-
print("post_think")
|
| 182 |
-
print(post_think)
|
| 183 |
|
| 184 |
# Remove backticks around code blocks
|
| 185 |
post_think = re.sub(r"^```json", "", post_think)
|
|
@@ -203,8 +203,8 @@ class ToolCallingLLM(BaseChatModel, ABC):
|
|
| 203 |
# Return entire response if JSON wasn't parsed or is missing
|
| 204 |
return AIMessage(content=response_message.content)
|
| 205 |
|
| 206 |
-
print("parsed_json_results")
|
| 207 |
-
print(parsed_json_results)
|
| 208 |
|
| 209 |
tool_calls = []
|
| 210 |
for parsed_json_result in parsed_json_results:
|
|
|
|
| 177 |
# Extract <think>...</think> content and text after </think> for further processing 20250726 jmd
|
| 178 |
think_text, post_think = extract_think(response_message.content)
|
| 179 |
|
| 180 |
+
## For debugging
|
| 181 |
+
# print("post_think")
|
| 182 |
+
# print(post_think)
|
| 183 |
|
| 184 |
# Remove backticks around code blocks
|
| 185 |
post_think = re.sub(r"^```json", "", post_think)
|
|
|
|
| 203 |
# Return entire response if JSON wasn't parsed or is missing
|
| 204 |
return AIMessage(content=response_message.content)
|
| 205 |
|
| 206 |
+
# print("parsed_json_results")
|
| 207 |
+
# print(parsed_json_results)
|
| 208 |
|
| 209 |
tool_calls = []
|
| 210 |
for parsed_json_result in parsed_json_results:
|