mirror of https://github.com/openclaw/openclaw.git
10 lines
417 B
TypeScript
10 lines
417 B
TypeScript
import { getOAuthApiKey as getOAuthApiKeyFromPi } from "@mariozechner/pi-ai/oauth";
|
|
import { ensureGlobalUndiciEnvProxyDispatcher } from "openclaw/plugin-sdk/infra-runtime";
|
|
|
|
export async function getOAuthApiKey(
|
|
...args: Parameters<typeof getOAuthApiKeyFromPi>
|
|
): Promise<Awaited<ReturnType<typeof getOAuthApiKeyFromPi>>> {
|
|
ensureGlobalUndiciEnvProxyDispatcher();
|
|
return await getOAuthApiKeyFromPi(...args);
|
|
}
|