mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-11 12:04:24 +01:00
✨ feat: Enhance token usage computation with improved message handling and context management
This commit is contained in:
parent
be606dda6f
commit
5d71b049cb
3 changed files with 27 additions and 7 deletions
|
|
@ -315,6 +315,8 @@ class AgentClient extends BaseClient {
|
|||
Object.assign(
|
||||
{
|
||||
endpoint: this.options.endpoint,
|
||||
endpointType: this.options.endpointType,
|
||||
model: this.options.agent?.model_parameters?.model,
|
||||
agent_id: this.options.agent.id,
|
||||
modelLabel: this.options.modelLabel,
|
||||
maxContextTokens: this.options.maxContextTokens,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue