Skip to content

Instantly share code, notes, and snippets.

@brinnaebent
Last active March 7, 2023 20:03
Show Gist options
  • Save brinnaebent/40526889ec967a261acad85d9ada22e8 to your computer and use it in GitHub Desktop.
Save brinnaebent/40526889ec967a261acad85d9ada22e8 to your computer and use it in GitHub Desktop.
import os
import openai
openai.api_key = 'OPEN_AI_API_KEY'
response = openai.Edit.create(
model="text-davinci-edit-001",
input="Meeting Notes\n1/30/23\nIn attendance: Bob, Chip\nBob's 3 point plan - 1. Build cool stuff 2, work with Awesome people 3, eat lots of pizza Tasks for Bob - • Write blog\nEdit blog\n• Order a Pizza\nbob favorite pizza toppings: • pineapple\n8 ham\n•mushroms\n",
instruction="Fix the grammar and format as Markdown.",
temperature=0.5,
top_p=1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment