Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bburdiliak committed Nov 13, 2024
1 parent 17d0227 commit 9de7612
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ private[service] trait AnthropicServiceImpl extends Anthropic {
val (system, nonSystem) = messages.partition(_.isSystem)

assert(nonSystem.head.role == ChatRole.User, "First non-system message must be from user.")
assert(system.size <= 1, "System message can be only 1. Use SystemMessageContent to include more content blocks.")
assert(
system.size <= 1,
"System message can be only 1. Use SystemMessageContent to include more content blocks."
)

val messageJsons = nonSystem.map(Json.toJson(_))

Expand Down

0 comments on commit 9de7612

Please sign in to comment.