fix: pass language param from floating AI chat to API so it uses localized system prompt
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 41s

The floating ai-chat.tsx was not sending the user's language to the
/api/chat endpoint, causing it to always use the English system prompt.
Now passes `language` from useLanguage() hook.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 21:34:08 +02:00
parent 007835c9bf
commit b893b5ac34

View File

@@ -66,7 +66,8 @@ export function AIChat() {
chatScope, chatScope,
notebookId: chatScope !== 'all' ? chatScope : undefined, notebookId: chatScope !== 'all' ? chatScope : undefined,
webSearch: webSearch && webSearchAvailable, webSearch: webSearch && webSearchAvailable,
conversationId conversationId,
language,
} }
} }
) )