Passing user identifier to OpenAI API.
This commit is contained in:
parent
efc45f2103
commit
c4d328b409
|
@ -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}`,
|
||||
|
|
Loading…
Reference in New Issue