wIK5Ez2o commited on
Commit
ea4334c
·
verified ·
1 Parent(s): d912fda

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -33,7 +33,7 @@ COPY --from=builder /src/web/build ./web/build
33
  # fix
34
  RUN sed -i 's/router.Group("\/v1")/router.Group("\/v1")\n relayV2Router := router.Group("\/proxies\/v1")Eof/g' router/relay.go
35
  RUN sed -i 's/Eof/\n relayV2Router.Use(middleware.RelayPanicRecover(), middleware.TokenAuth(), middleware.Distribute())\n {Eof/g' router/relay.go
36
- RUN sed -i 's/Eof/\n relayV2Router.GET("/models", controller.ListModels)\n relayV2Router.GET("/models/:model", controller.RetrieveModel)Eof/g' router/relay.go
37
  RUN sed -i 's/Eof/\n relayV2Router.POST("\/chat\/completions", controller.Relay) }/g' router/relay.go
38
  RUN sed -i 's/if strings.HasPrefix(path, "\/v1\/chat\/completions") {/if strings.Contains(path, "\/v1\/chat\/completions") {/g' relay/relaymode/helper.go
39
 
 
33
  # fix
34
  RUN sed -i 's/router.Group("\/v1")/router.Group("\/v1")\n relayV2Router := router.Group("\/proxies\/v1")Eof/g' router/relay.go
35
  RUN sed -i 's/Eof/\n relayV2Router.Use(middleware.RelayPanicRecover(), middleware.TokenAuth(), middleware.Distribute())\n {Eof/g' router/relay.go
36
+ RUN sed -i 's/Eof/\n relayV2Router.GET("\/models", controller.ListModels)\n relayV2Router.GET("\/models\/:model", controller.RetrieveModel)Eof/g' router/relay.go
37
  RUN sed -i 's/Eof/\n relayV2Router.POST("\/chat\/completions", controller.Relay) }/g' router/relay.go
38
  RUN sed -i 's/if strings.HasPrefix(path, "\/v1\/chat\/completions") {/if strings.Contains(path, "\/v1\/chat\/completions") {/g' relay/relaymode/helper.go
39