feat(providers): add Baidu Qianfan Coding Plan for Claude Code (#2322)

* feat(providers): add baidu qianfan coding plan presets

* refactor(providers): align qianfan presets with existing format

* chore(providers): narrow qianfan coding plan scope
This commit is contained in:
jimmy
2026-05-01 17:35:18 +08:00
committed by GitHub
parent 7f0c7b11e5
commit db66348ff8
6 changed files with 65 additions and 0 deletions
+14
View File
@@ -62,6 +62,20 @@ export function useStreamCheck(appId: AppId) {
closeButton: true,
},
);
} else if (result.errorCategory === "quotaExceeded") {
toast.warning(
t("streamCheck.quotaExceeded", {
providerName: providerName,
defaultValue: `${providerName} Coding Plan quota has been exceeded`,
}),
{
description: t("streamCheck.quotaExceededHint", {
defaultValue: "",
}),
duration: 10000,
closeButton: true,
},
);
} else {
const httpStatus = result.httpStatus;
const hintKey = httpStatus