fix(ai): apply Mistral request timeout only to response headers

Long Mistral streams (e.g. extended thinking) were aborted once timeoutMs
elapsed, even while data was still arriving. The timeout now covers only
waiting for response headers; body stalls are left to the HTTP client idle
timeout.

fixes #10609
This commit is contained in:
David Brailovsky 2026-10-08 10:20:44 +02:00
parent 7f9e1198f2
commit 6b07b4e572
4 changed files with 79 additions and 23 deletions

View file

@ -10,6 +10,10 @@
- Changed the `showHardwareCursor` setting to use only the terminal cursor instead of also drawing Pi's reverse-video cursor
### Fixed
- Fixed Mistral streams being aborted mid-generation (e.g. during long thinking) after the request timeout; the timeout now applies only to waiting for response headers ([#10609](https://github.com/earendil-works/pi/issues/10609))
## [1.1.0] - 2026-10-07
### New Features