fix: LLM иногда возвращает пустой текст — raise при пустом content, ретрай в generate_response_with_retry, фронтенд показывает ошибку вместо молчания
This commit is contained in:
1 parent
d757d2f8c7
commit
8ca070ed70
3 files changed
+9
-4
No files matched your search
@@ -656,6 +656,8 @@ async function openSendModal(id) {
|
||||
renderTexts();
|
||||
} else if (data.errors && data.errors[id]) {
|
||||
document.getElementById('send-modal-note').textContent = 'Ошибка: ' + data.errors[id];
|
||||
} else {
|
||||
document.getElementById('send-modal-note').textContent = 'Не удалось сгенерировать текст — попробуйте ещё раз';
|
||||
}
|
||||
} catch (e) {
|
||||
document.getElementById('send-loading').classList.add('hidden');
|
||||
|
||||
Reference in new issue
Block a user