Skip to content

Commit

Permalink
add seed parameter (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshreini1 authored Nov 16, 2023
1 parent 66a17c6 commit 555ebad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trulens_eval/trulens_eval/feedback/provider/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def _create_chat_completion(
if 'temperature' not in kwargs:
kwargs['temperature'] = 0.0

if 'seed' not in kwargs:
kwargs['seed'] = 123

if prompt is not None:
completion = self.endpoint.client.chat.completions.create(messages=[{
"role": "system",
Expand Down

0 comments on commit 555ebad

Please sign in to comment.