Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Jan 3, 2025
1 parent 5dea3a0 commit ceda68c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ object ChatCompletionInputAdapterForFireworksAI
// gemma-7b-it model doesn't support system messages so we need to convert them to user ones
private val handleSystemMessages = (messages: Seq[BaseMessage]) => {
val nonSystemMessages = messages.map {
case SystemMessage(content, _) => UserMessage(s"System: ${content}")
case SystemMessage(content, _) => UserMessage(s"System: ${content}")
case DeveloperMessage(content, _) => UserMessage(s"System: ${content}")
case x: BaseMessage => x
case x: BaseMessage => x
}

// there cannot be two consecutive user messages, so we need to merge them
Expand Down

0 comments on commit ceda68c

Please sign in to comment.