From 0d74f769f1fbf6b22e782c88c703e5b2f082e272 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Fri, 8 Mar 2024 10:19:33 +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 | 5 ++++- 2 files changed, 6 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..f91ba95ac4 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -4,4 +4,7 @@ compatibility_date = "2023-07-31" workers_dev = true rules = [ { type = "ESModule", globs = ["**/*.js"], fallthrough = true } -] \ No newline at end of file +] + +[placement] +mode = "smart"