Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Oct 16, 2024
1 parent 7dc32eb commit b94718a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/api/chat_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl Message {
}

pub(crate) mod messages {
use super::{Message, MessageContent};
use super::Message;
use tracing::warn;

/// Function to convert a list of messages to a prompt string in Llama2 format.
Expand Down Expand Up @@ -299,7 +299,7 @@ pub(crate) mod messages {
pub(crate) fn messages_to_llama3_prompt(messages: &[Message]) -> String {
let mut prompt = String::new();
prompt.push_str("<|begin_of_text|>");

for message in messages {
match message {
Message::System { content, name } => {
Expand Down Expand Up @@ -360,9 +360,9 @@ pub(crate) mod messages {
}
}
}

prompt
}
}
}

#[derive(Debug, PartialEq, Eq, Serialize, JsonSchema)]
Expand Down

0 comments on commit b94718a

Please sign in to comment.