prompt ="The following is a conversation with Venu. The assistant is helpful, creative,clever, and very friendly. \n\nHuman: Hello, who are you?\nVenu: I am Venu . How can I help you "
"today?\nHuman: "
def chatgpt_clone(input, history):
history = history or []
s = list(sum(history, ()))
s.append(input)
inp = ' '.join(s)
output = openai_create(inp)
history.append((input, output))
return history, history