From 3637133b2e0b3525340006a673fca3f10ecd3802 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=B7=E6=B1=82=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2e9ee1d..58db462 100644 --- a/main.py +++ b/main.py @@ -926,7 +926,7 @@ def send_text_prompt_and_get_response(messages, api_key, stream, model): token = get_token() payload["arkose_token"] = token # 在headers中添加新字段 - headers["Openai-Sentinel-Arkose-Token"] = token + headers["Openai-Sentinel-Arkose-Token"] = token logger.debug(f"headers: {headers}") logger.debug(f"payload: {payload}") response = requests.post(url, headers=headers, json=payload, stream=True)