fix: fixed the issue that ModelSetting could not be saved #614 (#617)

### What problem does this PR solve?

fix: fixed the issue that ModelSetting  could not be saved #614

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-04-30 11:27:10 +08:00
committed by GitHub
parent 674b3aeafd
commit 7059ec2298
3 changed files with 179 additions and 117 deletions

View File

@ -21,11 +21,11 @@ export interface LlmSetting {
}
export interface Variable {
frequency_penalty: number;
max_tokens: number;
presence_penalty: number;
temperature: number;
top_p: number;
frequency_penalty?: number;
max_tokens?: number;
presence_penalty?: number;
temperature?: number;
top_p?: number;
}
export interface IDialog {
@ -38,7 +38,7 @@ export interface IDialog {
kb_names: string[];
language: string;
llm_id: string;
llm_setting: LlmSetting;
llm_setting: Variable;
llm_setting_type: string;
name: string;
prompt_config: PromptConfig;