mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
Remove the 4,000-byte prompt limit for thread/sample (#62378)
## What changed Allow prompts longer than 4,000 bytes to pass `thread/sample` request validation. Both `expectedTurnId` and `prompt` must still be nonblank. GitOrigin-RevId: 59b97d351e2a02378b83aa9f2d4e649dd57169af
This commit is contained in:
@@ -1319,13 +1319,7 @@ async fn sample_rejects_invalid_sources_and_prompts() -> Result<()> {
|
||||
"Predict".to_string(),
|
||||
"latest finished turn",
|
||||
),
|
||||
(parent.clone(), turn.clone(), String::new(), "prompt"),
|
||||
(
|
||||
parent.clone(),
|
||||
turn.clone(),
|
||||
"x".repeat(4_001),
|
||||
"at most 4000 bytes",
|
||||
),
|
||||
(parent, turn, String::new(), "prompt"),
|
||||
] {
|
||||
let id = client
|
||||
.send_raw_request(
|
||||
|
||||
Reference in New Issue
Block a user