mail@pastecode.io avatar
2 years ago
2.2 kB
import os
import openai

openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.Completion.create(
  prompt="Text: The iPhone is a smartphone made by Apple that combines a computer, iPod, digital camera and cellular phone into one device with a touchscreen interface.\nParaphrase: iPhone is a multipurpose handheld computing device combining personal computing technologies, music player, digital camera, and a mobile telephone into one powerful interface.\n\nText: The Tesla Model X is a battery electric SUV with seating for five, six or seven people. Two trim levels are available, Long Range and Plaid (formerly the Performance trim), and every Model X is all-wheel-drive.\nParaphrase: Model X is the highest performing better electric SUV ever built, which can seat five, six, or seven people. You can choose from Long Range or Plaid trim levels, both of which are all-wheel-drive.\n\nText: We launched KLIPPAN sofa in the 1980s and it’s still a favorite. It's comfortable, fits almost everywhere and has many covers to choose from. A modern and timeless classic!\nParaphrase: KLIPPAN sofa was first released in the 1980s and is still popular today because it is comfortable, versatile, and comes in many different covers. It is a classic piece that will never go out of style!\n\nText: During the financial crisis, Morgan Stanley reportedly lost 80% of its market value between 2007 and 2008. To survive the crisis, the firm received capital infusions from several entities.\nParaphrase: Morgan Stanley lost around 80% of its market value between 2007 and 2008 during the financial crisis. In order to stay afloat, the firm received capital from a few different sources.\n\nText: Witchers are not born, they're made. Orphaned kids make up many of the monster hunters, and they're trained at schools located in different parts of the world. \nParaphrase: Witchers are not born; they are made from orphaned children who are then trained to become monster hunters. These schools are located all over the world.",