tanbushi commited on
Commit
5b7ab1a
·
1 Parent(s): b05355e
Files changed (1) hide show
  1. app.py +1 -1
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-----------')