fix: передача user_id во все вызовы AI сервиса
Исправлено: при выполнении задач использовалась глобальная модель вместо привязанной к пользователю. Обновлены все handlers и services для передачи user_id в AI методы. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,8 @@ async def process_word_addition(message: Message, state: FSMContext, word: str):
|
||||
source_lang = user.learning_language if user else 'en'
|
||||
translation_lang = get_user_translation_lang(user)
|
||||
word_data = await ai_service.translate_word_with_contexts(
|
||||
word, source_lang=source_lang, translation_lang=translation_lang, max_translations=3
|
||||
word, source_lang=source_lang, translation_lang=translation_lang, max_translations=3,
|
||||
user_id=user.id if user else None
|
||||
)
|
||||
|
||||
# Удаляем сообщение о загрузке
|
||||
|
||||
Reference in New Issue
Block a user