How talha-shahid507/dealer_scraper_webbsite works
STONIC AI is a Flask-based assistant: a user sends chat messages, the server streams a Groq model response, and conversation state and event logs are updated. The same server exposes model selection, task management, logs, status, and chat clearing. State is held in process memory. The only source file is app.py; the README is empty, and no frontend template or other implementation files were provided, so those are not mapped.
Main entry points: app.py Flask API
Components 13
Chat and Models
- Flask API
app.py - Chat Streaming
app.py - Model Catalog
app.py - Model Selection
app.py
Task Operations
- Task Management
app.py - Log Retrieval
app.py - Status Endpoint
app.py - Chat Clearing
app.py
In-Memory State
- Conversation History
app.py - Task State
app.py - Event Logs
app.py
Other components
- User
- Groq API
Connections 19
- User → Flask API: sends requests
app.py - Flask API → Chat Streaming: routes chat
app.py - Flask API → Model Catalog: routes models
app.py - Flask API → Model Selection: routes selection
app.py - Flask API → Task Management: routes tasks
app.py - Flask API → Log Retrieval: routes logs
app.py - Flask API → Status Endpoint: routes status
app.py - Flask API → Chat Clearing: routes clearing
app.py - Chat Streaming → Conversation History: reads and updates
app.py - Chat Streaming → Groq API: requests completions
app.py - Chat Streaming → Event Logs: records events
app.py - Model Selection → Event Logs: records change
app.py - Task Management → Task State: reads and updates
app.py - Task Management → Event Logs: records task events
app.py - Log Retrieval → Event Logs: reads recent entries
app.py - Status Endpoint → Conversation History: counts messages
app.py - Status Endpoint → Task State: counts tasks
app.py - Status Endpoint → Event Logs: counts entries
app.py - Chat Clearing → Conversation History: clears history
app.py