diff --git a/.golangci.yml b/.golangci.yml index d869746..960a059 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -190,12 +190,12 @@ linters: - exhaustive # checks exhaustiveness of enum switch statements - exportloopref # checks for pointers to enclosing loop variables # - forbidigo # forbids identifiers - - funlen # tool for detection of long functions + # - funlen # tool for detection of long functions - gocheckcompilerdirectives # validates go compiler directive comments (//go:) - gochecknoglobals # checks that no global variables exist - gochecknoinits # checks that no init functions are present in Go code - gocognit # computes and checks the cognitive complexity of functions - - goconst # finds repeated strings that could be replaced by a constant + # - goconst # finds repeated strings that could be replaced by a constant - gocritic # provides diagnostics that check for bugs, performance and style issues - gocyclo # computes and checks the cyclomatic complexity of functions - godot # checks if comments end in a period diff --git a/internal/handlers/private.go b/internal/handlers/private.go index d62a2f2..70c7d80 100644 --- a/internal/handlers/private.go +++ b/internal/handlers/private.go @@ -102,10 +102,6 @@ func apiRequestRoutine( openaiClient *openai.Client, result chan string, ) error { - const ( - chatGPT4 = "4" - ) - instruction := openai.ChatCompletionMessage{ Role: "system", Content: "Instruction:\n" +