diff --git a/packages/ai/test/zhipu-coding-plan-login.test.ts b/packages/ai/test/zhipu-coding-plan-login.test.ts index 85181d54e..e0901fbf1 100644 --- a/packages/ai/test/zhipu-coding-plan-login.test.ts +++ b/packages/ai/test/zhipu-coding-plan-login.test.ts @@ -13,7 +13,8 @@ describe("zhipu coding plan login", () => { "Content-Type": "application/json", Authorization: "Bearer zhipu-key", }); - validationBody = typeof init?.body === "string" ? (JSON.parse(init.body) as Record) : undefined; + validationBody = + typeof init?.body === "string" ? (JSON.parse(init.body) as Record) : undefined; return new Response(JSON.stringify({ choices: [{ message: { content: "ok" } }] }), { status: 200, headers: { "Content-Type": "application/json" }, diff --git a/packages/coding-agent/test/model-registry.test.ts b/packages/coding-agent/test/model-registry.test.ts index 3f13e520e..ef6b299bc 100644 --- a/packages/coding-agent/test/model-registry.test.ts +++ b/packages/coding-agent/test/model-registry.test.ts @@ -369,9 +369,7 @@ describe("ModelRegistry", () => { const calls: Array<{ provider: string; sessionId: string | undefined; - options: - | { baseUrl?: string; modelId?: string; forceRefresh?: boolean; signal?: AbortSignal } - | undefined; + options: { baseUrl?: string; modelId?: string; forceRefresh?: boolean; signal?: AbortSignal } | undefined; }> = []; const originalGetApiKey = authStorage.getApiKey.bind(authStorage); authStorage.getApiKey = async ( @@ -394,7 +392,10 @@ describe("ModelRegistry", () => { }, }); - const resolved = await registry.resolver(model, sessionId)({ + const resolved = await registry.resolver( + model, + sessionId, + )({ lastChance: false, error: undefined, signal: undefined,