From f5a223316e77179b5700878393e1d943013e9134 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Wed, 23 Oct 2024 21:41:35 -0700 Subject: [PATCH] refactor(gcm.genai.mts): trim message text to remove leading/trailing whitespace --- packages/vscode/genaisrc/gcm.genai.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vscode/genaisrc/gcm.genai.mts b/packages/vscode/genaisrc/gcm.genai.mts index 9c33a8ee71..4d246dc895 100644 --- a/packages/vscode/genaisrc/gcm.genai.mts +++ b/packages/vscode/genaisrc/gcm.genai.mts @@ -92,7 +92,7 @@ do { ], }) if (res.error) throw res.error - message = res.text + message = res.text?.trim() } if (!message) {