Skip to content

Commit 9bc4e39

Browse files
chore(deps): update dependency mermaid to v11.16.0 (#742)
* chore(deps): update dependency mermaid to v11.16.0 * test(e2e): addressing zai test flake --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Elliott de Launay <edelauna@gmail.com>
1 parent d4741f6 commit 9bc4e39

2 files changed

Lines changed: 34 additions & 31 deletions

File tree

apps/vscode-e2e/src/suite/providers/zai.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ function installZAiFetchInterceptor(
4747
})
4848
: {}
4949

50-
if (capture) {
51-
capture.maxTokens = body.max_tokens
52-
}
53-
5450
if (passthrough) {
51+
if (capture) {
52+
capture.maxTokens = body.max_tokens
53+
}
5554
return original.call(globalThis, input, init as RequestInit)
5655
}
5756

@@ -65,6 +64,10 @@ function installZAiFetchInterceptor(
6564
throw new Error(`Z.ai fetch interceptor: no fixture matched. Last user message: ${text.slice(0, 200)}`)
6665
}
6766

67+
if (capture) {
68+
capture.maxTokens = body.max_tokens
69+
}
70+
6871
return makeZAiSSEResponse(fixture.result)
6972
}
7073

pnpm-lock.yaml

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)