fix(autofix): unnecessary conversion

This commit is contained in:
Matteo Calabrò
2025-09-22 10:15:18 +02:00
committed by Cosmin Cojocar
parent 64ebfc0106
commit 7b8713e2c9

View File

@@ -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)),