From 6c7995f5f5481c48ccd449e72d9563425fdcb837 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 20 Jul 2026 16:03:13 +0700 Subject: [PATCH] feat(llm): increase max retries for streaming requests from 3 to 10 refactor(shell): remove unused debug logging from tracing imports --- apps/infrastructure/src/llm/provider.rs | 2 +- apps/infrastructure/src/tools/shell.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/infrastructure/src/llm/provider.rs b/apps/infrastructure/src/llm/provider.rs index 4a9b265..ca4e7f1 100644 --- a/apps/infrastructure/src/llm/provider.rs +++ b/apps/infrastructure/src/llm/provider.rs @@ -227,7 +227,7 @@ impl LlmClient { }; let url = format!("{}/chat/completions", self.base_url); - let max_retries_stream = 3; + let max_retries_stream = 10; let mut attempt = 0u32; loop { diff --git a/apps/infrastructure/src/tools/shell.rs b/apps/infrastructure/src/tools/shell.rs index d11fd5b..46661f3 100644 --- a/apps/infrastructure/src/tools/shell.rs +++ b/apps/infrastructure/src/tools/shell.rs @@ -8,7 +8,7 @@ use anyhow::Result; use serde_json::{json, Value}; use std::process::Command; use std::time::Duration; -use tracing::{debug, info, instrument, warn}; +use tracing::{info, instrument, warn}; /// Execute a shell command via `bash -c`. ///