fix(nordagpt): avatar rendering + strategic queries get complex/high thinking
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

- Remove CSS filter on AI avatar — show NordaGPT robot icon as-is
- Strategic keywords (partner, inwestow, PEJ, serwerowni) → complex
- Complex queries get thinking=high for deeper analysis and less hallucination

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-28 06:20:12 +01:00
parent 0a7fe6389f
commit d7a8cbe459
2 changed files with 12 additions and 7 deletions

View File

@ -141,11 +141,16 @@ def route_query_fast(message: str, user_context: dict) -> Optional[dict]:
logger.debug("fast_router: no confident match, deferring to AI router")
return None
# Determine complexity by number of matched categories + message length
# Determine complexity by number of matched categories + message length + intent
is_long = len(message) > 150
multi_question = any(w in msg for w in ['jak ', 'jakie ', 'w jaki sposób', 'kto mógł'])
is_strategic = any(w in msg for w in [
'partner', 'współprac', 'inwestow', 'konsorcj', 'strategi',
'local content', 'projekt pej', 'elektrowni', 'serwerowni',
'porównaj', 'rekomend', 'analiz', 'doradzić', 'zaplanow'
])
if len(matched_categories) >= 3 or (len(matched_categories) >= 2 and is_long):
if is_strategic or len(matched_categories) >= 3 or (len(matched_categories) >= 2 and is_long):
complexity = 'complex'
elif len(matched_categories) >= 2 or is_long or multi_question:
complexity = 'medium'

View File

@ -429,14 +429,14 @@
}
.message.assistant .message-avatar {
background: linear-gradient(135deg, #1e3050 0%, #2E4872 100%);
color: white;
background: transparent;
padding: 0;
}
.message.assistant .message-avatar img {
width: 24px;
height: 24px;
filter: brightness(0) invert(1);
width: 36px;
height: 36px;
border-radius: 50%;
}
.message.user .message-avatar {