Postulate is the best way to take and share notes for classes, research, and other learning.
For a software project I've been playing around with GPT-3 lately. Using a friend's API key, here's how I set up a connection to the GPT-3 API and made requests using a Jupyter notebook in Python, following this YouTube tutorial to get started.
openai
!pip install openai import openai
gpt
libraryFrom this GitHub repo, download api/gpt.py
and upload it to the directory of your notebook. Now import:
from gpt_custom_lib import GPT from gpt_custom_lib import Example
tokens = 0 openai.api_key = [TOKEN GIVEN TO ME BY LUKE] gpt = GPT(engine="davinci", temperature=0.5, max_tokens=100)
gpt.add_example(Example("[INPUT]", "[OUTPUT]"))
output = gpt.submit_request("[PROMPT]") output.choices[0].text
Software contracting project with Mormon Redd