https://github.com/ritul-void/the_grok-head
it is a chat bot gui application based on the grok ai api , an chatbot app
https://github.com/ritul-void/the_grok-head
ai api elonmusk grok grok-api html website
Last synced: about 1 month ago
JSON representation
it is a chat bot gui application based on the grok ai api , an chatbot app
- Host: GitHub
- URL: https://github.com/ritul-void/the_grok-head
- Owner: Ritul-Void
- License: mit
- Created: 2024-11-11T03:32:48.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T05:16:34.000Z (5 months ago)
- Last Synced: 2025-04-10T00:43:54.509Z (about 1 month ago)
- Topics: ai, api, elonmusk, grok, grok-api, html, website
- Language: HTML
- Homepage: https://ritul-void.github.io/The_Grok-head/
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The_Grok-head(v1.5.1)
it is a Grok AI gui application based on the grok ai api , an chatbot app. currrently token is fiexed at 200 you can chage it in the code
### To run this application YOU NEED THE GROK AI API KEY FROM XAI CURRENTLY FREE TILL DECEMBER# Grok AI Chat Bot
## Overview
The Grok AI Chat Bot is a web-based application that facilitates interaction with a conversational AI model. It features a clean and responsive UI with options for settings, message history, and chat customization.---
## Table of Contents
- [Features](#features)
- [Technologies Used](#technologies-used)
- [File Structure](#file-structure)
- [Setup](#setup)
- [UI Components](#ui-components)
- [Customization](#customization)
- [Event Listeners](#event-listeners)
- [Storage](#storage)
- [Future Enhancements](#future-enhancements)---
## Features
1. **Responsive Chat Interface**:
- Dark-themed UI with smooth message scrolling.
- User and bot messages displayed distinctly.
2. **Settings Modal**:
- Customize API key and system role message.
3. **Chat History**:
- View previous chat sessions in a modal.
4. **Keyboard Input**:
- Type messages in the input box and send with a button or Enter key.
5. **Reset Chat**:
- Clear current messages to start fresh.
6. **Mobile-Friendly**:
- Adjusted styles for smaller screens.---
## Technologies Used
1. **HTML**: Structuring the web app.
2. **CSS**: Styling and responsive design.
3. **JavaScript**: Handling interactions and functionality.
4. **Third-party Libraries**:
- [Marked](https://marked.js.org/): Parse Markdown text.
- [DOMPurify](https://github.com/cure53/DOMPurify): Sanitize HTML content for security.---
## File Structure
```plaintext
- index.html # Main HTML file
- styles.css # Contains styling (inline in your case)
- scripts.js # JavaScript functionality
- assets/ # Any additional assets (images, etc.)
```---
## Setup
1. Save the code as `index.html`.
2. Include the required scripts from the CDN:
- `marked.min.js`
- `dompurify.min.js`
3. Open the file in a web browser to run the chat interface.---
## UI Components
### Chat Container
- **HTML**: ``
- **CSS**: Styled to occupy the full viewport height and contain messages.### Chat Header
- **HTML**: ``
- **Features**:
- History button (`🕓`).
- Title (`The Grock Head`).
- Settings button (`⚙️`).### Chat Messages
- **HTML**: `