feat(web): Contains sys.files in the default template.

Signed-off-by: -LAN- <laipz8200@outlook.com>
pull/21476/head
-LAN- 11 months ago
parent 94f8e48647
commit 3416178f27
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF

@ -22,7 +22,7 @@ export const useWorkflowTemplate = () => {
...nodesInitialData.llm, ...nodesInitialData.llm,
memory: { memory: {
window: { enabled: false, size: 10 }, window: { enabled: false, size: 10 },
query_prompt_template: '{{#sys.query#}}', query_prompt_template: '{{#sys.query#}}\n\n{{#sys.files#}}',
}, },
selected: true, selected: true,
}, },

@ -53,7 +53,7 @@ type Props = {
const MEMORY_DEFAULT: Memory = { const MEMORY_DEFAULT: Memory = {
window: { enabled: false, size: WINDOW_SIZE_DEFAULT }, window: { enabled: false, size: WINDOW_SIZE_DEFAULT },
query_prompt_template: '{{#sys.query#}}', query_prompt_template: '{{#sys.query#}}\n\n{{#sys.files#}}',
} }
const MemoryConfig: FC<Props> = ({ const MemoryConfig: FC<Props> = ({

Loading…
Cancel
Save