diff --git a/lib/google_bard.rb b/lib/google_bard.rb index 83bb61c..c6eac23 100644 --- a/lib/google_bard.rb +++ b/lib/google_bard.rb @@ -46,13 +46,16 @@ def completion(text_input) # Send the request with the payload in the body response = HTTParty.post( 'https://bard.google.com/_/BardChatUi/data/assistant.lamda.BardFrontendService/StreamGenerate', - query:, + query: query, body: payload(text_input), headers: HEADERS, cookies: { '__Secure-1PSID' => @token }, timeout: @timeout ) - + puts "*********************" + puts "Google Answer:" + puts response + puts "*********************" handle_response(response) end @@ -100,4 +103,4 @@ def handle_response(response) ) end end -end \ No newline at end of file +end