Skip to content

Commit e07520a

Browse files
display list
1 parent e50b8b2 commit e07520a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/shared/record-display/RecordDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function RecordDisplay(props: any) {
3333
</div>
3434
</div>
3535
{attributesDict[attribute.id] && <div className="text-gray-800 text-sm mb-4 overflow-anywhere flex text-left">
36-
{attribute.dataType === DataTypeEnum.EMBEDDING_LIST || attribute.dataType === DataTypeEnum.PERMISSION ? (<div className="flex flex-col gap-y-1 divide-y">
36+
{attribute.dataType === DataTypeEnum.EMBEDDING_LIST || attribute.dataType === DataTypeEnum.PERMISSION || attribute.dataType === DataTypeEnum.TEXT_LIST ? (<div className="flex flex-col gap-y-1 divide-y">
3737
{preparedRecord.data[attributesDict[attribute.key].name] ? preparedRecord.data[attributesDict[attribute.key].name].map((item, indexJ) => (<div key={indexJ} className="pt-1">
3838
{(configuration.highlightText && isTextHighlightNeeded[attribute.key]) ? (<Highlight text={item.toString()}
3939
additionalClasses={[configuration.lineBreaks == LineBreaksType.NORMAL ? '' : (configuration.lineBreaks == LineBreaksType.IS_PRE_WRAP ? 'whitespace-pre-wrap' : 'whitespace-pre-line')]}

src/util/classes/attribute-calculation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ async def ac(record):
5757
5858
llm_response = await get_llm_response()
5959
return llm_response.get("result") or "no result provided"
60+
`
61+
}
62+
case DataTypeEnum.TEXT_LIST: return {
63+
code: `def ac(record):
64+
return ["Hello World"]
6065
`
6166
}
6267
default: return {

0 commit comments

Comments
 (0)