Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saikiran76/personalchatbot


https://github.com/saikiran76/personalchatbot

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# Chatbot LLM powered by OpenAI 🤖

This repository contains a chatbot powered by OpenAI's Large Language Model (LLM). The chatbot is built using FastAPI and interacts with users to provide responses generated by the OpenAI model.

## Setup

To run the chatbot locally, follow these steps:

1. Clone the repository.
2. Install the required dependencies by running:
`pip install fastapi uvicorn jinja2 mangum openai`

4. Replace the placeholder for the OpenAI API key in the code with your actual API key.
5. Run the FastAPI application using Uvicorn:
`uvicorn main:app --reload`

## Usage

- Access the chatbot interface by visiting the homepage.
- Enter your message in the input field and submit to interact with the chatbot.
- The chatbot will provide responses based on the conversation history and the OpenAI model.
- You can also generate images by visiting the "/image" endpoint and providing a prompt for image generation.

## Endpoints

- **/**: Homepage where you can interact with the chatbot.
- **/image**: Endpoint for generating images based on user input.

## Acknowledgements

- This project utilizes OpenAI's powerful GPT-3.5 model for generating responses.
- FastAPI is used for building the web application and handling requests.
- Jinja2 is used for templating HTML responses.
- Mangum is used for deploying the FastAPI application on AWS Lambda.

Feel free to explore and enhance this chatbot further!