style(lint): fix minimax usage lint
This commit is contained in:
@@ -220,7 +220,11 @@ export async function fetchMinimaxUsage(
|
|||||||
const baseResp = isRecord(data.base_resp)
|
const baseResp = isRecord(data.base_resp)
|
||||||
? (data.base_resp as MinimaxBaseResp)
|
? (data.base_resp as MinimaxBaseResp)
|
||||||
: undefined;
|
: undefined;
|
||||||
if (baseResp?.status_code && baseResp.status_code !== 0) {
|
if (
|
||||||
|
baseResp &&
|
||||||
|
typeof baseResp.status_code === "number" &&
|
||||||
|
baseResp.status_code !== 0
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
provider: "minimax",
|
provider: "minimax",
|
||||||
displayName: PROVIDER_LABELS.minimax,
|
displayName: PROVIDER_LABELS.minimax,
|
||||||
|
|||||||
Reference in New Issue
Block a user