Hi,
thank you for making your project open source, I encountered a problem with the response no longer being valid json, I narrowed it down to this line:
|
filtered = re.sub(think_pattern, '', decoded, flags=re.DOTALL) |
It looks like it operates on the raw json string? In my case it matched across json quoted strings, leading to errors downstream when parsing this.
If this doesn't sound quite right, then please ignore this report and perhaps close it? I reworked some of the program flow on my end, and it's no longer a 1:1 comparison between the source code I'm running and upstream, so I can't perform the same test with current main branch.
All the best,
Bjorn
Hi,
thank you for making your project open source, I encountered a problem with the response no longer being valid json, I narrowed it down to this line:
cot_proxy/cot_proxy.py
Line 443 in 70e7fce
It looks like it operates on the raw json string? In my case it matched across json quoted strings, leading to errors downstream when parsing this.
If this doesn't sound quite right, then please ignore this report and perhaps close it? I reworked some of the program flow on my end, and it's no longer a 1:1 comparison between the source code I'm running and upstream, so I can't perform the same test with current
mainbranch.All the best,
Bjorn