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,
|
model: settings.model,
|
||||||
max_tokens: config.chat.replyTokenLimit,
|
max_tokens: config.chat.replyTokenLimit,
|
||||||
messages: userHistory,
|
messages: userHistory,
|
||||||
|
user: `${context.user.id}:${context.user.username}`,
|
||||||
}), {
|
}), {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${config.chat.apiKey}`,
|
Authorization: `Bearer ${config.chat.apiKey}`,
|
||||||
|
|
Loading…
Reference in New Issue