Skip to content

Conversation

@savil
Copy link
Contributor

@savil savil commented Jan 21, 2026

Summary

In getModelConfig, we specify some default settings for the openai models.
In particular, the RequiredAutoTruncation is hardcoded in there.

Some users may want to override this and manually set the truncation to auto or disabled, depending on their specific use-case.
This PR allows that.

How was it tested?

Did not do any rigorous testing aside from compiling, and code inspection.
We can consider adding some test-cases here in the future.

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 License.

By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the Community Contribution License.

@savil savil requested review from gcurtis, ipince and loreto January 22, 2026 00:18
@savil savil marked this pull request as ready for review January 22, 2026 00:18
@savil savil merged commit c4cb9a0 into main Jan 22, 2026
9 checks passed
@savil savil deleted the savil/aisdk-openai-truncation-option branch January 22, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants