jan/web/utils/predefinedComponent.test.ts
2025-01-15 10:09:24 +07:00

18 lines
531 B
TypeScript

import { presetConfiguration } from './predefinedComponent'
it('should have correct configuration for prompt_template', () => {
const config = presetConfiguration['prompt_template']
expect(config).toEqual({
key: 'prompt_template',
title: 'Prompt template',
description: `A structured format that guides how the model should respond.`,
controllerType: 'input',
controllerProps: {
placeholder: 'Prompt template',
value: '',
},
requireModelReload: true,
configType: 'setting',
})
})