fix: fix claude channel test

This commit is contained in:
CaIon committed 2024-03-08 21:38:43 +08:00
1 parent 22f1c13a8b
commit d007f84c5e
2 files changed
+4 -4

No files matched your search

-2
View File
@@ -6,7 +6,6 @@ import (
"github.com/gin-gonic/gin"
"io"
"net/http"
"one-api/common"
"one-api/dto"
"one-api/relay/channel"
relaycommon "one-api/relay/common"
@@ -50,7 +49,6 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Request, info *re
}
func (a *Adaptor) ConvertRequest(c *gin.Context, relayMode int, request *dto.GeneralOpenAIRequest) (any, error) {
common.SysLog(fmt.Sprintf("Request mode: %d", a.RequestMode))
if request == nil {
return nil, errors.New("request is nil")
}