diff --git a/Cargo.lock b/Cargo.lock index 2f6f02d..10f6310 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -312,7 +312,7 @@ dependencies = [ [[package]] name = "deepwiki-rs" -version = "1.2.9" +version = "1.2.10" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index f3a613d..d3153df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "deepwiki-rs" -version = "1.2.9" +version = "1.2.10" 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." diff --git a/src/config.rs b/src/config.rs index 1d5853d..158e97d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -642,8 +642,8 @@ 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-5"), - model_powerful: String::from("Qwen/Qwen3-Next-80B-A3B-Instruct"), + model_efficient: String::from("Qwen/Qwen3-Next-80B-A3B-Instruct"), + model_powerful: String::from("Qwen/Qwen3.5-397B-A17B"), max_tokens: 131072, temperature: Some(0.1), retry_attempts: 3, diff --git a/src/llm/tools/file_explorer.rs b/src/llm/tools/file_explorer.rs index 1d36750..1236054 100644 --- a/src/llm/tools/file_explorer.rs +++ b/src/llm/tools/file_explorer.rs @@ -5,7 +5,6 @@ use rig::tool::Tool; use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::path::Path; -#[cfg(debug_assertions)] use std::time::Duration; use walkdir::WalkDir; diff --git a/src/llm/tools/file_reader.rs b/src/llm/tools/file_reader.rs index 436bd13..b90019c 100644 --- a/src/llm/tools/file_reader.rs +++ b/src/llm/tools/file_reader.rs @@ -1,6 +1,5 @@ //! File reading tool -#[cfg(debug_assertions)] use std::time::Duration; use anyhow::Result; diff --git a/src/llm/tools/time.rs b/src/llm/tools/time.rs index 5e1c718..56f1d76 100644 --- a/src/llm/tools/time.rs +++ b/src/llm/tools/time.rs @@ -3,7 +3,6 @@ use anyhow::Result; use rig::tool::Tool; use serde::{Deserialize, Serialize}; -#[cfg(debug_assertions)] use std::time::Duration; use std::time::{SystemTime, UNIX_EPOCH};