mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
fix(autofix): unnecessary conversion
This commit is contained in:
committed by
Cosmin Cojocar
parent
64ebfc0106
commit
7b8713e2c9
@@ -39,7 +39,7 @@ func NewClaudeClient(model, apiKey string) (GenAIClient, error) {
|
||||
|
||||
func (c *claudeWrapper) GenerateSolution(ctx context.Context, prompt string) (string, error) {
|
||||
resp, err := c.client.Messages.New(ctx, anthropic.MessageNewParams{
|
||||
Model: anthropic.Model(c.model),
|
||||
Model: c.model,
|
||||
MaxTokens: 1024,
|
||||
Messages: []anthropic.MessageParam{
|
||||
anthropic.NewUserMessage(anthropic.NewTextBlock(prompt)),
|
||||
|
||||
Reference in New Issue
Block a user