|
|
3 月之前 | |
|---|---|---|
| app | 3 月之前 | |
| Dockerfile | 3 月之前 | |
| README.md | 3 月之前 | |
| requirements.txt | 3 月之前 |
ultiliza Ollama e Mistral, requer recursos para a LLM local
git clone https://github.com/Galomortal47/LangChain.git
cd LangChain
docker build -t chat-api . && docker run -p 8000:8000 --env-file .env chat-api
curl -X POST http://localhost:8000/chat/?session_id=test_session -H "Content-Type: application/json" -d "{\"message\": \"Qual a capital da França?\"}"
ou
curl -X POST http://localhost:8000/ask/?session_id=test_session&question="Qual a capital da França?" -F "file=@/path/to/your/file.txt"