ci: auto build & obfuscate [2026-05-16 19:16:28] (Jenkins #21)

This commit is contained in:
Jenkins CI
2026-05-16 19:16:28 +08:00
parent 4bc6e0a047
commit d9fa3072a2
46 changed files with 4154 additions and 1584 deletions

View File

@@ -1,4 +1,7 @@
import Options from './Options.js';
import { detectVendorSync, getRegistry } from '../../../utils/api-vendor.js';
getRegistry().catch(() => {});
/**
* RequestBody (DTO)
@@ -24,7 +27,10 @@ export class RequestBody {
*/
toPayload() {
const { apiUrl, apiKey, model, maxTokens, temperature, params, fakeStream } = this.options;
const isGoogle = apiUrl && apiUrl.includes('googleapis.com');
const detectedVendor = detectVendorSync(apiUrl);
const isGoogle = detectedVendor
? detectedVendor === 'google'
: Boolean(apiUrl && apiUrl.includes('googleapis.com'));
// 基础字段 (Base Fields)
const payload = {
@@ -71,4 +77,4 @@ export class RequestBody {
}
}
export default RequestBody;
export default RequestBody;