client = OpenAI(
# This is the default and can be omitted
api_key=SECEREC_KEY,
)
response = client.chat.completions.create(
model='gpt-3.5-turbo',
# model='gpt-4-1106-preview',
messages=prompts,
stream=False,
# frequency_penalty=penalty,
presence_penalty=penalty,
logprobs=True,
top_logprobs=20
)
above code,
Completions.create() got an unexpected keyword argument ‘logprobs’
error happened.
whats wrong??