mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-21 06:04:19 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user