Chat (command)

POST {{baseUrl}}/chat

Request Body

{"model"=>"command", "chat_history"=>[{"role"=>"USER", "message"=>"Who discovered gravity?"}, {"role"=>"CHATBOT", "message"=>"The man who is widely credited with discovering gravity is Sir Isaac Newton"}], "message"=>"What year was he born?", "connectors"=>[{"id"=>"web-search"}]}

RESPONSES

status: OK

{"response_id":"3c8e8975-8521-4be4-881a-a5d7161a6f8a","text":"Isaac Newton was born on January 4 1643 (according to our modern Gregorian calendar) and was born on December 25 1642 according to the Julian calendar in use at the time. This means that Newton's birthday was in fact two days before Christmas Day.","generation_id":"cda60c38-5a81-40f9-a560-b5eae4c235c1","chat_history":[{"role":"USER","message":"Who discovered gravity?"},{"role":"CHATBOT","message":"The man who is widely credited with discovering gravity is Sir Isaac Newton"},{"role":"USER","message":"What year was he born?"},{"role":"CHATBOT","message":"Isaac Newton was born on January 4 1643 (according to our modern Gregorian calendar) and was born on December 25 1642 according to the Julian calendar in use at the time. This means that Newton's birthday was in fact two days before Christmas Day."}],"finish_reason":"COMPLETE","meta":{"api_version":{"version":"1"},"billed_units":{"input_tokens":1073,"output_tokens":57},"tokens":{"input_tokens":1676,"output_tokens":57}},"citations":[{"start":25,"end":39,"text":"January 4 1643","document_ids":["web-search_7:3","web-search_4:1","web-search_1:68","web-search_4:31","web-search_6:1"]},{"start":40,"end":84,"text":"(according to our modern Gregorian calendar)","document_ids":["web-search_7:3","web-search_1:68","web-search_6:1"]},{"start":101,"end":117,"text":"December 25 1642","document_ids":["web-search_7:3","web-search_4:1","web-search_1:68","web-search_6:1"]},{"start":118,"end":150,"text":"according to the Julian calendar","document_ids":["web-search_7:3","web-search_1:68","web-search_6:1"]}],"documents":[{"id":"web-search_7:3","snippet":"\n\nIsaac Newton was born 25 December 1642 Old Style (4 January 1643 on the Gregorian calendar, which is now used) at Woolsthorpe Manor in Woolsthorpe-by-Colsterworth, a hamlet in the county of Lincolnshire. (At the time of Newton's birth, England had not adopted the Gregorian calendar and therefore his date of birth was recorded as 25 December, according to the Julian calendar.)\n\nNewton was born two months after the death of his father, a prosperous farmer also named Isaac Newton. His father was described as a \"wealthy and uneducated man\". Born prematurely, young Isaac was a small child; his mother Hannah Ayscough reportedly said that he could have fit inside a quart mug.","timestamp":"2024-04-10T17:58:22","title":"Early life of Isaac Newton - Wikipedia","url":"https://en.wikipedia.org/wiki/Early_life_of_Isaac_Newton"},{"id":"web-search_4:1","snippet":" In 1705, he was knighted by Queen Anne of England, making him Sir Isaac Newton.\n\nEarly Life and Family\n\nNewton was born on January 4, 1643, in Woolsthorpe, Lincolnshire, England. Using the \"old\" Julian calendar, Newton's birth date is sometimes displayed as December 25, 1642.\n\nNewton was the only son of a prosperous local farmer, also named Isaac, who died three months before he was born. A premature baby born tiny and weak, Newton was not expected to survive.\n\nWhen he was 3 years old, his mother, Hannah Ayscough Newton, remarried a well-to-do minister, Barnabas Smith, and went to live with him, leaving young Newton with his maternal grandmother.","timestamp":"2024-04-11T04:06:58","title":"Isaac Newton - Quotes, Facts \u0026 Laws","url":"https://www.biography.com/scientists/isaac-newton"},{"id":"web-search_1:68","snippet":" At Newton's birth, Gregorian dates were ten days ahead of Julian dates; thus, his birth is recorded as taking place on 25 December 1642 Old Style, but it can be converted to a New Style (modern) date of 4 January 1643. By the time of his death, the difference between the calendars had increased to eleven days. Moreover, he died in the period after the start of the New Style year on 1 January but before that of the Old Style new year on 25 March. His death occurred on 20 March 1726, according to the Old Style calendar, but the year is usually adjusted to 1727. A full conversion to New Style gives the date 31 March 1727.\n\n^ This claim was made by William Stukeley in 1727, in a letter about Newton written to Richard Mead.","timestamp":"2024-04-11T14:32:17","title":"Isaac Newton - Wikipedia","url":"https://en.wikipedia.org/wiki/Isaac_Newton"},{"id":"web-search_4:31","snippet":"\n\nBirth date: January 4, 1643\n\nBirth City: Woolsthorpe, Lincolnshire, England\n\nBirth Country: United Kingdom\n\nBest Known For: Isaac Newton was an English physicist and mathematician famous for his laws of physics. He was a key figure in the Scientific Revolution of the 17th century.\n\nScience and Medicine\n\nTechnology and Engineering\n\nEducation and Academia\n\nAstrological Sign: Capricorn\n\nUniversity of Cambridge, Trinity College\n\nIsaac Newton helped develop the principles of modern physics, including the laws of motion, and is credited as one of the great minds of the 17th-century Scientific Revolution.\n\nIn 1687, Newton published his most acclaimed work, 'Philosophiae Naturalis Principia Mathematica' ('Mathematical Principles of Natural Philosophy'), which has been called the single most influential book on physics.","timestamp":"2024-04-11T04:06:58","title":"Isaac Newton - Quotes, Facts \u0026 Laws","url":"https://www.biography.com/scientists/isaac-newton"},{"id":"web-search_6:1","snippet":" The third period (nearly as long as the other two combined) saw Newton as a highly paid government official in London with little further interest in mathematical research. Isaac Newton was born in the manor house of Woolsthorpe, near Grantham in Lincolnshire. Although by the calendar in use at the time of his birth he was born on Christmas Day 1642, we give the date of 4 January 1643 in this biography which is the \"corrected\" Gregorian calendar date bringing it into line with our present calendar. (The Gregorian calendar was not adopted in England until 1752.) Isaac Newton came from a family of farmers but never knew his father, also named Isaac Newton, who died in October 1642, three months before his son was born.","timestamp":"2024-04-10T16:44:27","title":"Isaac Newton (1643 - 1727) - Biography - MacTutor History of Mathematics","url":"https://mathshistory.st-andrews.ac.uk/Biographies/Newton/"}],"search_results":[{"search_query":{"text":"Isaac Newton birth year","generation_id":"e744225f-8910-47fd-81c8-be864a1f878b"},"document_ids":["web-search_1:68","web-search_4:1","web-search_4:31","web-search_6:1","web-search_7:3"],"connector":{"id":"web-search"}}],"search_queries":[{"text":"Isaac Newton birth year","generation_id":"e744225f-8910-47fd-81c8-be864a1f878b"}]}