From 66c737e2edd019143d8fc1c2d5b19ab54fff527f Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 22 Jul 2025 18:13:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96markdown=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/src-tauri/src/infrastructure/gemini_service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs b/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs index 156d7af..b6f41e3 100644 --- a/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs +++ b/apps/desktop/src-tauri/src/infrastructure/gemini_service.rs @@ -1301,7 +1301,7 @@ impl GeminiService { // 发送请求到Cloudflare Gateway (使用beta API) let generate_url = format!("{}/{}:generateContent", client_config.gateway_url, rag_config.model_id); println!("🌐 准备发送请求到: {}", generate_url); - println!("📊 请求数据大小: {} bytes", serde_json::to_string(&request_data).unwrap_or_default().len()); + println!("📊 请求数据: {}", serde_json::to_string(&request_data).unwrap_or_default()); // 重试机制 let mut last_error = None; @@ -1390,7 +1390,7 @@ impl GeminiService { let response_text = response.text().await .map_err(|e| anyhow!("读取RAG响应失败: {}", e))?; - println!("📄 响应内容长度: {} 字符", response_text.len()); + println!("📄 响应内容: {}", response_text); if !status.is_success() { println!("❌ HTTP请求失败,状态码: {}", status);