mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
feat: gemini 支持
This commit is contained in:
@@ -11,6 +11,7 @@ const authenticateApiKey = async (req, res, next) => {
|
||||
try {
|
||||
// 安全提取API Key,支持多种格式
|
||||
const apiKey = req.headers['x-api-key'] ||
|
||||
req.headers['x-goog-api-key'] ||
|
||||
req.headers['authorization']?.replace(/^Bearer\s+/i, '') ||
|
||||
req.headers['api-key'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user