From acf099211d101e9801d5ead9479c5973153aba80 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Fri, 8 Mar 2024 10:03:06 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=F0=9F=90=9B=20BingAPI=20Crash=20on=20C?= =?UTF-8?q?FWK=20&=20Vercel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloudflare/bingapi.js | 4 ++-- wrangler.toml | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cloudflare/bingapi.js b/cloudflare/bingapi.js index 50eca6088e..583db8d76d 100644 --- a/cloudflare/bingapi.js +++ b/cloudflare/bingapi.js @@ -1,8 +1,8 @@ const AUTHOR = 'Harry-zklcdc/go-proxy-bingai'; const SPILT = '\x1e'; -const BING_ORIGIN = 'http://localhost:8080'; -const SYDNEY_ORIGIN = 'http://localhost:8080'; +const BING_ORIGIN = 'https://www.bing.com'; +const SYDNEY_ORIGIN = 'https://sydney.bing.com'; export const bingchatModel = { PRECISE: 'Precise', // 精准 diff --git a/wrangler.toml b/wrangler.toml index 8c77ad92eb..ba0634de32 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -4,4 +4,12 @@ compatibility_date = "2023-07-31" workers_dev = true rules = [ { type = "ESModule", globs = ["**/*.js"], fallthrough = true } -] \ No newline at end of file +] + +[placement] +mode = "smart" + +[vars] +APIKEY = "sk-xxxxxxxxxxxxxx" +BYPASS_SERVER = "https://bypass.zklcdc.xyz" +Go_Proxy_BingAI_USER_TOKEN = "1JZEi_Pmvqx2EX8lNGSHf2p7IEL5G7Q7RO9SYFfpVgaVQ9s3bTIXBiWRHWTMpzqoyq_qVKsmrb3IqMJ1hD9Bq1Ohb-RN1zXNODPWRKxNUSpWg8L1e5A5WdnFKpPFIUUyK_97YKKTneDkRCFgqfcKUyY1YjJ8oXpw3vT2ATd-lZr-DNznLaRO8MzhHuce-lACIQ95fjEfHDmRX7vZCZR4Ddw" \ No newline at end of file