Skip to content

Add parameter to set PRNG seed #47

Description

@jemc

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:

  • OpenAI has this as a documented feature
  • VertexAI Gemini doesn't appear to have it, but it may be an undocumented feature
  • Anthropic Claude doesn't appear to have it.
  • Local LLMs should be able to easily support it.

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions