mirror of
https://github.com/voideditor/void
synced 2026-05-23 17:38:23 +00:00
Translate abort comments
This commit is contained in:
parent
9abc3ad3dc
commit
2701226ef3
2 changed files with 4 additions and 3 deletions
|
|
@ -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
1
void
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 5083b8e971e48ae1001e5c8ceee7b010bcea3640
|
||||
Loading…
Reference in a new issue