File tree 1 file changed +5
-7
lines changed
app/web_ui/src/routes/(app)/dataset/[project_id]/[task_id]/[run_id]/run
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 49
49
)
50
50
}
51
51
52
+ const model_id = run ?.output ?.source ?.properties ?.model_name
53
+
52
54
model_props = Object .fromEntries (
53
55
Object .entries ({
54
56
ID: run ?.id || undefined ,
55
57
" Input Source" :
56
58
" " +
57
59
run ?.input_source ?.type .charAt (0 ).toUpperCase () +
58
60
run ?.input_source ?.type .slice (1 ),
59
- " Output Model" : model_name (
60
- " " + run ?.output ?.source ?.properties ?.model_name ,
61
- $model_info ,
62
- ),
61
+ " Output Model" : model_name (model_id , $model_info ),
63
62
" Model Provider" : run ?.output ?.source ?.properties ?.model_provider ,
64
- Prompt: prompt_name_from_id (prompt_id ),
63
+ Prompt: prompt_id && prompt_name_from_id (prompt_id ),
65
64
" Created By" : run ?.input_source ?.properties ?.created_by ,
66
65
" Created At" : formatDate (run ?.created_at ),
67
66
Topic: topic_path ,
68
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
69
- }).filter (([_ , value ]) => value !== undefined ),
67
+ }).filter (([_ , value ]) => value !== undefined && value !== " " ),
70
68
)
71
69
}
72
70
You can’t perform that action at this time.
0 commit comments