I would like to use software written in C# to generate a nice, detailed description from a very sparse product description at the push of a button.
So far I get the answer, but unfortunately as continuous text without line breaks.
How do I get the line breaks in the textbox on output?
private async void button13_Click(object sender, EventArgs e)
{
textBox6.Clear();
var api = new OpenAI_API.OpenAIAPI("API-TOKEN");
var chat = api.Chat.CreateConversation();
chat.AppendUserInput("Create a product description from the following text with 500-950 characters. Technical data should be given as coatings with the heading 'Technical features'. The entire description should be written in easy-to-read english: "+textBox2.Text);
await chat.StreamResponseFromChatbotAsync(res =>
{
textBox6.AppendText(res);
});
}
}