feat(llm): increase max retries for streaming requests from 3 to 10
refactor(shell): remove unused debug logging from tracing imports
This commit is contained in:
@@ -227,7 +227,7 @@ impl LlmClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let url = format!("{}/chat/completions", self.base_url);
|
let url = format!("{}/chat/completions", self.base_url);
|
||||||
let max_retries_stream = 3;
|
let max_retries_stream = 10;
|
||||||
let mut attempt = 0u32;
|
let mut attempt = 0u32;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use anyhow::Result;
|
|||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use tracing::{debug, info, instrument, warn};
|
use tracing::{info, instrument, warn};
|
||||||
|
|
||||||
/// Execute a shell command via `bash -c`.
|
/// Execute a shell command via `bash -c`.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user