fix(usage): add kilocode fallback to resolveProviderUsageAuthFallback
This commit is contained in:
parent
aef7fe3702
commit
4127908b4d
@ -220,6 +220,14 @@ async function resolveProviderUsageAuthFallback(params: {
|
||||
});
|
||||
return apiKey ? { provider: "xiaomi", token: apiKey } : null;
|
||||
}
|
||||
case "kilocode": {
|
||||
const apiKey = resolveProviderApiKeyFromConfigAndStore({
|
||||
state: params.state,
|
||||
providerIds: ["kilocode"],
|
||||
envDirect: [params.state.env.KILOCODE_API_KEY],
|
||||
});
|
||||
return apiKey ? { provider: "kilocode", token: apiKey } : null;
|
||||
}
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user