This repository demonstrates GPT-4's ability to adapt to different roles and personalities through system prompts.
pip install openai
The notebook supports both OpenAI and Azure OpenAI endpoints:
if vendor=='azure': client = AzureOpenAI( azure_endpoint=userdata.get('AzureAIEndpoint'), api_key=userdata.get('AzureAIKey'), api_version='2024-06-01' ) elif vendor=='openAI': openai.api_key = userdata.get('OpenAIAPIKey') client = openai
A basic prompt asking about the fable of the frog and scorpion.
The same story told through the lens of a physics PhD, incorporating physics concepts and analogies.
Explaining rainbow formation to a 6-year-old, using simple language and relatable analogies.
Responding to philosophical questions in pirate vernacular during a storm.
git clone https://github.com/BrunoFelalaga/prompting_gpt4o_with_different_roles
There are no datasets linked
There are no datasets linked