feat: 初步支持 Gemini Business 并重构和整理

This commit is contained in:
foxhui
2025-11-28 17:53:48 +08:00
Unverified
parent 811e175054
commit 3a08ccadf4
18 changed files with 2590 additions and 1031 deletions
+10
View File
@@ -0,0 +1,10 @@
import crypto from 'crypto';
/**
* 生成随机 API Key
* 格式: sk-{48位十六进制字符}
* @returns {string} API Key
*/
export function generateApiKey() {
return 'sk-' + crypto.randomBytes(24).toString('hex');
}