test: fix failed test cases
This commit is contained in:
parent
6b44bde9c9
commit
a7a497a386
@ -1,12 +1,11 @@
|
|||||||
|
import { presetConfiguration } from './predefinedComponent'
|
||||||
import { presetConfiguration } from './predefinedComponent';
|
|
||||||
|
|
||||||
it('should have correct configuration for prompt_template', () => {
|
it('should have correct configuration for prompt_template', () => {
|
||||||
const config = presetConfiguration['prompt_template'];
|
const config = presetConfiguration['prompt_template']
|
||||||
expect(config).toEqual({
|
expect(config).toEqual({
|
||||||
key: 'prompt_template',
|
key: 'prompt_template',
|
||||||
title: 'Prompt template',
|
title: 'Prompt template',
|
||||||
description: `A predefined text or framework that guides the AI model's response generation. It includes placeholders or instructions for the model to fill in or expand upon.`,
|
description: `A structured format that guides how the model should respond.`,
|
||||||
controllerType: 'input',
|
controllerType: 'input',
|
||||||
controllerProps: {
|
controllerProps: {
|
||||||
placeholder: 'Prompt template',
|
placeholder: 'Prompt template',
|
||||||
@ -14,5 +13,5 @@ it('should have correct configuration for prompt_template', () => {
|
|||||||
},
|
},
|
||||||
requireModelReload: true,
|
requireModelReload: true,
|
||||||
configType: 'setting',
|
configType: 'setting',
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user