From 2701226ef316665f989cc3e92f5e4b624b9c800c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Commaret?= Date: Fri, 10 Jan 2025 23:57:40 +0100 Subject: [PATCH] Translate abort comments --- src/vs/platform/void/electron-main/llmMessage/mistral.ts | 6 +++--- void | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 160000 void diff --git a/src/vs/platform/void/electron-main/llmMessage/mistral.ts b/src/vs/platform/void/electron-main/llmMessage/mistral.ts index 6d59b6a2..ca32fd49 100644 --- a/src/vs/platform/void/electron-main/llmMessage/mistral.ts +++ b/src/vs/platform/void/electron-main/llmMessage/mistral.ts @@ -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; } diff --git a/void b/void new file mode 160000 index 00000000..5083b8e9 --- /dev/null +++ b/void @@ -0,0 +1 @@ +Subproject commit 5083b8e971e48ae1001e5c8ceee7b010bcea3640