fix(webui): alerts drop UI-explaining prose and align Dismiss with the title
This commit is contained in:
1 parent
9eabc624ee
commit
4fd6efb7f0
3 files changed
+70
-75
No files matched your search
@@ -92,7 +92,7 @@ func modelAliasAlerts(aliases map[string]string, catalog modelcatalog.Snapshot)
|
||||
}
|
||||
if strings.TrimSpace(aliases[config.DefaultModelAlias]) == "" {
|
||||
out = append(out, input(config.DefaultModelAlias, "No default model alias is set",
|
||||
"Agent steps and chat use the default alias when none is named. Point it at a model in model settings."))
|
||||
"Set it to a model."))
|
||||
}
|
||||
for _, alias := range slices.Sorted(maps.Keys(aliases)) {
|
||||
providerID, modelID, ok := strings.Cut(aliases[alias], "/")
|
||||
@@ -104,7 +104,7 @@ func modelAliasAlerts(aliases map[string]string, catalog modelcatalog.Snapshot)
|
||||
// a retired model.
|
||||
if len(offered) > 0 && !slices.Contains(offered, modelID) {
|
||||
out = append(out, input(alias, fmt.Sprintf("Model alias %q points at a model that no longer exists", alias),
|
||||
fmt.Sprintf("The %s provider no longer offers the model this alias names. Choose another in model settings.", providerID)))
|
||||
fmt.Sprintf("The %s provider no longer offers the model this alias names. Choose another model.", providerID)))
|
||||
}
|
||||
}
|
||||
return out
|
||||
|
||||
Reference in new issue
Block a user