microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.65k stars 2.59k forks source link

[Feature] Enhance output formatting for code snippets #166

Open ealasgarov opened 1 year ago

ealasgarov commented 1 year ago

Story: As a user, who works with code, I would like to have an improved readability of output of code snippets. At this point composed code outputs appear as a plane text, without any highlights and etc. It would be desired to have the similar output as given by "chat.openai.com" where it appears like it is given in a development environment, with all the components properly highlighted and an option to copy the code with a click of a button (screenshot attached). image

While the same output from the app currently looks like that: image

rhematt commented 6 months ago

Add vote to this. Is the addition of a simple copy mechanism for chat responses within the development pipeline or is this something we should be looking at developing ourselves?

mittalpatel130 commented 2 months ago

Any update on the "Copy" button development please?