chore: fix test
This commit is contained in:
parent
a371912c61
commit
54dea523e6
|
|
@ -275,7 +275,7 @@ async fn create_chat_context_test() {
|
||||||
let context = CreateTextChatContext {
|
let context = CreateTextChatContext {
|
||||||
chat_id: chat_id.clone(),
|
chat_id: chat_id.clone(),
|
||||||
content_type: "txt".to_string(),
|
content_type: "txt".to_string(),
|
||||||
text: "I have lived in the US for five years".to_string(),
|
text: "Lacus have lived in the US for five years".to_string(),
|
||||||
chunk_size: 1000,
|
chunk_size: 1000,
|
||||||
chunk_overlap: 20,
|
chunk_overlap: 20,
|
||||||
metadata: Default::default(),
|
metadata: Default::default(),
|
||||||
|
|
@ -287,7 +287,7 @@ async fn create_chat_context_test() {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let params = CreateChatMessageParams::new_user("Where I live?");
|
let params = CreateChatMessageParams::new_user("Where Lacus live?");
|
||||||
let question = test_client
|
let question = test_client
|
||||||
.api_client
|
.api_client
|
||||||
.create_question(&workspace_id, &chat_id, params)
|
.create_question(&workspace_id, &chat_id, params)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue