Spaces:
Running
Running
update
Browse files
app.py
CHANGED
|
@@ -78,9 +78,11 @@ async def proxy_gemini(request: Request, protocol: ProtocolType, host:str, path:
|
|
| 78 |
api_key_show = api_key[:5]+'*****'+api_key[-5:]
|
| 79 |
print(f"使用API密钥:{api_key_show}")
|
| 80 |
client_headers["Authorization"] = api_key
|
| 81 |
-
api_key_id = api_key_info.get('api_key_id')
|
| 82 |
|
|
|
|
| 83 |
print(client_headers)
|
|
|
|
| 84 |
|
| 85 |
# 调用 do_proxy 并返回其结果
|
| 86 |
return await do_proxy(real_url, request.method, client_headers, client_body)
|
|
|
|
| 78 |
api_key_show = api_key[:5]+'*****'+api_key[-5:]
|
| 79 |
print(f"使用API密钥:{api_key_show}")
|
| 80 |
client_headers["Authorization"] = api_key
|
| 81 |
+
# api_key_id = api_key_info.get('api_key_id')
|
| 82 |
|
| 83 |
+
print('\n\n-----------')
|
| 84 |
print(client_headers)
|
| 85 |
+
print('-----------\n\n')
|
| 86 |
|
| 87 |
# 调用 do_proxy 并返回其结果
|
| 88 |
return await do_proxy(real_url, request.method, client_headers, client_body)
|