Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brainlid committed Jun 18, 2024
1 parent a2dbfb7 commit a832d05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/chat_models/chat_ollama_ai.ex
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ defmodule LangChain.ChatModels.ChatOllamaAI do
Utils.handle_stream_fn(
ollama_ai,
&ChatOpenAI.decode_stream/1,
&(do_process_response(ollama_ai, &1))
&do_process_response(ollama_ai, &1)
)
)
|> case do
Expand Down
5 changes: 2 additions & 3 deletions test/callbacks_test.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
defmodule LangChain.CallbacksTest do
use LangChain.BaseCase

doctest LangChain.Callbacks
alias LangChain.Callbacks
doctest LangChain.Callbacks
alias LangChain.Callbacks
alias LangChain.LangChainError

describe "fire/3" do
Expand Down Expand Up @@ -50,5 +50,4 @@ defmodule LangChain.CallbacksTest do
end
end
end

end
4 changes: 3 additions & 1 deletion test/chat_models/chat_google_ai_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ defmodule ChatModels.ChatGoogleAITest do
]
}

assert [%MessageDelta{} = struct] = ChatGoogleAI.do_process_response(model, response, MessageDelta)
assert [%MessageDelta{} = struct] =
ChatGoogleAI.do_process_response(model, response, MessageDelta)

assert struct.role == :assistant
assert struct.content == "This is the first part of a mes"
assert struct.index == 0
Expand Down
2 changes: 1 addition & 1 deletion test/message/content_part_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ defmodule LangChain.Message.ContentPartTest do
assert part.type == :image_url
assert part.content == url
assert part.options == [detail: "low"]
end
end
end
end

0 comments on commit a832d05

Please # to comment.