Skip to content

Commit d84f514

Browse files
committed
tune self-hosted discovery cap
Signed-off-by: sallyom <[email protected]>
1 parent 374fa36 commit d84f514

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/plugins/provider-self-hosted-setup.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ beforeEach(() => {
2525

2626
// Mirrors SELF_HOSTED_DISCOVERY_JSON_MAX_BYTES in the source under test. Kept in
2727
// sync deliberately so the regression asserts the body is capped, not drained.
28-
const SELF_HOSTED_DISCOVERY_JSON_MAX_BYTES = 4 * 1024 * 1024;
28+
const SELF_HOSTED_DISCOVERY_JSON_MAX_BYTES = 16 * 1024 * 1024;
2929
const CHUNK_BYTES = 1024 * 1024;
3030

3131
/**

src/plugins/provider-self-hosted-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const log = createSubsystemLogger("plugins/self-hosted-provider-setup");
4444
// who can influence the configured endpoint, e.g. via SSRF, could serve an
4545
// unbounded JSON stream). Cap discovery response bodies before parsing so a
4646
// hostile or buggy endpoint cannot drive the setup wizard into OOM.
47-
const SELF_HOSTED_DISCOVERY_JSON_MAX_BYTES = 4 * 1024 * 1024;
47+
const SELF_HOSTED_DISCOVERY_JSON_MAX_BYTES = 16 * 1024 * 1024;
4848

4949
type OpenAICompatModelsResponse = {
5050
data?: Array<{

0 commit comments

Comments
 (0)