free-coding-models 0.1.14 → 0.1.15
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/bin/free-coding-models.js +13 -0
- package/package.json +1 -1
|
@@ -198,6 +198,8 @@ async function promptModeSelection(latestVersion) {
|
|
|
198
198
|
}
|
|
199
199
|
console.log(chalk.bold(' ⚡ Free Coding Models') + chalk.dim(' — Choose your tool'))
|
|
200
200
|
console.log()
|
|
201
|
+
console.log(chalk.yellow.bold(' ⚠️ Warning: ') + chalk.yellow('Small terminals may break the layout — maximize your window for best results!'))
|
|
202
|
+
console.log()
|
|
201
203
|
for (let i = 0; i < options.length; i++) {
|
|
202
204
|
const isSelected = i === selected
|
|
203
205
|
const bullet = isSelected ? chalk.bold.cyan(' ❯ ') : chalk.dim(' ')
|
|
@@ -615,6 +617,17 @@ async function startOpenCode(model) {
|
|
|
615
617
|
|
|
616
618
|
// 📖 Update default model to nvidia/model_id
|
|
617
619
|
config.model = `nvidia/${model.modelId}`
|
|
620
|
+
|
|
621
|
+
// 📖 Register the model in the nvidia provider's models section
|
|
622
|
+
// 📖 OpenCode requires models to be explicitly listed in provider.models
|
|
623
|
+
// 📖 to recognize them — without this, it falls back to the previous default
|
|
624
|
+
if (config.provider?.nvidia) {
|
|
625
|
+
if (!config.provider.nvidia.models) config.provider.nvidia.models = {}
|
|
626
|
+
config.provider.nvidia.models[model.modelId] = {
|
|
627
|
+
name: model.label,
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
618
631
|
saveOpenCodeConfig(config)
|
|
619
632
|
|
|
620
633
|
console.log(chalk.green(` ✓ 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.15",
|
|
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",
|