Skip to content

Not able to achieve Reproducible outputs with the seed parameter (SDK version 1.1.1) #708

Closed
@ycrouin

Description

@ycrouin

Hi 👋,

I've noticed the exciting new capability for achieving Reproducible outputs.
Nevertheless, I'm encountering varying results when using identical input parameters and getting the same system fingerprint.

Screenshot from 2023-11-07 13-22-23

Am I missing something?

Python code to reproduce this issue (might need a few runs)
import openai
from openai.types.chat import ChatCompletionUserMessageParam

print(openai.__version__)
print()

for i in range(5):
    message = ChatCompletionUserMessageParam(
        content=(
            "Imagine something completely random and crazy! (approximately 100 words)"
        ),
        role="user",
    )
    response = openai.chat.completions.create(
        messages=[message], model="gpt-3.5-turbo-1106", temperature=0, seed=42
    )
    print(response.system_fingerprint, response.choices[0].message.content)

Versions

OpenAI SDK 1.1.1
Python version 3.11.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions