Skip to content

Commit 82baaf3

Browse files
committed
fix(ci): update integration test MessageRequest initializers for new tuning fields
openai_compat_integration.rs and client_integration.rs had MessageRequest constructions without the new tuning param fields (temperature, top_p, frequency_penalty, presence_penalty, stop) added in c667d47. Added ..Default::default() to all 4 sites. cargo fmt applied. This was the root cause of CI red on main (E0063 compile error in integration tests, not caught by --lib tests).
1 parent c7b3296 commit 82baaf3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

rust/crates/api/tests/client_integration.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ async fn send_message_blocks_oversized_requests_before_the_http_call() {
127127
tools: None,
128128
tool_choice: None,
129129
stream: false,
130+
..Default::default()
130131
})
131132
.await
132133
.expect_err("oversized request should fail local context-window preflight");
@@ -741,6 +742,7 @@ async fn live_stream_smoke_test() {
741742
tools: None,
742743
tool_choice: None,
743744
stream: false,
745+
..Default::default()
744746
})
745747
.await
746748
.expect("live stream should start");
@@ -921,5 +923,6 @@ fn sample_request(stream: bool) -> MessageRequest {
921923
}]),
922924
tool_choice: Some(ToolChoice::Auto),
923925
stream,
926+
..Default::default()
924927
}
925928
}

rust/crates/api/tests/openai_compat_integration.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ async fn send_message_blocks_oversized_xai_requests_before_the_http_call() {
8888
tools: None,
8989
tool_choice: None,
9090
stream: false,
91+
..Default::default()
9192
})
9293
.await
9394
.expect_err("oversized request should fail local context-window preflight");
@@ -496,6 +497,7 @@ fn sample_request(stream: bool) -> MessageRequest {
496497
}]),
497498
tool_choice: Some(ToolChoice::Auto),
498499
stream,
500+
..Default::default()
499501
}
500502
}
501503

0 commit comments

Comments
 (0)