Skip to content

Commit

Permalink
amend clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
snowmead committed Feb 5, 2024
1 parent b9a72d6 commit 8e92dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ pub trait Loom<T: Config> {

let response = prompt_config
.model
.prompt(req_msgs.tokens, req_msgs.to_vec(), &prompt_config.params, max_tokens)
.prompt(req_msgs.tokens, req_msgs.into_vec(), &prompt_config.params, max_tokens)
.await
.map_err(|e| {
error!("Failed to prompt LLM: {}", e);
Expand Down Expand Up @@ -446,7 +446,7 @@ pub trait Loom<T: Config> {
.model
.prompt(
summary_generation_prompt.tokens,
summary_generation_prompt.to_vec(),
summary_generation_prompt.into_vec(),
&summary_model_config.params,
summary_model_config.model.get_max_token_limit(),
)
Expand Down Expand Up @@ -537,7 +537,7 @@ impl<T: Config, L: Llm<T>> VecPromptMsgsDeque<T, L> {
self.inner.extend(msg_reqs);
}

fn to_vec(self) -> Vec<L::Request> {
fn into_vec(self) -> Vec<L::Request> {
self.inner.into()
}
}

0 comments on commit 8e92dc7

Please sign in to comment.