Skip to content

Commit

Permalink
refactor(gcm.genai.mts): trim message text to remove leading/trailing…
Browse files Browse the repository at this point in the history
… whitespace
  • Loading branch information
pelikhan committed Oct 24, 2024
1 parent bba1a78 commit f5a2233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/genaisrc/gcm.genai.mts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ do {
],
})
if (res.error) throw res.error
message = res.text
message = res.text?.trim()
}

if (!message) {
Expand Down

0 comments on commit f5a2233

Please sign in to comment.