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.
This commit is contained in:
YoVinchen
2026-04-11 16:22:07 +08:00
parent d52a811016
commit 9bbc8bb789
+2 -1
View File
@@ -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" => {