import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(
model="text-davinci-002",
prompt="Create an outline for an essay about Nikola Tesla and his contributions to technology:",
temperature=0,
max_tokens=150,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
No comments:
Post a Comment