feat: add support for Grok Web and Perplexity Web providers

This commit is contained in:
decolua
2026-04-22 11:58:53 +07:00
parent eeb2dc9e30
commit abb04c5366
17 changed files with 1583 additions and 13 deletions

View File

@@ -53,6 +53,11 @@ const ALIAS_TO_PROVIDER_ID = {
vertex: "vertex",
vxp: "vertex-partner",
"vertex-partner": "vertex-partner",
// Web cookie providers
gw: "grok-web",
"grok-web": "grok-web",
pw: "perplexity-web",
"perplexity-web": "perplexity-web",
};
/**

View File

@@ -206,7 +206,7 @@ export async function refreshCodexToken(refreshToken, log) {
grant_type: "refresh_token",
refresh_token: refreshToken,
client_id: PROVIDERS.codex.clientId,
scope: "openid profile email offline_access",
scope: "openid profile email",
}),
});