airsltd commited on
Commit
c310793
·
1 Parent(s): 8609ea8
Files changed (1) hide show
  1. 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": "application/json",
115
- "accept-encoding": "gzip,deflate",
116
  "authorization": "Bearer AIzaSyDCbN6WDNIEtB8yJmNX40ScechQu6mCZoo",
117
  "content-type": "application/json",
118
- "user-agent": "Ds/JS 4.83.0",
119
- "x-amzn-trace-id": "Root=1-68a06288-022c3dab58488992234ef2ea",
120
- "x-direct-url": "https://airsltd-fastapi-proxy.hf.space/--replicas/zy7x5/v1/https/generativelanguage.googleapis.com/v1beta/openai/chat/completions",
121
- "x-forwarded-for": "45.144.242.202",
 
122
  "x-forwarded-port": "443",
123
  "x-forwarded-proto": "https",
124
- "x-ip-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpcCI6IjQ1LjE0NC4yNDIuMjAyIiwidXNlciI6bnVsbCwidXVpZCI6bnVsbCwiZXJyb3IiOiJJbnZhbGlkQWNjZXNzVG9rZW4iLCJleHAiOjE3NTUzNDE1MDh9.CoTcnjFjlRZYiA7wJvfAJ0ktNYZb72b7iU327YYFALs",
125
- "x-request-id": "6ErqXF",
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