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
|
@@ -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
|
-
$
|
|
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
|