Dieses Projekt stellt einen lokalen Chatbot bereit, der das Deepseek LLM (7B Chat) Modell über Ollama nutzt. Die Kommunikation erfolgt über eine PHP-API.
Optional: Postman für API-Tests Postman collection
deepseek-llm-7b-chat herunter.Starte den PHP-Server im Projektverzeichnis:
php -S localhost:8000
POST /api/chatbot.php
Sende eine JSON-Anfrage mit folgendem Format:
{
"question": "Wer bist du?"
}
curlcurl -X POST -H "Content-Type: application/json" \
-d '{"question": "Wer bist du?"}' \
http://localhost:8000/api/chatbot.php
Die API gibt eine JSON-Antwort mit der Antwort des Chatbots zurück.