mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user