reuse list convo logic

This commit is contained in:
Owen Lin
2025-11-03 10:59:33 -08:00
parent e6a0d31353
commit 368314980c
2 changed files with 47 additions and 84 deletions

View File

@@ -139,7 +139,7 @@ async fn thread_list_pagination_next_cursor_none_on_last_page() -> Result<()> {
.send_thread_list_request(ThreadListParams {
cursor: None,
limit: Some(2),
model_providers: None,
model_providers: Some(vec!["mock_provider".to_string()]),
})
.await?;
let page1_resp: JSONRPCResponse = timeout(
@@ -159,7 +159,7 @@ async fn thread_list_pagination_next_cursor_none_on_last_page() -> Result<()> {
.send_thread_list_request(ThreadListParams {
cursor: Some(cursor1),
limit: Some(2),
model_providers: None,
model_providers: Some(vec!["mock_provider".to_string()]),
})
.await?;
let page2_resp: JSONRPCResponse = timeout(