feat: config conversation role name

This commit is contained in:
Joel
2024-02-29 15:17:20 +08:00
parent 9e6940ed3e
commit cbb298ccb6
5 changed files with 78 additions and 9 deletions

View File

@ -1,10 +1,10 @@
import { MemoryRole } from '../../types'
import { BlockEnum } from '../../types'
import type { QuestionClassifierNodeType } from './types'
export const mockData: QuestionClassifierNodeType = {
title: 'Test',
desc: 'Test',
type: 'Test',
type: BlockEnum.QuestionClassifier,
query_variable_selector: ['aaa', 'name'],
model: {
provider: 'openai',
@ -28,7 +28,6 @@ export const mockData: QuestionClassifierNodeType = {
],
instruction: 'You are an entity extraction model that accepts an input',
memory: {
role_prefix: MemoryRole.assistant,
window: {
enabled: false,
size: 0,