Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brainlid committed Dec 8, 2023
1 parent 8dd45a0 commit b161c1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/chat_templates.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ defmodule LangChain.Utils.ChatTemplates do
[first_user | rest]
|> Enum.with_index()
|> Enum.each(fn
{%Message{role: :user}, index} when Integer.is_even(index) ->
{%Message{role: :user}, index} when is_even(index) ->
:ok

{%Message{role: :assistant}, index} when Integer.is_odd(index) ->
{%Message{role: :assistant}, index} when is_odd(index) ->
:ok

_other ->
Expand Down

0 comments on commit b161c1d

Please sign in to comment.