mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(ui): surface reload no-op as a warning, not an error
The reload no-op path used NotificationsManager.fromBackend, which classifies the message as an error toast. A forced-backup reload is informational, so render it via NotificationsManager.warning instead. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f8c0ce88b0
commit
c470aeec50
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ const PriceDataReload: React.FC<PriceDataReloadProps> = ({
|
|||
await fetchReloadStatus();
|
||||
await fetchSourceInfo();
|
||||
} else if (response.status === "no_op") {
|
||||
NotificationsManager.fromBackend(
|
||||
NotificationsManager.warning(
|
||||
response.message || "Reload was a no-op because LITELLM_LOCAL_MODEL_COST_MAP forces the bundled cost map.",
|
||||
);
|
||||
await fetchReloadStatus();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue