From 9bbc8bb789a77200b73366813045c1446d9b0d64 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sat, 11 Apr 2026 16:22:07 +0800 Subject: [PATCH] fix: revert unrelated cache_key change in claude proxy transform Restore .unwrap_or(&provider.id) fallback for cache_key to match main branch behavior. Only gemini_native related changes should be in this branch. --- src-tauri/src/proxy/providers/claude.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/proxy/providers/claude.rs b/src-tauri/src/proxy/providers/claude.rs index b22d424db..3f35f4ac5 100644 --- a/src-tauri/src/proxy/providers/claude.rs +++ b/src-tauri/src/proxy/providers/claude.rs @@ -92,7 +92,8 @@ pub fn transform_claude_request_for_api_format( let cache_key = provider .meta .as_ref() - .and_then(|m| m.prompt_cache_key.as_deref()); + .and_then(|m| m.prompt_cache_key.as_deref()) + .unwrap_or(&provider.id); match api_format { "openai_responses" => {