[improvement][Chat] Support agent permission management (#1923)

* [improvement][Chat] Support agent permission management #1143

* [improvement][chat]Iterate LLM prompts of parsing and correction.

* [improvement][headless-fe] Added null-check conditions to the data formatting function.

* [improvement][headless]Clean code logic of headless translator.

---------

Co-authored-by: lxwcodemonkey <jolunoluo@tencent.com>
Co-authored-by: tristanliu <tristanliu@tencent.com>
This commit is contained in:
Jun Zhang
2024-11-23 09:09:04 +08:00
committed by GitHub
parent 244052e806
commit cb183b7ac8
66 changed files with 1023 additions and 1233 deletions

View File

@@ -207,26 +207,26 @@ const ModelFieldForm: React.FC<Props> = ({
// width: 200,
render: (_: any, record: FieldItem) => {
const { type } = record;
if (type === EnumDataSourceType.PRIMARY) {
return (
<Space>
<Select
style={{ minWidth: 150 }}
value={tagObjectId ? tagObjectId : undefined}
placeholder="请选择所属对象"
onChange={(value) => {
onTagObjectChange?.(value);
}}
options={tagObjectList.map((item: ISemantic.ITagObjectItem) => {
return {
label: item.name,
value: item.id,
};
})}
/>
</Space>
);
}
// if (type === EnumDataSourceType.PRIMARY) {
// return (
// <Space>
// <Select
// style={{ minWidth: 150 }}
// value={tagObjectId ? tagObjectId : undefined}
// placeholder="请选择所属对象"
// onChange={(value) => {
// onTagObjectChange?.(value);
// }}
// options={tagObjectList.map((item: ISemantic.ITagObjectItem) => {
// return {
// label: item.name,
// value: item.id,
// };
// })}
// />
// </Space>
// );
// }
if (type === EnumDataSourceType.MEASURES) {
return (
<Select