fix: resolve golangci-lint formatting issues

Fix gci import ordering in telegram and anthropic provider, and break
long function signature in openai_compat provider to satisfy golines.
This commit is contained in:
Amir Mamaghani 2026-03-05 11:54:16 +01:00
parent 9938028971
commit 9f3caa3d6c
3 changed files with 5 additions and 2 deletions

View file

@ -3,12 +3,12 @@ package telegram
import ( import (
"context" "context"
"fmt" "fmt"
"math/rand"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"
"regexp" "regexp"
"slices" "slices"
"math/rand"
"strconv" "strconv"
"strings" "strings"
"sync" "sync"

View file

@ -9,6 +9,7 @@ import (
"github.com/anthropics/anthropic-sdk-go" "github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option" "github.com/anthropics/anthropic-sdk-go/option"
"github.com/sipeed/picoclaw/pkg/providers/protocoltypes" "github.com/sipeed/picoclaw/pkg/providers/protocoltypes"
) )

View file

@ -103,7 +103,9 @@ func NewProviderWithMaxTokensFieldAndTimeout(
} }
// buildRequestBody constructs the common request body for Chat and ChatStream. // buildRequestBody constructs the common request body for Chat and ChatStream.
func (p *Provider) buildRequestBody(messages []Message, tools []ToolDefinition, model string, options map[string]any) map[string]any { func (p *Provider) buildRequestBody(
messages []Message, tools []ToolDefinition, model string, options map[string]any,
) map[string]any {
model = normalizeModel(model, p.apiBase) model = normalizeModel(model, p.apiBase)
requestBody := map[string]any{ requestBody := map[string]any{