mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-12 13:02:54 -05:00
fix: Handling request error on provider error
This commit is contained in:
@ -132,6 +132,11 @@ ChatRootView::ChatRootView(QQuickItem *parent)
|
||||
&Utils::BaseAspect::changed,
|
||||
this,
|
||||
&ChatRootView::textFormatChanged);
|
||||
connect(m_clientInterface, &ClientInterface::errorOccurred, this, [this](const QString &error) {
|
||||
this->setRequestProgressStatus(false);
|
||||
m_lastErrorMessage = error;
|
||||
emit lastErrorMessageChanged();
|
||||
});
|
||||
|
||||
updateInputTokensCount();
|
||||
}
|
||||
@ -622,4 +627,9 @@ void ChatRootView::setRequestProgressStatus(bool state)
|
||||
emit isRequestInProgressChanged();
|
||||
}
|
||||
|
||||
QString ChatRootView::lastErrorMessage() const
|
||||
{
|
||||
return m_lastErrorMessage;
|
||||
}
|
||||
|
||||
} // namespace QodeAssist::Chat
|
||||
|
||||
Reference in New Issue
Block a user