Skip to content
Merged

Dev #86

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "deepwiki-rs"
version = "1.2.8"
version = "1.2.9"
edition = "2024"

description = "deepwiki-rs(also known as Litho) is a high-performance automatic generation engine for C4 architecture documentation, developed using Rust. It can intelligently analyze project structures, identify core components, parse dependency relationships, and leverage large language models (LLMs) to automatically generate professional architecture documentation."
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,11 +642,11 @@ impl Default for LLMConfig {
provider: LLMProvider::default(),
api_key: std::env::var("LITHO_LLM_API_KEY").unwrap_or_default(),
api_base_url: String::from("https://api-inference.modelscope.cn/v1"),
model_efficient: String::from("ZhipuAI/GLM-4.7"),
model_efficient: String::from("ZhipuAI/GLM-5"),
model_powerful: String::from("Qwen/Qwen3-Next-80B-A3B-Instruct"),
max_tokens: 131072,
temperature: Some(0.1),
retry_attempts: 5,
retry_attempts: 3,
retry_delay_ms: 5000,
timeout_seconds: 300,
disable_preset_tools: false,
Expand Down
4 changes: 2 additions & 2 deletions src/llm/client/ollama_extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ where
Err(e) => {
last_error = Some(format!("{:#}", e));
if attempt < self.max_retries {
tokio::time::sleep(tokio::time::Duration::from_millis(2000)).await;
tokio::time::sleep(tokio::time::Duration::from_millis(3000)).await;
}
}
}
Expand Down Expand Up @@ -197,4 +197,4 @@ where
}
Ok(())
}
}
}
3 changes: 1 addition & 2 deletions src/llm/tools/file_explorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,7 @@ impl Tool for AgentToolFileExplorer {
async fn call(&self, args: Self::Args) -> Result<Self::Output, Self::Error> {
println!(" 🔧 tool called...file_reader@{:?}", args);

#[cfg(debug_assertions)]
tokio::time::sleep(Duration::from_secs(2)).await;
tokio::time::sleep(Duration::from_secs(1)).await;

match args.action.as_str() {
"list_directory" => self
Expand Down
3 changes: 1 addition & 2 deletions src/llm/tools/file_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ impl Tool for AgentToolFileReader {
async fn call(&self, args: Self::Args) -> Result<Self::Output, Self::Error> {
println!(" 🔧 tool called...file_reader@{:?}", args);

#[cfg(debug_assertions)]
tokio::time::sleep(Duration::from_secs(2)).await;
tokio::time::sleep(Duration::from_secs(1)).await;

self.read_file_content(&args)
.await
Expand Down
3 changes: 1 addition & 2 deletions src/llm/tools/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ impl Tool for AgentToolTime {
async fn call(&self, args: Self::Args) -> Result<Self::Output, Self::Error> {
println!(" 🔧 tool called...time@{:?}", args);

#[cfg(debug_assertions)]
tokio::time::sleep(Duration::from_secs(2)).await;
tokio::time::sleep(Duration::from_secs(1)).await;

self.get_current_time(&args)
.await
Expand Down