fix(types): preserve The Old LLM proxy contracts (#9850)

Co-authored-by: backryun <bakryun0718@proton.me>
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-08-09 09:51:44 -03:00
committed by GitHub
parent 97a1355037
commit 0b5ab6570d
2 changed files with 5 additions and 7 deletions

View File

@@ -108,13 +108,9 @@ export function mapModel(model: string): string {
const TOKEN_SEED = "oldllm-client-2026";
const UA_PREFIX = CHROME_UA.slice(0, 20); // "Mozilla/5.0 (Windows"
type TheOldLlmProxy = {
type?: string;
host: string;
port: number;
username?: string | null;
password?: string | null;
} | null;
type TheOldLlmProxy = Awaited<
ReturnType<typeof import("../../src/lib/db/proxies").resolveProxyForProvider>
>;
interface TheOldLlmFetchDependencies {
resolveProxy: () => Promise<TheOldLlmProxy>;

View File

@@ -10,6 +10,8 @@ test("theoldllm dispatches through its provider proxy assignment", async () => {
port: 8080,
username: "user",
password: "secret",
family: "ipv4",
name: "residential-primary",
};
let observedProxy: unknown = null;
let fetchCalls = 0;