Translate abort comments

This commit is contained in:
Jérôme Commaret 2025-01-10 23:57:40 +01:00
parent 9abc3ad3dc
commit 2701226ef3
2 changed files with 4 additions and 3 deletions

View file

@ -45,7 +45,7 @@ export const sendMistralMsg: _InternalSendLLMMessageFnType = async ({ messages,
apiKey: thisConfig.apiKey
});
// Définir l'aborter avant de commencer le streaming
// Define the aborter before staring the stream
_setAborter(() => {
aborted = true;
});
@ -87,7 +87,7 @@ export const sendMistralMsg: _InternalSendLLMMessageFnType = async ({ messages,
});
for await (const chunk of stream) {
// Vérifier si la requête a été abandonnée
// Check if the request has been aborted
if (aborted) {
return;
}
@ -102,7 +102,7 @@ export const sendMistralMsg: _InternalSendLLMMessageFnType = async ({ messages,
}
}
// Vérifier une dernière fois si la requête a été abandonnée
// Check one last time if the request has been aborted
if (aborted) {
return;
}

1
void Submodule

@ -0,0 +1 @@
Subproject commit 5083b8e971e48ae1001e5c8ceee7b010bcea3640