From 5f77a0082c4eb97cbe2dfba3b0c39e0685b59c4c Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 30 Sep 2024 11:44:44 +0800 Subject: [PATCH] fix: models compare system message sync to all --- package.json | 2 +- src/components/list-input/hint-input.tsx | 2 ++ src/components/list-input/index.tsx | 2 ++ src/components/list-input/list-item.tsx | 2 ++ src/components/seal-form/auto-complete.tsx | 4 ++-- src/components/seal-form/input-number.tsx | 2 +- src/components/seal-form/input-search.tsx | 2 +- src/components/seal-form/password.tsx | 2 +- src/components/seal-form/seal-input.tsx | 4 ++-- src/components/seal-form/seal-select.tsx | 2 +- src/components/seal-form/seal-textarea.tsx | 2 +- src/locales/en-US/models.ts | 6 +++++- src/locales/zh-CN/models.ts | 6 +++++- .../llmodels/components/advance-config.tsx | 9 +++++++++ src/pages/llmodels/config/llama-config.ts | 2 +- src/pages/llmodels/config/vllm-config.ts | 2 +- .../multiple-chat/system-message.tsx | 20 +++++++++---------- src/pages/playground/style/sys-message.less | 5 ++++- 18 files changed, 51 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 9d3ebe54..c2650a95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "author": "jialin ", + "author": "jialin", "scripts": { "build": "max build", "dev": "max dev", diff --git a/src/components/list-input/hint-input.tsx b/src/components/list-input/hint-input.tsx index e261d4a7..1a9ff9c0 100644 --- a/src/components/list-input/hint-input.tsx +++ b/src/components/list-input/hint-input.tsx @@ -6,6 +6,7 @@ interface HintInputProps { value: string; label?: string; onChange: (value: string) => void; + placeholder?: string; sourceOptions?: Global.HintOptions[]; } @@ -82,6 +83,7 @@ const HintInput: React.FC = (props) => { return ( void; } @@ -75,6 +76,7 @@ const ListInput: React.FC = (props) => { {_.map(list, (item: any, index: number) => { return ( void; value: string; label?: string; + placeholder?: string; options?: Global.HintOptions[]; } @@ -27,6 +28,7 @@ const ListItem: React.FC = (props) => { onChange={handleOnChange} label={label} sourceOptions={options} + placeholder={props.placeholder} />