Skip to content

LinkedInLearning/controlling-chatgpt-with-api-system-messages-3814093

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Controlling ChatGPT with Custom Instructions or API System Messages

This is the repository for the LinkedIn Learning course Controlling ChatGPT with Custom Instructions or API System Messages. The full course is available from LinkedIn Learning.

Controlling ChatGPT with Custom Instructions or API System Messages

Custom Instructions in ChatGPT allow you to provide additional context and even format the type of response you want from the system every time you interact with it. In the OpenAI Chat Completions API you can access the same functionality using the System and Assistant messages. In this short course, learn how to take advantage of these features to get more consistent and customizable responses from both systems.

See the readme file in the main branch for updated instructions and information.

Instructions

This repository has no branches. Each example featured in the course is contained in a separate file, named for the specific example. To follow along, open the relevant file and follow the instructions in the course.

Installing

To run the queries in the example files, you need an OpenAI API key.

  1. Sign up for the OpenAI API at https://platform.openai.com
  2. Generate a new key at https://platform.openai.com/account/api-keys.
  3. Copy the key (you only get to see it once).
  4. Open `/.vscode/settings.json`` and paste your key where indicated (bottom of the file).
  5. Open open a file with the extension .http.
  6. In the bottom toolbar, click on the words "No Environment" and change the setting to "openai". This will activate your key in the file and allow it to be used.

About

This repo is for the Linkedin Learning course: Controlling ChatGPT with Custom Instructions or API System Messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published