mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-16 14:57:15 +00:00
fix(ui): improve agent debug and model test feedback
This commit is contained in:
@@ -522,8 +522,9 @@ export default function ModelsPanel({
|
||||
setTestResult({ success: true, duration });
|
||||
} catch (err) {
|
||||
console.error('Failed to test model', err);
|
||||
toast.error(t('models.testError') + ': ' + (err as CustomApiError).msg);
|
||||
setTestResult(null);
|
||||
const message = (err as CustomApiError).msg || t('models.testError');
|
||||
toast.error(t('models.testError') + ': ' + message);
|
||||
setTestResult({ success: false, message });
|
||||
} finally {
|
||||
setIsTesting(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user