mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-21 01:44:09 +01:00
Use react markdown as default, cleanup dependencies
This commit is contained in:
parent
e8e512a451
commit
40e23b013a
18 changed files with 27 additions and 838 deletions
|
|
@ -38,14 +38,6 @@ export const languages = [
|
|||
'pascal'
|
||||
];
|
||||
|
||||
export const wrapperRegex = {
|
||||
codeRegex: /(```[\s\S]*?```)/g,
|
||||
inLineRegex: /(`[^`]+?`)/g,
|
||||
markupRegex: /(`[^`]+?`)/g,
|
||||
languageMatch: /^```(\w+)/,
|
||||
newLineMatch: /^```(\n+)/
|
||||
};
|
||||
|
||||
export const getIconOfModel = ({ size=30, sender, isCreatedByUser, searchResult, model, chatGptLabel, error, ...props }) => {
|
||||
// 'ai' is used as 'model' is not accurate for search results
|
||||
let ai = searchResult ? sender : model;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue