Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 938 Bytes

readme.md

File metadata and controls

38 lines (32 loc) · 938 Bytes

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