openzoo 0.50.82 → 0.50.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cursorbackend.js +6 -1
- package/package.json +1 -1
package/lib/cursorbackend.js
CHANGED
|
@@ -1641,7 +1641,12 @@ export function foldSameRole(messages) {
|
|
|
1641
1641
|
messages = (Array.isArray(messages) ? messages : []).map((m) => {
|
|
1642
1642
|
if (!m || m.role !== 'assistant') return m;
|
|
1643
1643
|
const out = {};
|
|
1644
|
-
for (const [k, v] of Object.entries(m))
|
|
1644
|
+
for (const [k, v] of Object.entries(m)) {
|
|
1645
|
+
if (!ASSISTANT_KEYS.has(k)) continue;
|
|
1646
|
+
if (k === 'name' && (typeof v !== 'string' || !v)) continue; // name:null is an echo, not a name
|
|
1647
|
+
if (k === 'tool_calls' && !(Array.isArray(v) && v.length)) continue;
|
|
1648
|
+
out[k] = v;
|
|
1649
|
+
}
|
|
1645
1650
|
if (out.content === undefined && !out.tool_calls) out.content = '';
|
|
1646
1651
|
if (out.content === null && out.tool_calls) delete out.content;
|
|
1647
1652
|
return out;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.83",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|