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:
@@ -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,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 {
|
||||
|
||||
Reference in New Issue
Block a user