loren-code 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loren-code",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Ollama Cloud Model Manager - Dynamic model switching, API key rotation, and real-time configuration updates",
5
5
  "author": "lorenzune",
6
6
  "license": "MIT",
@@ -233,7 +233,17 @@ if ($availableModels.Count -eq 0) {
233
233
  throw "OLLAMA_MODEL_ALIASES does not contain any models"
234
234
  }
235
235
 
236
- $defaultModel = if ($aliases.ContainsKey("ollama-free-auto")) { "ollama-free-auto" } else { $availableModels[0] }
236
+ $configuredDefaultModel = Get-EnvValue -Path $envPath -Name "DEFAULT_MODEL_ALIAS"
237
+ if (
238
+ -not [string]::IsNullOrWhiteSpace($configuredDefaultModel) -and
239
+ $availableModels.Contains($configuredDefaultModel)
240
+ ) {
241
+ $defaultModel = $configuredDefaultModel
242
+ } elseif ($aliases.ContainsKey("ollama-free-auto")) {
243
+ $defaultModel = "ollama-free-auto"
244
+ } else {
245
+ $defaultModel = $availableModels[0]
246
+ }
237
247
  $claudeSettings["model"] = $defaultModel
238
248
  $claudeSettings["availableModels"] = $availableModels
239
249
  Write-JsonFile -Path $claudeSettingsPath -Data $claudeSettings