import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(
model="text-davinci-002",
prompt="keywords: \"natural way to get rid of fleas\"\nGenerate blog topics on: \"How to Get Rid of Fleas in Your Home\"\nGenerate blog sections for the following topic: \"How to Get Rid of Fleas in Your Home\"\nExpand the following blog section: \"How to Get Rid of Fleas in Your Home\"\n\n\n\n\n\n\n",
temperature=0.7,
max_tokens=2000,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
No comments:
Post a Comment