Skip to content

Commit

Permalink
增加请求头
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 authored Feb 9, 2024
1 parent d445213 commit 3637133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3637133

Please sign in to comment.