fix(TLS 驗證): 移除 git 與 OpenRouter 的不安全憑證略過設定

This commit is contained in:
2026-06-29 10:49:22 +00:00
parent f26e9deba7
commit 68ce92b0e5
4 changed files with 4 additions and 7 deletions
-2
View File
@@ -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);