Views
No views yet
/chatPOSTinput (string): The input message from the user./askPOSTinput (string): The input question from the user.GROQ_API_KEY (from Groq API)git clone https://github.com/your-username/llm-chat-app.git
cd llm-chat-apppython -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`pip install -r requirements.txt.env file and add your GROQ_API_KEY:echo "GROQ_API_KEY=your_groq_api_key" > .envuvicorn main:app --reloadhttp://127.0.0.1:8000.curl, Postman, or directly from your frontend application.curl -X POST "http://127.0.0.1:8000/chat" -H "Content-Type: application/json" -d '{"input": "Hello, how are you?"}'curl -X POST "http://127.0.0.1:8000/ask" -H "Content-Type: application/json" -d '{"input": "What is the capital of France?"}'https://llamachat-ipea.onrender.com/.curl -X POST "https://llamachat-ipea.onrender.com/chat" -H "Content-Type: application/json" -d '{"input": "Hello, how are you?"}'curl -X POST "https://llamachat-ipea.onrender.com/ask" -H "Content-Type: application/json" -d '{"input": "What is the capital of France?"}'docker build -t llm-chat-app .docker run -d -p 8000:8000 --env-file .env llm-chat-apphttp://127.0.0.1:8000.