mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	feat: modify some propmt in DEFAULT_INPUT_TEMPLATE about expressing latex
This commit is contained in:
		@@ -135,10 +135,10 @@ function escapeBrackets(text: string) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function _MarkDownContent(props: { content: string }) {
 | 
			
		||||
  const escapedContent = useMemo(
 | 
			
		||||
    () => escapeBrackets(escapeDollarNumber(props.content)),
 | 
			
		||||
    [props.content],
 | 
			
		||||
  );
 | 
			
		||||
  const escapedContent = useMemo(() => {
 | 
			
		||||
    console.log("================", props.content);
 | 
			
		||||
    return escapeBrackets(escapeDollarNumber(props.content));
 | 
			
		||||
  }, [props.content]);
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <ReactMarkdown
 | 
			
		||||
 
 | 
			
		||||
@@ -105,12 +105,20 @@ export const Google = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export const DEFAULT_INPUT_TEMPLATE = `{{input}}`; // input / time / model / lang
 | 
			
		||||
// export const DEFAULT_SYSTEM_TEMPLATE = `
 | 
			
		||||
// You are ChatGPT, a large language model trained by {{ServiceProvider}}.
 | 
			
		||||
// Knowledge cutoff: {{cutoff}}
 | 
			
		||||
// Current model: {{model}}
 | 
			
		||||
// Current time: {{time}}
 | 
			
		||||
// Latex inline: $x^2$
 | 
			
		||||
// Latex block: $$e=mc^2$$
 | 
			
		||||
// `;
 | 
			
		||||
export const DEFAULT_SYSTEM_TEMPLATE = `
 | 
			
		||||
You are ChatGPT, a large language model trained by {{ServiceProvider}}.
 | 
			
		||||
Knowledge cutoff: {{cutoff}}
 | 
			
		||||
Current model: {{model}}
 | 
			
		||||
Current time: {{time}}
 | 
			
		||||
Latex inline: $x^2$ 
 | 
			
		||||
Latex inline: \(x^2\) 
 | 
			
		||||
Latex block: $$e=mc^2$$
 | 
			
		||||
`;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user