mirror of
https://github.com/luckyyzh/pi-agent-integrated.git
synced 2026-10-03 11:09:34 +00:00
feat: integrate Pi backend and Pi Web
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function hasCloudflareWorkersAICredentials(): boolean {
|
||||
return !!process.env.CLOUDFLARE_API_KEY && !!process.env.CLOUDFLARE_ACCOUNT_ID;
|
||||
}
|
||||
|
||||
export function hasCloudflareAiGatewayCredentials(): boolean {
|
||||
return (
|
||||
!!process.env.CLOUDFLARE_API_KEY && !!process.env.CLOUDFLARE_ACCOUNT_ID && !!process.env.CLOUDFLARE_GATEWAY_ID
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user