From 87bb00605fbceba02f355e658ff397a2f419477d Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 27 Sep 2024 09:12:32 +0800 Subject: [PATCH] test(answer): add presence_penalty customization to AnswerConfig (#3211) --- ee/tabby-webserver/src/service/answer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ee/tabby-webserver/src/service/answer.rs b/ee/tabby-webserver/src/service/answer.rs index a99f1638bb81..e41fd69a7b17 100644 --- a/ee/tabby-webserver/src/service/answer.rs +++ b/ee/tabby-webserver/src/service/answer.rs @@ -532,6 +532,7 @@ mod tests { pub fn make_answer_config() -> AnswerConfig { AnswerConfig { code_search_params: make_code_search_params(), + presence_penalty: 0.1, } } @@ -892,6 +893,7 @@ mod tests { let config = AnswerConfig { code_search_params: make_code_search_params(), + presence_penalty: 0.1, }; let service = Arc::new(AnswerService::new( &config, chat, code, doc, context, serper,