Skip to content

fix(provider): silence tagliatelle for max_tokens#14

Merged
aanogueira merged 2 commits into
mainfrom
andre.nogueira/fix-tagliatelle-max-tokens
May 26, 2026
Merged

fix(provider): silence tagliatelle for max_tokens#14
aanogueira merged 2 commits into
mainfrom
andre.nogueira/fix-tagliatelle-max-tokens

Conversation

@aanogueira
Copy link
Copy Markdown
Contributor

Summary

  • Restore json:\"max_tokens\" tags on AnthropicRequest.MaxTokens and ChatRequest.MaxTokens (the previous unstaged rename to maxTokens would have broken the Anthropic API call fixed in 81a39fd).
  • Add per-line //nolint:tagliatelle directives with a short reason so the camelCase rule doesn't push us back into a broken rename.

Test plan

  • golangci-lint run ./internal/provider/... → no issues

The Anthropic API and other upstream providers require snake_case
field names. Restore the json:"max_tokens" tags and add per-line
//nolint:tagliatelle directives so the camelCase rule doesn't push
us back into a broken rename.

Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
actions/setup-go@v6 already caches ~/.cache/go-build and ~/go/pkg/mod
keyed on go.sum. The extra actions/cache step raced with setup-go's
own save (visible as 'Unable to reserve cache with key ... another
job may be creating this cache.' in the Lint job) and blew up the
Windows Test job in 0s, which then cancelled the rest of the matrix.

Signed-off-by: Andre Nogueira <aanogueira@protonmail.com>
@aanogueira aanogueira merged commit 86ac37d into main May 26, 2026
9 checks passed
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants