mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
chore: clamp min yield time for empty write_stdin (#9156)
After evals, 0 impact on performance
This commit is contained in:
1 parent
bdae0035ec
commit
32b1795ff4
3 files changed
+16
-5
No files matched your search
@@ -45,6 +45,8 @@ pub(crate) use errors::UnifiedExecError;
|
||||
pub(crate) use process::UnifiedExecProcess;
|
||||
|
||||
pub(crate) const MIN_YIELD_TIME_MS: u64 = 250;
|
||||
// Minimum yield time for an empty `write_stdin`.
|
||||
pub(crate) const MIN_EMPTY_YIELD_TIME_MS: u64 = 5_000;
|
||||
pub(crate) const MAX_YIELD_TIME_MS: u64 = 30_000;
|
||||
pub(crate) const DEFAULT_MAX_OUTPUT_TOKENS: usize = 10_000;
|
||||
pub(crate) const UNIFIED_EXEC_OUTPUT_MAX_BYTES: usize = 1024 * 1024; // 1 MiB
|
||||
|
||||
Reference in new issue
Block a user