mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-18 22:37:08 +08:00
- Updated all references from v6 to v7 for `github.com/router-for-me/CLIProxyAPI`. - Ensured consistency in imports within core libraries, tests, and integration tests. - Added missing tests for new features in Redis Protocol integration.
21 lines
498 B
Go
21 lines
498 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,
|
|
GeminiCLI,
|
|
ConvertClaudeRequestToCLI,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertGeminiCLIResponseToClaude,
|
|
NonStream: ConvertGeminiCLIResponseToClaudeNonStream,
|
|
TokenCount: ClaudeTokenCount,
|
|
},
|
|
)
|
|
}
|