We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7112960 commit b01b443Copy full SHA for b01b443
main.go
@@ -35,7 +35,7 @@ type V1AliasHandler struct {
35
func (h *V1AliasHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
36
// Modify the URL path to prepend /engines/ before /v1/
37
originalPath := r.URL.Path
38
- newPath := "/engines" + originalPath // originalPath is like "/v1/models", so result is "/engines/v1/models"
+ newPath := inference.InferencePrefix + originalPath // originalPath is like "/v1/models", so result is "/engines/v1/models"
39
40
// Create a clone of the request with the modified path
41
r2 := new(http.Request)
0 commit comments