Skip to content

Commit

Permalink
Remove unused assignment from ChatGoogleAI (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotb authored Oct 28, 2024
1 parent 5dd041d commit fd093eb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/chat_models/chat_google_ai.ex
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,6 @@ defmodule LangChain.ChatModels.ChatGoogleAI do
nil
end

parts
|> filter_parts_for_types(["text"])
|> filter_text_parts()
|> Enum.map(fn part ->
ContentPart.new!(%{type: :text, content: part["text"]})
end)

tool_calls_from_parts =
parts
|> filter_parts_for_types(["functionCall"])
Expand Down

0 comments on commit fd093eb

Please sign in to comment.