Zero Shot Prompting
Why is it called ZERO SHOT Prompting? what does it mean and why do you need this format of prompts?
The code that I used in the Video:
############ Code Begins ###################################
import os
from openai import OpenAI
# Set your OpenAI API key (replace with your OpenAI Key)
os.environ["OPENAI_API_KEY"] = "sk-proj-1ZVz0vihj231JASXks0qT3BlbkFJmvmIDwd8Y1wjWt1Wge7V"
# Initialize OpenAI_Client
OpenAI_Client = OpenAI()
def ask_GPT_model(prompt: str):
"""Send a prompt to the GPT model and return the response."""
response = OpenAI_Client.chat.completions.create(
…
Watch on YouTube ↗
(saves to browser)
DeepCamp AI