The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
test(benchmark): the stall tests type-check against the real chunk shape
David3308759ca6d1
diff --git a/src/lib/__tests__/benchmark-run.test.ts b/src/lib/__tests__/benchmark-run.test.tsindex 077541d1..7c8e47c7 100644--- a/src/lib/__tests__/benchmark-run.test.ts+++ b/src/lib/__tests__/benchmark-run.test.ts@@ -1,4 +1,4 @@-import { describe, it, expect } from 'vitest'+import { describe, it, expect, vi } from 'vitest'import { measureRun } from '../benchmark-run'import { BENCHMARK_PROMPTS } from '../benchmark-prompts'import type { ChatStreamChunk } from '../../api/providers/types'@@ -165,9 +165,9 @@ describe('the wall clock reaches a stream that has stopped sending', () => {})it('a stream that finishes normally is untouched by the deadline', async () => {- async function* good() {- yield { content: 'a' }- yield { content: 'b', finishReason: 'stop' }+ async function* good(): AsyncGenerator<ChatStreamChunk> {+ yield { content: 'a', done: false }+ yield { content: 'b', finishReason: 'stop', done: true }}const m = await measureRun(good(), () => true, {clock: () => 0,