Skip to content

The official GPT AI repository | various collection of powerful language models

License

Notifications You must be signed in to change notification settings

OshekharO/GPT-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT AI

A versatile Node.js server that integrates multiple chatbot APIs, offering a unified interface for various AI conversation models.

📚 Table of Contents

🌟 Features

  • Seamless integration of multiple chatbot APIs (v1 to v9)
  • Built with Express.js for robust server-side operations
  • Cross-Origin Resource Sharing (CORS) enabled for web application compatibility
  • Straightforward error handling for improved debugging

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/OshekharO/GPT-AI.git
    
  2. Navigate to the project directory

    cd GPT-AI
    
  3. Install dependencies

    npm install
    
  4. Start the server

    npm start
    

    The server will launch and be accessible at http://localhost:3000.

🔧 API Usage

Send a Message to the Chatbot

Send a POST request to the /chat/v5 endpoint to interact with the chatbot.

Endpoint

POST http://localhost:3000/chat/v5

Headers

Content-Type: application/json

Request Body

{
  "userMessage": "Hello, how are you?"
}

Example Using cURL

curl -X POST http://localhost:3000/chat/v5 \
     -H "Content-Type: application/json" \
     -d '{"userMessage": "Hello, how are you?"}'

Example Response

{
  "reply": "Hello! As an AI language model, I don't have feelings, but I'm functioning well and ready to assist you. How can I help you today?"
}

🛠️ Technologies

🤝 Contributing

We welcome contributions, issues, and feature requests! Check out our issues page to get started.

📝 License

This project is open source and available under the GPL-3.0.

📞 Contact

Your Name


⭐️ If you find this project helpful, please consider giving it a star on GitHub!