diff --git a/lib/langchain/llm/google_vertex_ai.rb b/lib/langchain/llm/google_vertex_ai.rb index e6a42a745..d1b3b5200 100644 --- a/lib/langchain/llm/google_vertex_ai.rb +++ b/lib/langchain/llm/google_vertex_ai.rb @@ -89,7 +89,7 @@ def chat(params = {}) params[:system] = {parts: [{text: params[:system]}]} if params[:system] params[:tools] = {function_declarations: params[:tools]} if params[:tools] # This throws an error when tool_choice is passed - params[:tool_choice] = {function_calling_config: {mode: params[:tool_choice].upcase}} if params[:tool_choice] + # params[:tool_choice] = {function_calling_config: {mode: params[:tool_choice].upcase}} if params[:tool_choice] raise ArgumentError.new("messages argument is required") if Array(params[:messages]).empty?