NeMo-Guardrails icon indicating copy to clipboard operation
NeMo-Guardrails copied to clipboard

Allow new line characters inside predefined bot messages

Open drazvan opened this issue 1 year ago • 3 comments

If "\n" is used inside a predefined bot message, it will be returned as is as part of the message. It should be translated to an actual \n character.

drazvan avatar Dec 11 '23 12:12 drazvan

I am interested in contributing to this issue. Since I am new to this project can you please point to necessary files.

madangopal16072000 avatar Dec 11 '23 18:12 madangopal16072000

Thanks @madangopal16072000 !

One way to go about this is to check the content of the bot_utterance here and replace all "\n" with the actual \n character.

Make sure you also add a simple test for this.

Thanks!

drazvan avatar Dec 14 '23 13:12 drazvan

@madangopal16072000 : are you still interested in contributing this?

drazvan avatar Feb 29 '24 13:02 drazvan