Passing user identifier to OpenAI API.

This commit is contained in:
Niels Simenon 2023-04-09 16:04:19 +02:00
parent efc45f2103
commit c4d328b409
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ async function onCommand(args, context) {
model: settings.model,
max_tokens: config.chat.replyTokenLimit,
messages: userHistory,
user: `${context.user.id}:${context.user.username}`,
}), {
headers: {
Authorization: `Bearer ${config.chat.apiKey}`,