mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🔗 fix: Set Abort Signal for Agent Chain Run if Cleaned Up (#8625)
This commit is contained in:
parent
8a3ff62ee6
commit
a01536ddb7
1 changed files with 3 additions and 0 deletions
|
|
@ -735,6 +735,9 @@ class AgentClient extends BaseClient {
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
this.model = agent.model_parameters.model;
|
this.model = agent.model_parameters.model;
|
||||||
}
|
}
|
||||||
|
if (i > 0 && config.signal == null) {
|
||||||
|
config.signal = abortController.signal;
|
||||||
|
}
|
||||||
if (agent.recursion_limit && typeof agent.recursion_limit === 'number') {
|
if (agent.recursion_limit && typeof agent.recursion_limit === 'number') {
|
||||||
config.recursionLimit = agent.recursion_limit;
|
config.recursionLimit = agent.recursion_limit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue