Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Nov 10, 2023
1 parent 4068d6e commit 9380da1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/tabby/src/serve/completions/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ impl PromptBuilder {

pub async fn collect(&self, language: &str, segments: &Segments) -> Vec<Snippet> {
if let Some(code) = &self.code {
collect_snippets(
&self.schema,
code.as_ref(),
language,
&segments.prefix,
)
.await
collect_snippets(&self.schema, code.as_ref(), language, &segments.prefix).await
} else {
vec![]
}
Expand Down

0 comments on commit 9380da1

Please sign in to comment.