Default OLLAMA_MODEL für neue Nutzer auf glm-5.2:cloud
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -23,7 +23,7 @@ const { currentUser } = require('./context');
|
||||
const DEFAULTS = {
|
||||
// Ollama Cloud (KI text generation + chat).
|
||||
OLLAMA_API_KEY: '',
|
||||
OLLAMA_MODEL: 'gpt-oss:120b',
|
||||
OLLAMA_MODEL: 'glm-5.2:cloud',
|
||||
OLLAMA_HOST: 'https://ollama.com',
|
||||
OLLAMA_TIMEOUT_MS: '300000',
|
||||
// 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.',
|
||||
items: [
|
||||
{ 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_TIMEOUT_MS', label: 'Timeout (ms)', help: 'Standard: 300000 (5 Min.)' },
|
||||
],
|
||||
@@ -163,7 +163,7 @@ function getAll() {
|
||||
function ollama() {
|
||||
return {
|
||||
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,
|
||||
apiKey: get('OLLAMA_API_KEY') || '',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user