Show model selector provider errors

This commit is contained in:
Mohamed Boudra
2026-05-29 17:16:35 +07:00
parent 7ed0ce97df
commit 0803d5ff41
7 changed files with 128 additions and 48 deletions
@@ -162,6 +162,9 @@ export function resolveSelectedModelLabel(input: {
if (provider.modelSelection.kind === "loading") {
return "Loading...";
}
if (provider.modelSelection.kind === "error") {
return "Error";
}
if (provider.modelSelection.kind !== "models") {
return "Select model";
}