Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mubassim-khan/chatgpt-clone

This repository contains the code for building AI based, ChatGPT application using Python library Streamlit. View README for more descriptive overview about repository.
https://github.com/mubassim-khan/chatgpt-clone

chatgpt chatgpt-api openai-api python streamlit

Last synced: 1 day ago
JSON representation

This repository contains the code for building AI based, ChatGPT application using Python library Streamlit. View README for more descriptive overview about repository.

Awesome Lists containing this project

README

        

# ChatGPT Clone

This repository contains the code for building AI based, ChatGPT application using Python library Streamlit. The project aims to recreate the visual design, fetching user-requests and response of OpenAI's ChatGPT 3.5 turbo & 4.0, providing similar interfaces & responses as of ChatGPT itself.

## Preview

![image](https://github.com/Mubassim-Khan/ChatGPT-Clone/blob/main/assets/Preview.png)

## Features

- Responsive design: The web page adapts to different screen sizes, ensuring a consistent user experience on desktop.
- AI Generated Response: By using the OpenAI API Key, quick responses of ChatGPT are made with ease.
- UI/UX: Streamlit (Python Library) made it very easy to make interactive UI with lesser time.
- Logical Scripts: Developer focuses about working on logical scripts while the Front-End is handled by Streamlit.
## Tech used πŸ› οΈ

- [Python](https://www.python.org/) - Logical Scripts
- [Streamlit](https://streamlit.io/) - UI Library
- [Prettier](https://prettier.io/) - Code Formatter

## Getting Started

To get started with this project, follow these steps:

1. Clone the repository:

```bash
git clone https://github.com/Mubassim-Khan/ChatGPT-Clone.git
```

2. Open the project in your preferred code editor.

3. Open [http://localhost:8501](http://localhost:3000) to view it in your browser.

4. Feel free to modify the code and customize the page according to your preferences. You can update the content, change the colors, or add new features.

## Contributing

Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

## Contact

If you have any questions, suggestions, or feedback, you can reach out to the project maintainer:

- LinkedIn: [Mubassim Ahmed Khan](https://www.linkedin.com/in/mubassim-ahmed-khan/)
- Email: [[email protected]](mailto:[email protected])

---

# Getting Started with Streamlit

## Available Scripts

In the project directory, you can run:

### `python -m streamlit run app.py`

Runs the app in the development mode.\
Open [http://localhost:8501](http://localhost:8501) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

## ChatGPT Versions

You can switch between different available versions of ChatGPT depending upon your creditionals, billings & needs. (ChatGPT: 2.5, 3.0, 3.5 turbo, 4.0, DALLΒ·E etc)

```bash
*st.session_state["openai_model"] = "your-chatgpt-version"
```
*On line: 23