mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
fix: lint for var blocks
This commit is contained in:
@@ -21,10 +21,8 @@ import (
|
||||
"github.com/charmbracelet/crush/internal/message"
|
||||
)
|
||||
|
||||
var (
|
||||
// Pre-compiled regex for parsing context limit errors.
|
||||
contextLimitRegex = regexp.MustCompile(`input length and ` + "`max_tokens`" + ` exceed context limit: (\d+) \+ (\d+) > (\d+)`)
|
||||
)
|
||||
// Pre-compiled regex for parsing context limit errors.
|
||||
var contextLimitRegex = regexp.MustCompile(`input length and ` + "`max_tokens`" + ` exceed context limit: (\d+) \+ (\d+) > (\d+)`)
|
||||
|
||||
type anthropicClient struct {
|
||||
providerOptions providerClientOptions
|
||||
|
||||
@@ -15,11 +15,9 @@ import (
|
||||
"github.com/sahilm/fuzzy"
|
||||
)
|
||||
|
||||
var (
|
||||
// Pre-compiled regex for checking if a string is alphanumeric.
|
||||
// Note: This is duplicated from filterable.go to avoid circular dependencies.
|
||||
alphanumericRegexGroup = regexp.MustCompile(`^[a-zA-Z0-9]*$`)
|
||||
)
|
||||
// Pre-compiled regex for checking if a string is alphanumeric.
|
||||
// Note: This is duplicated from filterable.go to avoid circular dependencies.
|
||||
var alphanumericRegexGroup = regexp.MustCompile(`^[a-zA-Z0-9]*$`)
|
||||
|
||||
type FilterableGroupList[T FilterableItem] interface {
|
||||
GroupedList[T]
|
||||
|
||||
Reference in New Issue
Block a user