mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 03:02:14 +03:00
fix(types): preserve The Old LLM proxy contracts (#9850)
Co-authored-by: backryun <bakryun0718@proton.me>
This commit is contained in:
committed by
GitHub
parent
97a1355037
commit
0b5ab6570d
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user