Files
amcs/internal/app/llm.go
Hein 8d0a91a961 feat(llm): add LLM integration instructions and handler
* Serve LLM instructions at `/llm`
* Include markdown content for memory instructions
* Update README with LLM integration details
* Add tests for LLM instructions handler
* Modify database migrations to use GUIDs for thoughts and projects
2026-03-25 18:02:42 +02:00

23 lines
439 B
Go

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)
}