Skip to content

Commit

Permalink
Fixing issue with Jibo saying contractions
Browse files Browse the repository at this point in the history
  • Loading branch information
randi-c-dubs committed Nov 15, 2023
1 parent 990dad4 commit b8af709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/src/scratch3_jibo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ export default class Scratch3Jibo extends Extension<Details, Blocks> {
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);
Expand Down

0 comments on commit b8af709

Please sign in to comment.