Skip to content

Commit

Permalink
[Fix] 🐛 BingAPI Crash on CFWK & Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Mar 8, 2024
1 parent 6ead161 commit acf0992
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cloudflare/bingapi.js
Original file line number Diff line number Diff line change
@@ -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', // 精准
Expand Down
10 changes: 9 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ compatibility_date = "2023-07-31"
workers_dev = true
rules = [
{ type = "ESModule", globs = ["**/*.js"], fallthrough = true }
]
]

[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"

0 comments on commit acf0992

Please sign in to comment.