Bläddra i källkod

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

tags/1.5.0
-LAN- 4 månader sedan
förälder
incheckning
0f5417ab84
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 1
web/app/components/workflow-app/hooks/use-workflow-template.ts Visa fil

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

+ 1
- 1
web/app/components/workflow/nodes/_base/components/memory-config.tsx Visa fil

@@ -53,7 +53,7 @@ type Props = {

const MEMORY_DEFAULT: Memory = {
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> = ({

Laddar…
Avbryt
Spara