Default OLLAMA_MODEL für neue Nutzer auf glm-5.2:cloud

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-14 20:16:10 +02:00
co-authored by Claude
parent 0301a1c430
commit cd30af3d69
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
# Ollama Cloud API-Schlüssel https://ollama.com/settings/keys # Ollama Cloud API-Schlüssel https://ollama.com/settings/keys
OLLAMA_API_KEY= OLLAMA_API_KEY=
# Optional Cloud-Modell (Standard: gpt-oss:120b) # Optional Cloud-Modell (Standard: glm-5.2:cloud)
# OLLAMA_MODEL=gpt-oss:120b # OLLAMA_MODEL=glm-5.2:cloud
# Optional anderer Host (z. B. lokale Ollama-Instanz: http://localhost:11434) # Optional anderer Host (z. B. lokale Ollama-Instanz: http://localhost:11434)
# OLLAMA_HOST=https://ollama.com # OLLAMA_HOST=https://ollama.com
+3 -3
View File
@@ -23,7 +23,7 @@ const { currentUser } = require('./context');
const DEFAULTS = { const DEFAULTS = {
// Ollama Cloud (KI text generation + chat). // Ollama Cloud (KI text generation + chat).
OLLAMA_API_KEY: '', OLLAMA_API_KEY: '',
OLLAMA_MODEL: 'gpt-oss:120b', OLLAMA_MODEL: 'glm-5.2:cloud',
OLLAMA_HOST: 'https://ollama.com', OLLAMA_HOST: 'https://ollama.com',
OLLAMA_TIMEOUT_MS: '300000', OLLAMA_TIMEOUT_MS: '300000',
// E-Mail (SMTP submission + IMAP receive). // E-Mail (SMTP submission + IMAP receive).
@@ -52,7 +52,7 @@ const FIELDS = [
beschreibung: 'Steuerung der KI, die Bewerbungsunterlagen erzeugt und den KI-Chat beantwortet. Ohne API-Schlüssel sind diese Funktionen deaktiviert.', beschreibung: 'Steuerung der KI, die Bewerbungsunterlagen erzeugt und den KI-Chat beantwortet. Ohne API-Schlüssel sind diese Funktionen deaktiviert.',
items: [ items: [
{ key: 'OLLAMA_API_KEY', label: 'API-Schlüssel', secret: true, help: 'Schlüssel von https://ollama.com/settings/keys' }, { key: 'OLLAMA_API_KEY', label: 'API-Schlüssel', secret: true, help: 'Schlüssel von https://ollama.com/settings/keys' },
{ key: 'OLLAMA_MODEL', label: 'Modell', help: 'Standard: gpt-oss:120b' }, { key: 'OLLAMA_MODEL', label: 'Modell', help: 'Standard: glm-5.2:cloud' },
{ key: 'OLLAMA_HOST', label: 'Host', help: 'Standard: https://ollama.com — lokaler Ollama: http://localhost:11434' }, { key: 'OLLAMA_HOST', label: 'Host', help: 'Standard: https://ollama.com — lokaler Ollama: http://localhost:11434' },
{ key: 'OLLAMA_TIMEOUT_MS', label: 'Timeout (ms)', help: 'Standard: 300000 (5 Min.)' }, { key: 'OLLAMA_TIMEOUT_MS', label: 'Timeout (ms)', help: 'Standard: 300000 (5 Min.)' },
], ],
@@ -163,7 +163,7 @@ function getAll() {
function ollama() { function ollama() {
return { return {
host: (get('OLLAMA_HOST') || 'https://ollama.com').replace(/\/+$/, ''), host: (get('OLLAMA_HOST') || 'https://ollama.com').replace(/\/+$/, ''),
model: get('OLLAMA_MODEL') || 'gpt-oss:120b', model: get('OLLAMA_MODEL') || 'glm-5.2:cloud',
timeoutMs: Number(get('OLLAMA_TIMEOUT_MS')) || 300000, timeoutMs: Number(get('OLLAMA_TIMEOUT_MS')) || 300000,
apiKey: get('OLLAMA_API_KEY') || '', apiKey: get('OLLAMA_API_KEY') || '',
}; };
+1 -1
View File
@@ -212,7 +212,7 @@
<label for="einr-model" class="block text-xs font-medium text-gray-500 dark:text-gray-400">Modell</label> <label for="einr-model" class="block text-xs font-medium text-gray-500 dark:text-gray-400">Modell</label>
<input type="text" id="einr-model" name="OLLAMA_MODEL" <input type="text" id="einr-model" name="OLLAMA_MODEL"
class="mt-1 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-800 dark:border-gray-600 dark:bg-gray-700 dark:text-white" class="mt-1 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-800 dark:border-gray-600 dark:bg-gray-700 dark:text-white"
value="<%= setupWizard.ollamaModel || 'gpt-oss:120b' %>"> value="<%= setupWizard.ollamaModel || 'glm-5.2:cloud' %>">
</div> </div>
<div> <div>
<label for="einr-host" class="block text-xs font-medium text-gray-500 dark:text-gray-400">Host</label> <label for="einr-host" class="block text-xs font-medium text-gray-500 dark:text-gray-400">Host</label>