diff --git a/relay/channel/openai/adaptor.go b/relay/channel/openai/adaptor.go index 217790a7..efd22878 100644 --- a/relay/channel/openai/adaptor.go +++ b/relay/channel/openai/adaptor.go @@ -35,9 +35,9 @@ type Adaptor struct { } func (a *Adaptor) ConvertClaudeRequest(c *gin.Context, info *relaycommon.RelayInfo, request *dto.ClaudeRequest) (any, error) { - if !strings.Contains(request.Model, "claude") { - return nil, fmt.Errorf("you are using openai channel type with path /v1/messages, only claude model supported convert, but got %s", request.Model) - } + //if !strings.Contains(request.Model, "claude") { + // return nil, fmt.Errorf("you are using openai channel type with path /v1/messages, only claude model supported convert, but got %s", request.Model) + //} aiRequest, err := service.ClaudeToOpenAIRequest(*request, info) if err != nil { return nil, err