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:
parent
9938028971
commit
9f3caa3d6c
3 changed files with 5 additions and 2 deletions
|
|
@ -3,12 +3,12 @@ package telegram
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"regexp"
|
||||
"slices"
|
||||
"math/rand"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue