Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saikiran76/personalchatbot
https://github.com/saikiran76/personalchatbot
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/saikiran76/personalchatbot
- Owner: saikiran76
- Created: 2024-03-26T13:57:34.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-26T14:07:05.000Z (9 months ago)
- Last Synced: 2024-11-08T17:15:26.792Z (about 2 months ago)
- Language: HTML
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!