airsltd commited on
Commit
35ee852
·
1 Parent(s): b78f639
Files changed (1) hide show
  1. proxyserver-fastapi.py +4 -4
proxyserver-fastapi.py CHANGED
@@ -87,10 +87,10 @@ async def proxy_request(url_path: str, request: Request):
87
  # 将检索到的第三方API密钥添加到目标API的请求头中
88
  headers["authorization"] = f"Bearer {third_party_api_key}"
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
- print(f"请求头部-1: {headers}")
91
-
92
- headers=["authorization"]=f"Bearer {third_party_api_key}"
93
- print(f"请求头部-2: {headers}")
94
 
95
 
96
 
 
87
  # 将检索到的第三方API密钥添加到目标API的请求头中
88
  headers["authorization"] = f"Bearer {third_party_api_key}"
89
  print(f"添加第三方API Key到请求头: Authorization: Bearer {third_party_api_key[:5]}...")
90
+ print(f"\n\n请求头部-1: {headers}")
91
+
92
+ headers["authorization"]=f"Bearer {third_party_api_key}"
93
+ print(f"\n\n请求头部-2: {headers}")
94
 
95
 
96