mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Don't strip remote llama-cpp proxy prefix
This commit is contained in:
@@ -88,9 +88,11 @@ func (h *Handler) LlamaCppProxy(onDemandStart bool) http.HandlerFunc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strip the "/llama-cpp/<name>" prefix from the request URL
|
if !inst.IsRemote() {
|
||||||
prefix := fmt.Sprintf("/llama-cpp/%s", validatedName)
|
// Strip the "/llama-cpp/<name>" prefix from the request URL
|
||||||
r.URL.Path = strings.TrimPrefix(r.URL.Path, prefix)
|
prefix := fmt.Sprintf("/llama-cpp/%s", validatedName)
|
||||||
|
r.URL.Path = strings.TrimPrefix(r.URL.Path, prefix)
|
||||||
|
}
|
||||||
|
|
||||||
// Update the last request time for the instance
|
// Update the last request time for the instance
|
||||||
inst.UpdateLastRequestTime()
|
inst.UpdateLastRequestTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user