feat: run flow (#1076)
### What problem does this PR solve? feat: run flow #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { ModelVariableType } from '@/constants/knowledge';
|
||||
|
||||
export enum Operator {
|
||||
Begin = 'Begin',
|
||||
Retrieval = 'Retrieval',
|
||||
@@ -18,8 +16,8 @@ export const initialBeginValues = {
|
||||
};
|
||||
|
||||
export const initialGenerateValues = {
|
||||
parameters: ModelVariableType.Precise,
|
||||
temperatureEnabled: false,
|
||||
// parameters: ModelVariableType.Precise,
|
||||
// temperatureEnabled: true,
|
||||
temperature: 0.1,
|
||||
top_p: 0.3,
|
||||
frequency_penalty: 0.7,
|
||||
@@ -30,3 +28,10 @@ export const initialGenerateValues = {
|
||||
The above is the content you need to summarize.`,
|
||||
cite: true,
|
||||
};
|
||||
|
||||
export const initialFormValuesMap = {
|
||||
[Operator.Begin]: initialBeginValues,
|
||||
[Operator.Retrieval]: initialRetrievalValues,
|
||||
[Operator.Generate]: initialGenerateValues,
|
||||
[Operator.Answer]: {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user