fix: handle reasoning_content for Kimi/thinking models (#7252)

Signed-off-by: clayarnoldg2m <carnold@g2m.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Clay
2026-02-17 12:27:11 +13:00
committed by GitHub
parent 1ad641cd36
commit 05d2af4d3b
6 changed files with 130 additions and 29 deletions
+8 -6
View File
@@ -179,15 +179,17 @@ impl ProviderTester {
.complete(session_id, "You are a helpful assistant.", &[message], &[])
.await?;
assert_eq!(
response.content.len(),
1,
"Expected single content item in response"
assert!(
!response.content.is_empty(),
"Expected at least one content item in response"
);
assert!(
matches!(response.content[0], MessageContent::Text(_)),
"Expected text response"
response
.content
.iter()
.any(|c| matches!(c, MessageContent::Text(_))),
"Expected at least one text content item in response"
);
println!(