mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
fix(OpenAIClient): do not invoke abortCompletion on completion error (#1473)
This commit is contained in:
parent
c7306395e9
commit
2b3fa327a3
1 changed files with 0 additions and 1 deletions
|
|
@ -859,7 +859,6 @@ ${convo}
|
|||
(err instanceof OpenAI.OpenAIError && err?.message?.includes('missing finish_reason'))
|
||||
) {
|
||||
logger.error('[OpenAIClient] Known OpenAI error:', err);
|
||||
await abortController.abortCompletion();
|
||||
return intermediateReply;
|
||||
} else if (err instanceof OpenAI.APIError) {
|
||||
if (intermediateReply) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue