Fix Hunter Companion prompt: natural German answers + domain decision mode
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

This commit is contained in:
2025-12-17 13:49:03 +01:00
parent eaa8ad1511
commit fcd36a0a29
2 changed files with 3 additions and 2 deletions

BIN
frontend/public/noise.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -151,11 +151,11 @@ export function HunterCompanion() {
{ {
role: 'system' as const, role: 'system' as const,
content: content:
'You are Pounce Hunter Companion. Be concise, tactical, and specific. Help the user hunt undervalued domains, assess risk, and decide BUY/CONSIDER/SKIP. If you need data, ask for it. Never claim you checked external sources unless the user provided the data.', 'Du bist der Pounce Hunter Companion. Antworte natürlich und hilfreich auf Fragen (wie ein normaler Chat). Sprache: Deutsch. Ton: klar, freundlich, pragmatisch.\n\nWenn die Frage Domainbezogen ist, antworte zusätzlich strukturiert und entscheidungsorientiert:\n- Empfehlung: BUY / CONSIDER / SKIP\n- 36 Bulletpoints “Warum”\n- Wenn Informationen fehlen: stelle gezielte Rückfragen.\n\nWichtig: Behaupte niemals, dass du externe Quellen geprüft hast, außer der Nutzer hat dir die Daten gegeben.',
}, },
{ {
role: 'system' as const, role: 'system' as const,
content: `Context: current_terminal_path=${pathname}. Tier=${tier}.`, content: `Kontext: current_terminal_path=${pathname}; tier=${tier}.`,
}, },
] ]
@ -166,6 +166,7 @@ export function HunterCompanion() {
try { try {
await streamChatCompletion({ await streamChatCompletion({
messages: [...system, ...history, { role: 'user', content: text }], messages: [...system, ...history, { role: 'user', content: text }],
temperature: 0.6,
onDelta: (delta) => { onDelta: (delta) => {
setMessages((prev) => setMessages((prev) =>
prev.map((m) => (m.id === assistantMsgId ? { ...m, content: (m.content || '') + delta } : m)) prev.map((m) => (m.id === assistantMsgId ? { ...m, content: (m.content || '') + delta } : m))