Add proxy configuration to more network fetches. (#7328)

This commit is contained in:
Dominic Cooney authored and GitHub committed 2025-11-10 09:54:54 -08:00
1 parent ba98b44504
commit 67bc9932e5
21 files changed
+48 -11

No files matched your search

@@ -1,6 +1,7 @@
import { EmptyRequest } from "@shared/proto/cline/common"
import { OpenRouterCompatibleModelInfo, OpenRouterModelInfo } from "@shared/proto/cline/models"
import axios from "axios"
import { getAxiosSettings } from "@/shared/net"
import { toRequestyServiceUrl } from "@/shared/clients/requesty"
import { Controller } from ".."
@@ -33,7 +34,7 @@ export async function refreshRequestyModels(controller: Controller, _: EmptyRequ
const headers = {
Authorization: `Bearer ${apiKey}`,
}
const response = await axios.get(url, { headers })
const response = await axios.get(url, { headers, ...getAxiosSettings() })
if (response.data?.data) {
for (const model of response.data.data) {
const modelInfo: OpenRouterModelInfo = OpenRouterModelInfo.create({