Spaces:
Sleeping
Sleeping
update
Browse files- proxyserver-fastapi.py +4 -3
proxyserver-fastapi.py
CHANGED
|
@@ -96,10 +96,11 @@ async def proxy_request(url_path: str, request: Request):
|
|
| 96 |
headers["accept-encoding"]="gzip, deflate, br"
|
| 97 |
headers["authorization"]=f"Bearer {third_party_api_key}"
|
| 98 |
headers["content-type"]="application/json"
|
| 99 |
-
headers["postman-token"]="ad3552d5-c379-4ec0-ae86-9b26cc59bb4b"
|
| 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"
|
|
|
|
| 96 |
headers["accept-encoding"]="gzip, deflate, br"
|
| 97 |
headers["authorization"]=f"Bearer {third_party_api_key}"
|
| 98 |
headers["content-type"]="application/json"
|
| 99 |
+
# headers["postman-token"]="ad3552d5-c379-4ec0-ae86-9b26cc59bb4b"
|
| 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 |
+
|
| 104 |
# headers["x-forwarded-for"]="45.144.242.202"
|
| 105 |
# headers["x-forwarded-port"]="443"
|
| 106 |
# headers["x-forwarded-proto"]="https"
|