yxmiler commited on
Commit
bcf4487
·
verified ·
1 Parent(s): 425c0cb

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -36,7 +36,7 @@ const CONFIG = {
36
  },
37
  DEFAULT_HEADERS: {
38
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
39
- "Cache-Control": "no-cache, no-store, must-revalidate",
40
  "Connection": "close",
41
  "Accept": "text/event-stream",
42
  "Accept-Encoding": "gzip, deflate, br, zstd",
@@ -526,7 +526,7 @@ app.post('/hf/v1/chat/completions', async (req, res) => {
526
  try {
527
  console.log("开始请求");
528
  //发送请求
529
- var response = await fetch(`https://strong-tuna-37.deno.dev`, {
530
  method: "POST",
531
  headers: {
532
  ...CONFIG.DEFAULT_HEADERS
 
36
  },
37
  DEFAULT_HEADERS: {
38
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
39
+ "Cache-Control": "no-cache, no-store",
40
  "Connection": "close",
41
  "Accept": "text/event-stream",
42
  "Accept-Encoding": "gzip, deflate, br, zstd",
 
526
  try {
527
  console.log("开始请求");
528
  //发送请求
529
+ var response = await fetch(`https://partyrock.aws/stream/getCompletion`, {
530
  method: "POST",
531
  headers: {
532
  ...CONFIG.DEFAULT_HEADERS