mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-26 01:11:37 +00:00
Verified: - pnpm install --frozen-lockfile - pnpm exec vitest run extensions/openai/openai-codex-provider.runtime.test.ts extensions/openai/openai-provider.test.ts
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);
|
|
}
|