muzsang commited on
Commit
541e1ea
·
verified ·
1 Parent(s): c9e7b2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -254,12 +254,12 @@ class NotionAIClient:
254
  logger.debug(f"请求体: {json.dumps(body, ensure_ascii=False)}")
255
 
256
  try:
 
257
  response = requests.post(
258
  Config.NOTION_API_URL,
259
  headers=headers,
260
  json=body,
261
  stream=stream,
262
- proxies={"http": None, "https": None},
263
  timeout=Config.REQUEST_TIMEOUT
264
  )
265
 
 
254
  logger.debug(f"请求体: {json.dumps(body, ensure_ascii=False)}")
255
 
256
  try:
257
+ # 修复:移除有问题的 proxies 参数
258
  response = requests.post(
259
  Config.NOTION_API_URL,
260
  headers=headers,
261
  json=body,
262
  stream=stream,
 
263
  timeout=Config.REQUEST_TIMEOUT
264
  )
265