feat(providers): add qoder-cn support for Qoder CN (qoder.com.cn)

This commit is contained in:
Liang.Xu
2026-09-21 20:45:19 +07:00
parent f67d5a0c93
commit 402745dc1f
30 changed files with 487 additions and 234 deletions
+2 -2
View File
@@ -227,13 +227,13 @@ export async function getVercelAiGatewayUsage(apiKey, proxyOptions = null) {
}
}
export async function getQoderUsage(accessToken, proxyOptions = null) {
export async function getQoderUsage(accessToken, proxyOptions = null, providerId = "qoder") {
if (!accessToken) {
return { message: "Qoder usage unavailable: no access token" };
}
try {
const response = await proxyAwareFetch(
U("qoder").url,
U(providerId).url,
{
method: "GET",
headers: {