fix: preserve DeepSeek V4 thinking history

This commit is contained in:
bellman
2026-06-03 21:53:54 +09:00
parent 36218ac1b1
commit 54d785d0c0
2 changed files with 88 additions and 5 deletions

View File

@@ -159,6 +159,11 @@ async fn send_message_preserves_deepseek_reasoning_content_before_text() {
},
]
);
let captured = state.lock().await;
let request = captured.first().expect("server should capture request");
let body: serde_json::Value = serde_json::from_str(&request.body).expect("json body");
assert_eq!(body["thinking"], json!({"type": "enabled"}));
}
#[tokio::test]