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:
Keyan Zhang
2026-11-18 22:40:41 +00:00
committed by copyberry
parent b967993f35
commit 8e9746b19d
2 changed files with 5 additions and 16 deletions
@@ -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(