diff --git a/crates/Cargo.lock b/crates/Cargo.lock index 4a76be14..a9c06a49 100644 --- a/crates/Cargo.lock +++ b/crates/Cargo.lock @@ -1120,6 +1120,7 @@ dependencies = [ "http", "log", "md5", + "pretty_assertions", "proxy-wasm", "proxy-wasm-test-framework", "rand", diff --git a/crates/prompt_gateway/Cargo.toml b/crates/prompt_gateway/Cargo.toml index 29d385b7..e8a166f8 100644 --- a/crates/prompt_gateway/Cargo.toml +++ b/crates/prompt_gateway/Cargo.toml @@ -26,3 +26,4 @@ sha2 = "0.10.8" [dev-dependencies] proxy-wasm-test-framework = { git = "https://github.com/katanemo/test-framework.git", branch = "new" } serial_test = "3.1.1" +pretty_assertions = "1.4.1" diff --git a/crates/prompt_gateway/src/hallucination.rs b/crates/prompt_gateway/src/hallucination.rs index a17c6f60..62b119ac 100644 --- a/crates/prompt_gateway/src/hallucination.rs +++ b/crates/prompt_gateway/src/hallucination.rs @@ -40,6 +40,7 @@ pub fn extract_messages_for_hallucination(messages: &Vec) -> Vec