mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
refactor: Prevent memory leaks by nullifying boundModel.client in disposeClient function
This commit is contained in:
parent
59818c77ba
commit
a326c18b74
2 changed files with 5 additions and 0 deletions
|
|
@ -787,6 +787,8 @@ class AgentClient extends BaseClient {
|
|||
[Callback.TOOL_ERROR]: logToolError,
|
||||
},
|
||||
});
|
||||
|
||||
config.signal = null;
|
||||
};
|
||||
|
||||
await runAgent(this.options.agent, initialMessages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue