Skip to content

My first chatbot using python integrating the chatgpt API-Key.

Notifications You must be signed in to change notification settings

carlosportella16/my-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

my-chatboot

Overview

This project I show how to integrate GPT-4 in a python project as a chatbot. I'll be implementing upload and files generations by prompt in the chatbot.

Features

  • Interactive ChatGPT-based chatbot.
  • Compatible with the latest update of ChatGPT (Update Date: [date of update]).
  • Option to upgrade to ChatGPT-4 model for enhanced performance.

Getting Started

Prerequisites

  • Python 3.x
  • OpenAI API key

Installation

  1. Clone the repository or download the source code.
  2. Install OpenAI Python library:
pip install openai

Usage

Run the script:

python my-chatbot.py

Using ChatGpt 4

To use chatgpt 4 instead 3.5 you need to change this part of code:

model="gpt-4-vision-preview",  # Updated to ChatGPT-4 model

Using ChatGpt 3.5

To use chatgpt 4 instead 3.5 you need to change this part of code:

model="gpt-3.5-turbo",  # Updated to ChatGPT-3.5 model

About

My first chatbot using python integrating the chatgpt API-Key.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages