Spaces:
Running
Running
update
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ async def proxy_gemini(request: Request, protocol: ProtocolType, host:str, path:
|
|
| 77 |
api_key = api_key_info.get('api_key')
|
| 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-----------')
|
|
|
|
| 77 |
api_key = api_key_info.get('api_key')
|
| 78 |
api_key_show = api_key[:5]+'*****'+api_key[-5:]
|
| 79 |
print(f"使用API密钥:{api_key_show}")
|
| 80 |
+
client_headers["Authorization"] = f"Bearer {api_key}"
|
| 81 |
# api_key_id = api_key_info.get('api_key_id')
|
| 82 |
|
| 83 |
print('\n\n-----------')
|