style: bun run fix
This commit is contained in:
@@ -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<string, unknown>) : undefined;
|
||||
validationBody =
|
||||
typeof init?.body === "string" ? (JSON.parse(init.body) as Record<string, unknown>) : undefined;
|
||||
return new Response(JSON.stringify({ choices: [{ message: { content: "ok" } }] }), {
|
||||
status: 200,
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user