From bda63295ed5dc65c422b573bcf48de22ca4ecbb6 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 1 Mar 2026 22:14:50 -0500 Subject: [PATCH] Fix model test: increase timeout to 30s and min tokens to 16 OpenAI requires max_output_tokens >= 16, and slower providers like Gemini Pro need more than 10s to respond. Co-Authored-By: Claude Opus 4.6 --- crates/arc-llm/src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/arc-llm/src/cli.rs b/crates/arc-llm/src/cli.rs index d8071e37f..291cd920c 100644 --- a/crates/arc-llm/src/cli.rs +++ b/crates/arc-llm/src/cli.rs @@ -286,10 +286,10 @@ async fn test_models(provider: Option<&str>, model: Option<&str>) -> Result<()> let params = GenerateParams::new(&info.id) .provider(&info.provider) .prompt("Say OK") - .max_tokens(5); + .max_tokens(16); let result = - tokio::time::timeout(Duration::from_secs(10), generate::generate(params)).await; + tokio::time::timeout(Duration::from_secs(30), generate::generate(params)).await; let status = match result { Ok(Ok(_)) => "ok".to_string(), @@ -299,7 +299,7 @@ async fn test_models(provider: Option<&str>, model: Option<&str>) -> Result<()> } Err(_) => { failures += 1; - "error: timeout (10s)".to_string() + "error: timeout (30s)".to_string() } };