Skip to content

Fix normalized Anthropic max token defaults#433

Open
fallintoplace wants to merge 1 commit into
stripe:mainfrom
fallintoplace:fix-anthropic-normalized-max-tokens
Open

Fix normalized Anthropic max token defaults#433
fallintoplace wants to merge 1 commit into
stripe:mainfrom
fallintoplace:fix-anthropic-normalized-max-tokens

Conversation

@fallintoplace
Copy link
Copy Markdown

Summary

  • recognize normalized Anthropic model IDs when applying default max_tokens
  • cover the regression through the createStripe() and createStripeV3() provider paths
  • keep the fix narrowly scoped to the existing V2 and V3 matchers

Testing

  • npm test -- --runTestsByPath provider/tests/stripe-provider.test.ts provider/tests/stripe-provider-v3.test.ts provider/tests/stripe-language-model.test.ts provider/tests/stripe-language-model-v3.test.ts
  • ./node_modules/.bin/tsc -p . --noEmit

Closes #432.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented May 24, 2026

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented May 24, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

Normalized Anthropic model IDs fall back to the wrong default max_tokens

1 participant