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 (
"context"
"fmt"
"math/rand"
"net/http"
"net/url"
"os"
"regexp"
"slices"
"math/rand"
"strconv"
"strings"
"sync"

View file

@ -9,6 +9,7 @@ import (
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
"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.
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)
requestBody := map[string]any{