refactor(translator): Remove unused logrus imports

This commit is contained in:
hkfires
2025-09-22 08:01:37 +08:00
parent f81898c906
commit d6bb143978
13 changed files with 0 additions and 17 deletions

View File

@@ -4,7 +4,6 @@ import (
"context" "context"
. "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/gemini/openai/responses" . "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/gemini/openai/responses"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

View File

@@ -8,7 +8,6 @@ package geminiCLI
import ( import (
"bytes" "bytes"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -7,8 +7,6 @@ package geminiCLI
import ( import (
"bytes" "bytes"
"context" "context"
log "github.com/sirupsen/logrus"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -7,7 +7,6 @@ import (
"bytes" "bytes"
"fmt" "fmt"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -3,8 +3,6 @@ package gemini
import ( import (
"bytes" "bytes"
"context" "context"
log "github.com/sirupsen/logrus"
) )
// PassthroughGeminiResponseStream forwards Gemini responses unchanged. // PassthroughGeminiResponseStream forwards Gemini responses unchanged.

View File

@@ -12,7 +12,6 @@ import (
"fmt" "fmt"
"time" "time"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"strings" "strings"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -12,7 +12,6 @@ import (
"strings" "strings"
"github.com/router-for-me/CLIProxyAPI/v6/internal/util" "github.com/router-for-me/CLIProxyAPI/v6/internal/util"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

View File

@@ -9,7 +9,6 @@ import (
"bytes" "bytes"
. "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/openai/gemini" . "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/openai/gemini"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -9,7 +9,6 @@ import (
"context" "context"
. "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/openai/gemini" . "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/openai/gemini"
log "github.com/sirupsen/logrus"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -12,7 +12,6 @@ import (
"math/big" "math/big"
"strings" "strings"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )

View File

@@ -8,8 +8,6 @@ package chat_completions
import ( import (
"bytes" "bytes"
"context" "context"
log "github.com/sirupsen/logrus"
) )
// ConvertOpenAIResponseToOpenAI translates a single chunk of a streaming response from the // ConvertOpenAIResponseToOpenAI translates a single chunk of a streaming response from the

View File

@@ -2,8 +2,6 @@ package responses
import ( import (
"bytes" "bytes"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"github.com/tidwall/sjson" "github.com/tidwall/sjson"
) )