mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
copy code in progress
This commit is contained in:
parent
0d8755a03a
commit
50ff96cbc5
3 changed files with 33 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue