diff --git a/extensions/src/scratch3_jibo/index.ts b/extensions/src/scratch3_jibo/index.ts index 1a21c4c7c..2c3c9bb86 100644 --- a/extensions/src/scratch3_jibo/index.ts +++ b/extensions/src/scratch3_jibo/index.ts @@ -510,7 +510,8 @@ export default class Scratch3Jibo extends Extension { let resp = await GPTController.getChattyGPTResponse(this.msgLog, input); // TODO clean up characters that mess with Jibo's speech - resp = resp.replace("'", ""); + resp = resp.replace(" '", " "); + resp = resp.replace("' ", " "); //console.log(`Got response from GPT: ${resp}`); // debug statement this.msgLog.addUserMessage(input); this.msgLog.addBotMessage(resp);