LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
fix: route chat model into backend agent
nash_su9787fb03a109
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 63720471..870155c9 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -66,6 +66,7 @@ async fn agent_start_turn(app: tauri::AppHandle,project_id: String,mut request: agent::AgentChatRequest,+ llm_config: Option<agent::provider::LlmConfig>,) -> Result<agent::types::AgentChatResponse, String> {let project = resolve_agent_project(&app, &project_id)?;if request@@ -101,7 +102,8 @@ async fn agent_start_turn(.collect();}}- let runtime_config = load_agent_runtime_config(&app);+ let mut runtime_config = load_agent_runtime_config(&app);+ runtime_config.llm = llm_config.or(runtime_config.llm);let runtime = agent::AgentRuntime::new(project.id.clone(),project.path.clone(),@@ -152,6 +154,7 @@ async fn agent_start_turn_stream(app: tauri::AppHandle,project_id: String,mut request: agent::AgentChatRequest,+ llm_config: Option<agent::provider::LlmConfig>,) -> Result<String, String> {let project = resolve_agent_project(&app, &project_id)?;if request@@ -185,7 +188,8 @@ async fn agent_start_turn_stream(}).collect();}- let runtime_config = load_agent_runtime_config(&app);+ let mut runtime_config = load_agent_runtime_config(&app);+ runtime_config.llm = llm_config.or(runtime_config.llm);let runtime = agent::AgentRuntime::new(project.id.clone(),project.path.clone(),diff --git a/src/components/chat/chat-panel.tsx b/src/components/chat/chat-panel.tsxindex 2b4dc0fb..67aeb9e3 100644--- a/src/components/chat/chat-panel.tsx+++ b/src/components/chat/chat-panel.tsx@@ -986,6 +986,7 @@ export function ChatPanel() {try {await invoke<string>("agent_start_turn_stream", {projectId: project?.id ?? "current",+ llmConfig,request: {message: text,sessionId: convId,@@ -1063,6 +1064,7 @@ export function ChatPanel() {}))const backendResponse = await invoke<BackendAgentResponse>("agent_start_turn", {projectId: project?.id ?? "current",+ llmConfig,request: {message: text,sessionId: convId,