FormulaMonks / kurt

A wrapper for AI SDKs, for building LLM-agnostic structured AI applications in Typescript
MIT License
2 stars 0 forks source link

Add parameter to set PRNG seed #47

Open jemc opened 1 week ago

jemc commented 1 week ago

For LLM providers that allow setting the PRNG seed for sampling determinism reasons, Kurt should provide a way to do this.

Current expectations of support across LLM providers:

For LLMs which do not support this feature, if the optional seed parameter is given by the user, Kurt should throw a KurtFeatureIncompatibleError (an error class which doesn't yet exist, but I've been thinking about for some time). We should also include a row for this in the #28 to highlight which LLM API providers have and don't have this feature.