mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-29 14:48:51 +01:00
feat: add target model to messages so we dont have to peek into child ai message responses every time to know what model the user sent their message to for tokenValue computations
This commit is contained in:
parent
465c81adee
commit
adff605c50
5 changed files with 8 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ async function saveUserMessage(req, params) {
|
|||
parentMessageId: params.parentMessageId ?? Constants.NO_PARENT,
|
||||
/* For messages, use the assistant_id instead of model */
|
||||
model: params.assistant_id,
|
||||
targetModel: params.model,
|
||||
thread_id: params.thread_id,
|
||||
sender: 'User',
|
||||
text: params.text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue