Spaces:
Sleeping
Sleeping
update
Browse files- proxyserver-fastapi.py +5 -5
proxyserver-fastapi.py
CHANGED
|
@@ -100,11 +100,11 @@ async def proxy_request(url_path: str, request: Request):
|
|
| 100 |
headers["user-agent"]="PostmanRuntime/7.45.0"
|
| 101 |
headers["x-amzn-trace-id"]="Root=1-68a054e2-78a54d08502e945f387c1952"
|
| 102 |
headers["x-direct-url"]="https://airsltd-fastapi-proxy.hf.space/--replicas/pn6yq/v1/https/generativelanguage.googleapis.com/v1beta/openai/chat/completions"
|
| 103 |
-
headers["x-forwarded-for"]="45.144.242.202"
|
| 104 |
-
headers["x-forwarded-port"]="443"
|
| 105 |
-
headers["x-forwarded-proto"]="https"
|
| 106 |
-
headers["x-ip-token"]="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpcCI6IjQ1LjE0NC4yNDIuMjAyIiwidXNlciI6bnVsbCwidXVpZCI6bnVsbCwiZXJyb3IiOiJJbnZhbGlkQWNjZXNzVG9rZW4iLCJleHAiOjE3NTUzMzgwMTR9.1e-GZx1NaD0_91Bs2g0SZIAiUCSVc8g5EUHVrTGsbcE"
|
| 107 |
-
headers["x-request-id"]="YG7fx0"
|
| 108 |
|
| 109 |
|
| 110 |
print("\n\n请求头部-2: ")
|
|
|
|
| 100 |
headers["user-agent"]="PostmanRuntime/7.45.0"
|
| 101 |
headers["x-amzn-trace-id"]="Root=1-68a054e2-78a54d08502e945f387c1952"
|
| 102 |
headers["x-direct-url"]="https://airsltd-fastapi-proxy.hf.space/--replicas/pn6yq/v1/https/generativelanguage.googleapis.com/v1beta/openai/chat/completions"
|
| 103 |
+
# headers["x-forwarded-for"]="45.144.242.202"
|
| 104 |
+
# headers["x-forwarded-port"]="443"
|
| 105 |
+
# headers["x-forwarded-proto"]="https"
|
| 106 |
+
# headers["x-ip-token"]="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpcCI6IjQ1LjE0NC4yNDIuMjAyIiwidXNlciI6bnVsbCwidXVpZCI6bnVsbCwiZXJyb3IiOiJJbnZhbGlkQWNjZXNzVG9rZW4iLCJleHAiOjE3NTUzMzgwMTR9.1e-GZx1NaD0_91Bs2g0SZIAiUCSVc8g5EUHVrTGsbcE"
|
| 107 |
+
# headers["x-request-id"]="YG7fx0"
|
| 108 |
|
| 109 |
|
| 110 |
print("\n\n请求头部-2: ")
|