This is my code for calling the gpt-4 model:
messages = [
{"role": "system", "content": system_msg},
{"role": "user", "content": req}
]
response = openai.ChatCompletion.create(
engine = "******-gpt-4-32k",
messages = messages,
temperature=0,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
answer = response["choices"][0]["message"]["content"]
Keeping system_msg & req constant, with temperature=0, I get different answers. I got 3 different answers when I last ran this 10 times for instance. The answers are similar in concept, but differ in semantics.
Why is this happening?