Skip to content

Commit b01b443

Browse files
Update main.go
Co-authored-by: Ignasi <ignasi.lopez.luna@gmail.com>
1 parent 7112960 commit b01b443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type V1AliasHandler struct {
3535
func (h *V1AliasHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
3636
// Modify the URL path to prepend /engines/ before /v1/
3737
originalPath := r.URL.Path
38-
newPath := "/engines" + originalPath // originalPath is like "/v1/models", so result is "/engines/v1/models"
38+
newPath := inference.InferencePrefix + originalPath // originalPath is like "/v1/models", so result is "/engines/v1/models"
3939

4040
// Create a clone of the request with the modified path
4141
r2 := new(http.Request)

0 commit comments

Comments
 (0)