Be explicit with openai response choices limit (n parameter)

This commit is contained in:
Matt Low 2023-11-25 17:17:33 +00:00
parent 137c568129
commit 2f3d95356a

View File

@ -22,6 +22,7 @@ func CreateChatCompletionRequest(model string, messages []Message, maxTokens int
Model: model,
Messages: chatCompletionMessages,
MaxTokens: maxTokens,
N: 1, // limit responses to 1 "choice". we use choices[0] to reference it
}
}