package app

import (
	"net/http"

	amcsllm "git.warky.dev/wdevs/amcs/llm"
)

func serveLLMInstructions(w http.ResponseWriter, r *http.Request) {
	if r.URL.Path != "/llm" {
		http.NotFound(w, r)
		return
	}

	w.Header().Set("Content-Type", "text/markdown; charset=utf-8")
	w.Header().Set("Cache-Control", "no-cache")
	w.WriteHeader(http.StatusOK)
	if r.Method == http.MethodHead {
		return
	}
	_, _ = w.Write(amcsllm.MemoryInstructions)
}
