copy code in progress

This commit is contained in:
Danny Avila 2023-03-02 16:31:00 -05:00
parent 0d8755a03a
commit 50ff96cbc5
3 changed files with 33 additions and 24 deletions

View file

@ -25,7 +25,8 @@ const detectCode = async (text) => {
const language = await modelOperations.runModel(code);
return part.replace(/^```/, `\`\`\`${language[0].languageId}`);
} else {
return i > 0 ? '\n' + part : part;
// return i > 0 ? '\n' + part : part;
return part;
}
});