fix(TLS 驗證): 移除 git 與 OpenRouter 的不安全憑證略過設定
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import axios from 'axios';
|
||||
import { getInsecureHttpsAgent } from './config.js';
|
||||
import { warn } from './log.js';
|
||||
|
||||
/** 本次執行的 token 累計(跨所有 LLM 呼叫)。 */
|
||||
@@ -177,7 +176,6 @@ async function fetchOpenRouterQuota({ apiKey, baseURL }, get) {
|
||||
const resp = await get(`${stripSlash(baseURL)}/auth/key`, {
|
||||
headers: { Authorization: `Bearer ${apiKey}` },
|
||||
timeout: 30000,
|
||||
httpsAgent: getInsecureHttpsAgent(),
|
||||
});
|
||||
const d = resp.data?.data || {};
|
||||
const used = num(d.usage);
|
||||
|
||||
Reference in New Issue
Block a user