Gedanken auf Deutsch: BASE_INSTRUCTION injiziert + Label übersetzt [appimage]
All checks were successful
Build AppImage / build (push) Successful in 6m11s
All checks were successful
Build AppImage / build (push) Successful in 6m11s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
100ba9d5d4
commit
600c7943ed
1 changed files with 6 additions and 2 deletions
|
|
@ -358,11 +358,15 @@ async function sendMessage(message, requestId, model = null, contextOverride = n
|
||||||
sendMonitorEvent('agent', `Orchestrator-Modus: ${effectiveMode}`, { mode: effectiveMode });
|
sendMonitorEvent('agent', `Orchestrator-Modus: ${effectiveMode}`, { mode: effectiveMode });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nachricht mit Context und Orchestrator kombinieren
|
// Basis-Anweisung: Sprache + Verhalten
|
||||||
|
const BASE_INSTRUCTION = `WICHTIG: Antworte IMMER auf Deutsch. Denke und formuliere deine Gedanken (Thinking) ebenfalls auf Deutsch. Du bist ein technischer Assistent für Eddy (Eduard Wisch). Fasse dich kurz und präzise.`;
|
||||||
|
|
||||||
|
// Nachricht mit Context, Basis-Anweisung und Orchestrator kombinieren
|
||||||
let fullPrompt = message;
|
let fullPrompt = message;
|
||||||
if (orchestratorPrompt) {
|
if (orchestratorPrompt) {
|
||||||
fullPrompt = `${orchestratorPrompt}\n\n---\n\n${message}`;
|
fullPrompt = `${orchestratorPrompt}\n\n---\n\n${message}`;
|
||||||
}
|
}
|
||||||
|
fullPrompt = `${BASE_INSTRUCTION}\n\n---\n\n${fullPrompt}`;
|
||||||
if (useContext) {
|
if (useContext) {
|
||||||
fullPrompt = `${useContext}\n\n---\n\n${fullPrompt}`;
|
fullPrompt = `${useContext}\n\n---\n\n${fullPrompt}`;
|
||||||
}
|
}
|
||||||
|
|
@ -545,7 +549,7 @@ async function sendMessage(message, requestId, model = null, contextOverride = n
|
||||||
} else if (block.type === 'thinking' && block.thinking) {
|
} else if (block.type === 'thinking' && block.thinking) {
|
||||||
// Extended Thinking — als kompaktes Inline-Element (immer sichtbar)
|
// Extended Thinking — als kompaktes Inline-Element (immer sichtbar)
|
||||||
const escaped = block.thinking.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
const escaped = block.thinking.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
||||||
const inlineThinking = `<div class="thinking-inline"><span class="thinking-label">\u{1F4AD}</span><span class="thinking-text">${escaped}</span></div>\n\n`;
|
const inlineThinking = `<div class="thinking-inline"><span class="thinking-label">💭 Gedanken</span><span class="thinking-text">${escaped}</span></div>\n\n`;
|
||||||
fullText += inlineThinking;
|
fullText += inlineThinking;
|
||||||
sendEvent('text', { text: inlineThinking });
|
sendEvent('text', { text: inlineThinking });
|
||||||
} else if (block.type === 'tool_use') {
|
} else if (block.type === 'tool_use') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue