Просмотр исходного кода

fix: cloudflare provider information (#6426)

Rohan Mukherjee 1 месяц назад
Родитель
Сommit
23bbfb3d15
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      packages/opencode/src/cli/cmd/auth.ts

+ 6 - 0
packages/opencode/src/cli/cmd/auth.ts

@@ -349,6 +349,12 @@ export const AuthLoginCommand = cmd({
           prompts.log.info("You can create an api key at https://vercel.link/ai-gateway-token")
         }
 
+        if (["cloudflare", "cloudflare-ai-gateway"].includes(provider)) {
+          prompts.log.info(
+            "Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway",
+          )
+        }
+
         const key = await prompts.password({
           message: "Enter your API key",
           validate: (x) => (x && x.length > 0 ? undefined : "Required"),