Tuesday, July 20, 2021

mki

 

import os import openai openai.api_key = os.getenv("OPENAI_API_KEY") response = openai.Completion.create( engine="davinci", prompt="The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: I'd like to cancel my subscription.\nAI:", temperature=0.9, max_tokens=150, top_p=1, frequency_penalty=0.0, presence_penalty=0.6, stop=["\n", " Human:", " AI:"] )

No comments:

Post a Comment

Erasmus Research Institute of Management (ERIM)

Let's Get to Know Erasmus Research Institute of Management (ERIM) By Janpha Thadphoothon Have you ever wondered about the powerhouse beh...