Update frontend/src/App.js
Browse files- frontend/src/App.js +5 -1
frontend/src/App.js
CHANGED
@@ -66,6 +66,10 @@ const App = () => {
|
|
66 |
setSortConfig({ key, direction });
|
67 |
};
|
68 |
|
|
|
|
|
|
|
|
|
69 |
|
70 |
// Get vanilla score for a model
|
71 |
const getVanillaScore = (modelId, metric) => {
|
@@ -75,7 +79,7 @@ const App = () => {
|
|
75 |
return vanillaEntry?.scores[metric];
|
76 |
};
|
77 |
|
78 |
-
const filteredAndSortedData = chain(
|
79 |
.filter(item => item.model_id.toLowerCase().includes(searchQuery.toLowerCase()))
|
80 |
.orderBy(
|
81 |
[item => {
|
|
|
66 |
setSortConfig({ key, direction });
|
67 |
};
|
68 |
|
69 |
+
const getFilteredData = () => {
|
70 |
+
const validActionTypes = ['tool-calling', 'tool_calling', 'code'];
|
71 |
+
return allData.filter(item => validActionTypes.includes(item.agent_action_type));
|
72 |
+
};
|
73 |
|
74 |
// Get vanilla score for a model
|
75 |
const getVanillaScore = (modelId, metric) => {
|
|
|
79 |
return vanillaEntry?.scores[metric];
|
80 |
};
|
81 |
|
82 |
+
const filteredAndSortedData = chain(getFilteredData())
|
83 |
.filter(item => item.model_id.toLowerCase().includes(searchQuery.toLowerCase()))
|
84 |
.orderBy(
|
85 |
[item => {
|