-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New option to disable rendering of user message markdown #2726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
6be5a1a
e7ddf30
853c6b5
1558da6
d025389
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,9 +38,13 @@ const ReadOnlyThread = ({ id }: Props) => { | |
| error: threadError, | ||
| isLoading | ||
| } = useApi<IThread>( | ||
| id ? (isSharedRoute ? `/project/share/${id}` : `/project/thread/${id}`) : null, | ||
| id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to include this to pass the linter checks. |
||
| ? isSharedRoute | ||
| ? `/project/share/${id}` | ||
| : `/project/thread/${id}` | ||
| : null, | ||
| { | ||
| revalidateOnFocus: false | ||
| revalidateOnFocus: false | ||
| } | ||
| ); | ||
| const navigate = useNavigate(); | ||
|
|
@@ -153,6 +157,7 @@ const ReadOnlyThread = ({ id }: Props) => { | |
| return { | ||
| allowHtml: config?.features?.unsafe_allow_html, | ||
| latex: config?.features?.latex, | ||
| renderMarkdown: config?.features?.user_message_markdown, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Missing Prompt for AI agents✅ Addressed in |
||
| editable: false, | ||
| loading: false, | ||
| showFeedbackButtons: !!config?.dataPersistence, | ||
|
|
@@ -167,6 +172,7 @@ const ReadOnlyThread = ({ id }: Props) => { | |
| config?.ui?.name, | ||
| config?.ui?.cot, | ||
| config?.features?.unsafe_allow_html, | ||
| config?.features?.user_message_markdown, | ||
| onElementRefClick, | ||
| onError, | ||
| onFeedbackUpdated, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,7 @@ const MessagesContainer = ({ navigate }: Props) => { | |
| askUser, | ||
| allowHtml: config?.features?.unsafe_allow_html, | ||
| latex: config?.features?.latex, | ||
| renderUserMarkdown: config?.features?.user_message_markdown, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P1: Missing Prompt for AI agents✅ Addressed in |
||
| editable: !!config?.features.edit_message, | ||
| loading, | ||
| showFeedbackButtons: enableFeedback, | ||
|
|
@@ -141,6 +142,7 @@ const MessagesContainer = ({ navigate }: Props) => { | |
| config?.ui?.name, | ||
| config?.ui?.cot, | ||
| config?.features?.unsafe_allow_html, | ||
| config?.features?.user_message_markdown, | ||
| onElementRefClick, | ||
| onError, | ||
| onFeedbackUpdated | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to include this to pass the linter checks.