No Description

eliasCybob 5a76f33018 Modified API 7 months ago
.idea 41e6dd504d Initial Commit 7 months ago
api 380eb5d160 DeepSeek-llm:chat 7 months ago
client 41e6dd504d Initial Commit 7 months ago
scraper 380eb5d160 DeepSeek-llm:chat 7 months ago
README.md 5a76f33018 Modified API 7 months ago

README.md

Lokaler Deepseek Chatbot mit Ollama

Dieses Projekt stellt einen lokalen Chatbot bereit, der das Deepseek LLM (7B Chat) Modell über Ollama nutzt. Die Kommunikation erfolgt über eine PHP-API.

Voraussetzungen

  1. Stelle sicher, dass PHP installiert ist.
  2. Installiere Ollama und lade das Modell deepseek-llm-7b-chat herunter.
  3. Klone dieses Repository und wechsle ins Projektverzeichnis.

Starten des Servers

Starte den PHP-Server im Projektverzeichnis:

php -S localhost:8000

API-Endpunkt

POST /api/chatbot.php

Anfrage

Sende eine JSON-Anfrage mit folgendem Format:

{
  "question": "Wer bist du?"
}

Beispiel mit curl

curl -X POST -H "Content-Type: application/json" \
  -d '{"question": "Wer bist du?"}' \
  http://localhost:8000/api/chatbot.php

Antwort

Die API gibt eine JSON-Antwort mit der Antwort des Chatbots zurück.

API Interface

Die API verfügt über eine Weboberfläche, die du unter http://localhost:8000/client/ aufrüfen kannst

Hinweise

  • Stelle sicher, dass Ollama und das Modell laufen, bevor du Anfragen stellst.
  • Für die Modellverwaltung kann LM Studio genutzt werden.