20 lines
481 B
Go
20 lines
481 B
Go
package claude
|
|
|
|
import (
|
|
. "github.com/router-for-me/CLIProxyAPI/v7/internal/constant"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/interfaces"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/translator/translator"
|
|
)
|
|
|
|
func init() {
|
|
translator.Register(
|
|
Claude,
|
|
Interactions,
|
|
ConvertClaudeRequestToInteractions,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertInteractionsResponseToClaude,
|
|
NonStream: ConvertInteractionsResponseToClaudeNonStream,
|
|
},
|
|
)
|
|
}
|