fix: latex delimiters

This commit is contained in:
Timothy J. Baek 2024-02-21 12:19:08 -08:00
parent a70192ad1b
commit 930859980f

View file

@ -81,7 +81,9 @@
}<br/> }<br/>
prompt_token/s: ${ prompt_token/s: ${
Math.round( Math.round(
((message.info.prompt_eval_count ?? 0) / (message.info.prompt_eval_duration / 1000000000)) * 100 ((message.info.prompt_eval_count ?? 0) /
(message.info.prompt_eval_duration / 1000000000)) *
100
) / 100 ?? 'N/A' ) / 100 ?? 'N/A'
} tokens<br/> } tokens<br/>
total_duration: ${ total_duration: ${
@ -115,9 +117,10 @@
// • auto-render specific keys, e.g.: // • auto-render specific keys, e.g.:
delimiters: [ delimiters: [
{ left: '$$', right: '$$', display: true }, { left: '$$', right: '$$', display: true },
// { left: '$', right: '$', display: false }, { left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: true }, { left: '\\(', right: '\\)', display: true },
{ left: '\\[', right: '\\]', display: true } { left: '\\[', right: '\\]', display: true },
{ left: '[', right: ']', display: true }
], ],
// • rendering keys, e.g.: // • rendering keys, e.g.:
throwOnError: false throwOnError: false