Skip to content

Commit

Permalink
test(answer): add presence_penalty customization to AnswerConfig (#3211)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Sep 27, 2024
1 parent 765c7fc commit 87bb006
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee/tabby-webserver/src/service/answer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ mod tests {
pub fn make_answer_config() -> AnswerConfig {
AnswerConfig {
code_search_params: make_code_search_params(),
presence_penalty: 0.1,
}
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 87bb006

Please sign in to comment.