How ahmedmelliti9/terminal_chatbot works
This is a small terminal chatbot: the user enters a message, the application adds it to in-memory conversation history, sends that context to Groq, displays the reply, and saves it for the next turn. Credential loading and client setup are also handled in the same script. The workflow is directly supported by the chatbot.py excerpt; Docker is a deployment option, not part of the runtime conversation flow.
Main entry points: chatbot.py Chat loop
Components 5
Chatbot runtime
- Chat loop
chatbot.py - Conversation history
chatbot.py - Credential setup
chatbot.py
Other components
- Terminal user
- Groq API
Connections 7
- Terminal user → Chat loop: enters message
chatbot.py - Chat loop → Conversation history: appends messages
chatbot.py - Credential setup → Groq API: configures client
chatbot.py - Chat loop → Groq API: sends context
chatbot.py - Groq API → Chat loop: returns response
chatbot.py - Chat loop → Conversation history: saves reply
chatbot.py - Chat loop → Terminal user: displays reply
chatbot.py