Spaces:
Sleeping
Sleeping
update
Browse files- proxyserver-fastapi.py +9 -16
proxyserver-fastapi.py
CHANGED
|
@@ -111,26 +111,19 @@ async def proxy_request(url_path: str, request: Request):
|
|
| 111 |
|
| 112 |
|
| 113 |
headers = {
|
| 114 |
-
"accept": "
|
| 115 |
-
"accept-encoding": "gzip,deflate",
|
| 116 |
"authorization": "Bearer AIzaSyDCbN6WDNIEtB8yJmNX40ScechQu6mCZoo",
|
| 117 |
"content-type": "application/json",
|
| 118 |
-
"
|
| 119 |
-
"
|
| 120 |
-
"x-
|
| 121 |
-
"x-
|
|
|
|
| 122 |
"x-forwarded-port": "443",
|
| 123 |
"x-forwarded-proto": "https",
|
| 124 |
-
"x-ip-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
| 125 |
-
"x-request-id": "
|
| 126 |
-
"x-stainless-arch": "x64",
|
| 127 |
-
"x-stainless-lang": "js",
|
| 128 |
-
"x-stainless-os": "Linux",
|
| 129 |
-
"x-stainless-package-version": "4.83.0",
|
| 130 |
-
"x-stainless-retry-count": "0",
|
| 131 |
-
"x-stainless-runtime": "node",
|
| 132 |
-
"x-stainless-runtime-version": "v20.11.1",
|
| 133 |
-
"x-stainless-timeout": "600000"
|
| 134 |
}
|
| 135 |
|
| 136 |
|
|
|
|
| 111 |
|
| 112 |
|
| 113 |
headers = {
|
| 114 |
+
"accept": "*/*",
|
| 115 |
+
"accept-encoding": "gzip, deflate, br",
|
| 116 |
"authorization": "Bearer AIzaSyDCbN6WDNIEtB8yJmNX40ScechQu6mCZoo",
|
| 117 |
"content-type": "application/json",
|
| 118 |
+
"postman-token": "6668952f-bdad-4454-9bb8-e97553fc7678",
|
| 119 |
+
"user-agent": "PostmanRuntime/7.45.0",
|
| 120 |
+
"x-amzn-trace-id": "Root=1-68a06427-671a7ab91bc8f8aa370f02f1",
|
| 121 |
+
"x-direct-url": "https://airsltd-fastapi-proxy.hf.space/--replicas/8yrch/v1/https/generativelanguage.googleapis.com/v1beta/openai/chat/completions",
|
| 122 |
+
"x-forwarded-for": "222.125.206.179",
|
| 123 |
"x-forwarded-port": "443",
|
| 124 |
"x-forwarded-proto": "https",
|
| 125 |
+
"x-ip-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpcCI6IjIyMi4xMjUuMjA2LjE3OSIsInVzZXIiOm51bGwsInV1aWQiOm51bGwsImVycm9yIjoiSW52YWxpZEFjY2Vzc1Rva2VuIiwiZXhwIjoxNzU1MzQxOTIzfQ.G4LXLe1O6Q-VWQkj3C9aXoVe1oCRhArsXQNPxc3Wswc",
|
| 126 |
+
"x-request-id": "--eng0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
}
|
| 128 |
|
| 129 |
|