Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Sep 11, 2024
1 parent 4a549f6 commit 8d4f845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (m *Mods) createGoogleStream(content string, gccfg GoogleClientConfig, mod
}

if cfg.MaxTokens > 0 {
generationConfig.MaxOutputTokens = uint(cfg.MaxTokens)
generationConfig.MaxOutputTokens = uint(cfg.MaxTokens) //nolint: gosec
} else {
generationConfig.MaxOutputTokens = 4096
}
Expand Down

0 comments on commit 8d4f845

Please sign in to comment.