feat(flashcards): ИИ-генерация карточек по теме/тексту с предпросмотром в текущую колоду

This commit is contained in:
Maxim Dolgolyov
2026-06-12 23:06:08 +03:00
parent 21cea72874
commit 9dd3522869
3 changed files with 69 additions and 7 deletions
+1 -1
View File
@@ -1264,7 +1264,7 @@ async function assistantSeen(ruleId) { return req('POST', '/assistant/seen', {
async function assistantDismiss(rid) { return req('POST', '/assistant/dismiss', { ruleId: rid }); }
async function assistantSettings(d) { return req('PATCH', '/assistant/settings', d); }
async function assistantAsk(q, context, history, mode) { return req('POST', '/assistant/ask', { q, context: context || undefined, history: history || undefined, mode: mode || undefined }); }
async function assistantFlashcards(text, title) { return req('POST', '/assistant/flashcards', { text, title }); }
async function assistantFlashcards(text, title, count) { return req('POST', '/assistant/flashcards', { text, title, count }); }
async function assistantFeedback(rating, q) { return req('POST', '/assistant/feedback', { rating, q: q || undefined }); }
async function assistantMemory() { return req('GET', '/assistant/memory'); }
async function assistantMemoryClear(id) { return req('DELETE', '/assistant/memory' + (id ? '/' + id : '')); }