openzoo 0.22.1 → 0.22.2
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/setup.js +13 -1
- package/package.json +1 -1
package/lib/setup.js
CHANGED
|
@@ -75,8 +75,20 @@ async function catalogModels(base) {
|
|
|
75
75
|
// (GET /v1/models lists them) and each maps to a DIFFERENT zoo model by the
|
|
76
76
|
// similarity scorer, so picking claude-opus-4-1 vs gemini-2.5-flash vs grok-4
|
|
77
77
|
// really does change which model answers.
|
|
78
|
+
// UNGATED NAMES ONLY, BY DEFAULT.
|
|
79
|
+
//
|
|
80
|
+
// The editor gates its own catalog per plan, on the NAME, before any request
|
|
81
|
+
// leaves the process — MEASURED: claude-opus-4-1 answers "Max Mode Required",
|
|
82
|
+
// and other names answer "Model name is not valid". Neither ever reaches us, so
|
|
83
|
+
// neither is something the proxy can fix. The ids below are the ones no plan
|
|
84
|
+
// gates. The NAME is only the editor's label: OPENZOO_DEFAULT_MODEL decides
|
|
85
|
+
// which zoo model actually answers, so `gpt-4o` can be served by Opus 5.
|
|
86
|
+
//
|
|
87
|
+
// OPENZOO_EDITOR_MODELS=all offers every alias (claude-*, gemini-*, grok-*,
|
|
88
|
+
// o3…) for accounts whose plan allows them.
|
|
78
89
|
const { ALIAS_IDS } = await import('./models.js');
|
|
79
|
-
const
|
|
90
|
+
const UNGATED = ['gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo', 'gpt-4.1', 'gpt-4.1-mini', 'gpt-3.5-turbo'];
|
|
91
|
+
const fallback = process.env.OPENZOO_EDITOR_MODELS === 'all' ? [...ALIAS_IDS] : UNGATED;
|
|
80
92
|
if (process.env.OPENZOO_EDITOR_MODELS) {
|
|
81
93
|
return process.env.OPENZOO_EDITOR_MODELS.split(',').map((m) => m.trim()).filter(Boolean);
|
|
82
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.2",
|
|
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",
|