Skip to content
Discussion options

You must be logged in to vote

ๆ’ไปถๅ‘ๅธƒไบ†๏ผšhttps://github.com/d3vmeh/dsh-fetch-timeouts

ๅฎ‰่ฃ…๏ผš

dsh plugin --profile web add dsh-fetch-timeouts

้ป˜่ฎคๆŠŠ headersTimeout ๅ’Œ bodyTimeout ้ƒฝ่ฐƒๅˆฐ 30 ๅˆ†้’Ÿ๏ผŒๅฏไปฅๅœจ profile ็š„ cordis.patch.yml ้‡Œๆ”นใ€‚่ฎฐๅพ—ๅŒๆ—ถๆŠŠ ollama ่ทฏ็”ฑไธŠ็š„ streamIdleTimeoutMs ๅ’Œ timeoutMs ไนŸ่ฐƒๅคง๏ผŒๅฆๅˆ™ dsh ่‡ชๅทฑ็š„็œ‹้—จ็‹—ไผšๅ…ˆ่งฆๅ‘ใ€‚ๅฎƒๆ˜ฏๅ…จ่ฟ›็จ‹็”Ÿๆ•ˆ็š„๏ผˆdsh ้‡Œๆ‰€ๆœ‰ fetch ้ƒฝไผš็”จๆ›ด้•ฟ็š„่ถ…ๆ—ถ๏ผ‰๏ผŒๅœจๆœฌๅœฐๅ•ไบบไฝฟ็”จ็š„ๆœบๅ™จไธŠๆฒก้—ฎ้ข˜๏ผ›ๅฆ‚ๆžœ่ฎพ็ฝฎไบ† NODE_USE_ENV_PROXY๏ผŒไปฃ็†ไป็„ถๆœ‰ๆ•ˆใ€‚Windows ไธŠๆˆ‘ๆฒกๆœ‰ๆต‹่ฟ‡๏ผŒ่ฏ•ไบ†ไน‹ๅŽๆฌข่ฟŽๅ้ฆˆใ€‚

(English: published. Install with the line above; defaults to 30 minutes for both timeouts, configurable in your profile patch. Also raise streamIdleTimeoutMs and timeoutMs on the ollama route or dsh's own watchdog fires first. Process-wide, proxy env vars still honoured. Not tested on Windows yet, feedback welcome.)

Replies: 8 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@yuubo
Comment options

@yuubo
Comment options

Comment options

You must be logged in to vote
1 reply
@yuubo
Comment options

Comment options

You must be logged in to vote
1 reply
@yuubo
Comment options

Comment options

You must be logged in to vote
1 reply
@yuubo
Comment options

Comment options

You must be logged in to vote
1 reply
@yuubo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@yuubo
Comment options

@yuubo
Comment options

@d3vmeh
Comment options

@yuubo
Comment options

Answer selected by yuubo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants