GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - daveebbelaar/openai-python-tutorial: OpenAI Python Library Tutorial by Datalumina®

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
01 Introduction
01 Introduction
 
 
02 Endpoints
02 Endpoints
 
 
03 Assistants
03 Assistants
 
 
04 Structured Output
04 Structured Output
 
 
.gitignore
.gitignore
 
 
LICENCE.txt
LICENCE.txt
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

OpenAI Python Library Tutorial

This repository provides an in-depth tutorial on using the OpenAI library with Python. It covers everything you need to know to get started with the OpenAI API and build powerful applications using state-of-the-art language models like GPT-3.5 Turbo and GPT-4.

Table of Contents

  • OpenAI Python Library Tutorial
    • Table of Contents
    • Introduction
    • Requirements
    • Installation
    • OpenAI API Models
    • Tutorials
    • Datalumina

Introduction

The OpenAI library is a powerful tool for integrating OpenAI's language models into your Python applications. With this library, you can leverage the capabilities of advanced models like GPT-3.5 Turbo and GPT-4 to build intelligent chatbots, content generators, and more.

This tutorial repository aims to provide a comprehensive guide on using the OpenAI library effectively. It covers various aspects, including setting up the environment, making API calls, handling responses, and implementing advanced techniques like output validation and content filtering.

Requirements

To follow along with this tutorial, you'll need:

  • Python 3.10 or higher. You can download the latest version of Python from the official website: python.org
  • An OpenAI API key. Sign up for an API key at openai.com

Installation

  1. Clone the repository:

    git clone https://github.com/daveebbelaar/openai-python-tutorial.git
    
  2. Navigate to the project directory:

    cd openai-python-tutorial
    
  3. Create a virtual environment (optional but recommended):

    python3 -m venv env
    source env/bin/activate
    
  4. Install the required dependencies:

    pip install -r requirements.txt
    
  5. Set up your OpenAI API key:

    • Create a .env file in the project root directory.
    • Add your OpenAI API key to the .env file:
    OPENAI_API_KEY=your_api_key_here
    

OpenAI API Models

The OpenAI API provides access to a diverse set of language models with different capabilities and price points. This tutorial covers working with models like GPT-3.5 Turbo and GPT-4. You can also explore fine-tuning options to customize the models for your specific use case.

Tutorials

This repository contains a series of tutorials that cover various aspects of using the OpenAI library with Python. Each tutorial is provided as a Python file and includes detailed explanations, code examples, and exercises.

The tutorials cover topics such as:

  • Making API calls to OpenAI models
  • Handling API responses and extracting relevant information
  • Getting structured outputs from language models
  • Implementing output validation and content filtering
  • Integrating OpenAI with other libraries and frameworks

Datalumina

This tutorial is brought to you by Datalumina®, an AI development agency dedicated to building and optimizing intelligent systems for our clients. We share our knowledge and expertise through tutorials, videos, and courses to make practical data and artificial intelligence education accessible to everyone. For more tutorials and insights, check out our YouTube channel and follow Dave on LinkedIn.

If you're interested in learning more about how we can help you beyond these tutorials, explore our programs:

  • Data Alchemy: https://www.skool.com/data-alchemy
  • Data Freelancer: https://www.skool.com/data-freelancer

About

OpenAI Python Library Tutorial by Datalumina®

datalumina.com

Topics

instructoropenaipython

Resources

Readme
MIT license
Activity

Stars

121 stars

Watchers

1 watching

Forks

44 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.