feat(ai): enabled 120000ms OpenAI stream timeout to keep streams alive

- Increased DEFAULT_OPENAI_STREAM_IDLE_TIMEOUT_MS to 120,000 ms so OpenAI streams stay alive longer.
This commit is contained in:
can1357
2026-04-11 06:38:21 +02:00
parent 90338f4dc6
commit 64e2ac6f11
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -1,6 +1,11 @@
# Changelog
## [Unreleased]
### Changed
- Updated default OpenAI stream idle timeout to 120,000 milliseconds to keep stream generation alive longer
### Fixed
- Fixed duplicate synthetic tool results being generated when a real tool result appears later in message history
+1 -1
View File
@@ -1,6 +1,6 @@
import { $env } from "@oh-my-pi/pi-utils";
const DEFAULT_OPENAI_STREAM_IDLE_TIMEOUT_MS = 60_000;
const DEFAULT_OPENAI_STREAM_IDLE_TIMEOUT_MS = 120_000;
const DEFAULT_STREAM_FIRST_EVENT_TIMEOUT_MS = 60_000;
function normalizeIdleTimeoutMs(value: string | undefined, fallback: number): number | undefined {