|
|
@@ -13,6 +13,7 @@ import (
|
|
|
channelconstant "github.com/QuantumNous/new-api/constant"
|
|
|
"github.com/QuantumNous/new-api/dto"
|
|
|
"github.com/QuantumNous/new-api/relay/channel"
|
|
|
+ "github.com/QuantumNous/new-api/relay/channel/claude"
|
|
|
"github.com/QuantumNous/new-api/relay/channel/openai"
|
|
|
relaycommon "github.com/QuantumNous/new-api/relay/common"
|
|
|
"github.com/QuantumNous/new-api/relay/constant"
|
|
|
@@ -39,7 +40,7 @@ func (a *Adaptor) ConvertGeminiRequest(*gin.Context, *relaycommon.RelayInfo, *dt
|
|
|
}
|
|
|
|
|
|
func (a *Adaptor) ConvertClaudeRequest(c *gin.Context, info *relaycommon.RelayInfo, req *dto.ClaudeRequest) (any, error) {
|
|
|
- adaptor := openai.Adaptor{}
|
|
|
+ adaptor := claude.Adaptor{}
|
|
|
return adaptor.ConvertClaudeRequest(c, info, req)
|
|
|
}
|
|
|
|