Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add forceSchemaConstrainedTokens to KurtSamplingOptions #62

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

jemc
Copy link
Contributor

@jemc jemc commented Dec 6, 2024

This maps to the new-ish strict: true feature of OpenAI which enables constrained token sampling, but has certain caveats that make it undesirable to turn on by default.

See issue #61 for more info.

Also adds KurtCapabilityError which adapters should throw to signal if they are missing this capability when it is requested (or any other capability expected by some part of the request).

This maps to the new-ish `strict: true` feature of OpenAI which
enables constrained token sampling, but has certain caveats that
make it undesirable to turn on by default.

See issue #61 for more info.
@jemc jemc force-pushed the add/schema-constrained-tokens branch from a0c8970 to 91dd0ba Compare December 6, 2024 20:44
@jemc jemc merged commit 9ba8bdb into main Dec 6, 2024
1 check passed
@jemc jemc deleted the add/schema-constrained-tokens branch December 6, 2024 22:40
Copy link

github-actions bot commented Dec 6, 2024

🎉 This PR is included in version @formula-monks/kurt-v1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version @formula-monks/kurt-cache-v1.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants