test(moonshot): avoid redundant live result type

This commit is contained in:
Peter Steinberger
2026-04-27 11:07:10 +01:00
parent 9d52b615ad
commit b8a9dc9d78

View File

@@ -25,7 +25,7 @@ describeLive("moonshot plugin live", () => {
searchConfig: { kimi: { apiKey: KIMI_SEARCH_KEY }, cacheTtlMinutes: 0, timeoutSeconds: 90 },
} as never);
let result: Awaited<ReturnType<NonNullable<typeof tool>["execute"]>> | undefined;
let result: { provider?: string; content?: unknown; citations?: unknown } | undefined;
let lastError: unknown;
for (let attempt = 0; attempt < 2; attempt += 1) {
try {