File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
components/shared/record-display Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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' ) ] }
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments