Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(
engine="davinci-instruct-beta-v3",
prompt="Create prompts to render fictional people at different ages and nationalities.\n\n1. A watercolor painting",
temperature=0.7,
max_tokens=64,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment