free-coding-models 0.1.4 → 0.1.5
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/README.md +5 -0
- package/bin/free-coding-models.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -313,6 +313,9 @@ Or run without flags and choose **OpenClaw** from the startup menu.
|
|
|
313
313
|
"defaults": {
|
|
314
314
|
"model": {
|
|
315
315
|
"primary": "nvidia/deepseek-ai/deepseek-v3.2"
|
|
316
|
+
},
|
|
317
|
+
"models": {
|
|
318
|
+
"nvidia/deepseek-ai/deepseek-v3.2": {}
|
|
316
319
|
}
|
|
317
320
|
}
|
|
318
321
|
}
|
|
@@ -321,6 +324,8 @@ Or run without flags and choose **OpenClaw** from the startup menu.
|
|
|
321
324
|
|
|
322
325
|
> ⚠️ **Note:** `providers` must be nested under `models.providers` — not at the config root. A root-level `providers` key is ignored by OpenClaw.
|
|
323
326
|
|
|
327
|
+
> ⚠️ **Note:** The model must also be listed in `agents.defaults.models` (the allowlist). Without this entry, OpenClaw rejects the model with *"not allowed"* even if it is set as primary.
|
|
328
|
+
|
|
324
329
|
### After updating OpenClaw config
|
|
325
330
|
|
|
326
331
|
OpenClaw's gateway **auto-reloads** config file changes (depending on `gateway.reload.mode`). To apply manually:
|
|
@@ -781,6 +781,8 @@ async function startOpenClaw(model, apiKey) {
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
+
// 📖 Set as the default primary model for all agents.
|
|
785
|
+
// 📖 Format: "provider/model-id" — e.g. "nvidia/deepseek-ai/deepseek-v3.2"
|
|
784
786
|
// 📖 Set as the default primary model for all agents.
|
|
785
787
|
// 📖 Format: "provider/model-id" — e.g. "nvidia/deepseek-ai/deepseek-v3.2"
|
|
786
788
|
if (!config.agents) config.agents = {}
|
|
@@ -788,6 +790,12 @@ async function startOpenClaw(model, apiKey) {
|
|
|
788
790
|
if (!config.agents.defaults.model) config.agents.defaults.model = {}
|
|
789
791
|
config.agents.defaults.model.primary = `nvidia/${model.modelId}`
|
|
790
792
|
|
|
793
|
+
// 📖 REQUIRED: OpenClaw requires the model to be explicitly listed in agents.defaults.models
|
|
794
|
+
// 📖 (the allowlist). Without this entry, OpenClaw rejects the model with "not allowed".
|
|
795
|
+
// 📖 See: https://docs.openclaw.ai/gateway/configuration-reference
|
|
796
|
+
if (!config.agents.defaults.models) config.agents.defaults.models = {}
|
|
797
|
+
config.agents.defaults.models[`nvidia/${model.modelId}`] = {}
|
|
798
|
+
|
|
791
799
|
saveOpenClawConfig(config)
|
|
792
800
|
|
|
793
801
|
console.log(chalk.rgb(255, 140, 0)(` ✓ Default model set to: nvidia/${model.modelId}`))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "free-coding-models",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Find the fastest coding LLM models in seconds — ping free models from multiple providers, pick the best one for OpenCode, Cursor, or any AI coding assistant.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nvidia",
|