add chat endpoint

This commit is contained in:
2025-04-23 15:32:32 +03:00
parent 5352dc7200
commit a036f103af

View File

@@ -70,7 +70,7 @@ func createProxy(target *url.URL) func(http.ResponseWriter, *http.Request) {
proxy := httputil.NewSingleHostReverseProxy(target)
proxy.Director = director
if r.URL.Path == "/api/generate" {
if r.URL.Path == "/api/generate" || r.URL.Path == "/api/chat" {
proxy.ModifyResponse = modifyResponse
}