Passa contexto da Minha Turma (inclusive Educação Especial) para IA nas observações

This commit is contained in:
2026-06-06 15:29:59 +00:00
parent a516989016
commit 057532191b
2 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -2657,10 +2657,11 @@ const initApp = () => {
showRecordState('processing');
try {
const turmaData = localStorage.getItem('camila_turma') || '[]';
const res = await fetch('/api/observacao/analisar', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ transcribedText: text })
body: JSON.stringify({ transcribedText: text, turmaContext: JSON.parse(turmaData) })
});
if (!res.ok) {