Update frontend/src/App.js
Browse files- frontend/src/App.js +2 -2
frontend/src/App.js
CHANGED
|
@@ -65,13 +65,13 @@ const App = () => {
|
|
| 65 |
// Filter data based on selected action type
|
| 66 |
const getFilteredData = () => {
|
| 67 |
const actionType = showToolCalling ? 'tool-calling' : 'code';
|
| 68 |
-
return allData.filter(item => item.
|
| 69 |
};
|
| 70 |
|
| 71 |
// Get vanilla score for a model
|
| 72 |
const getVanillaScore = (modelId, metric) => {
|
| 73 |
const vanillaEntry = allData.find(item =>
|
| 74 |
-
item.model_id === modelId && item.
|
| 75 |
);
|
| 76 |
return vanillaEntry?.scores[metric];
|
| 77 |
};
|
|
|
|
| 65 |
// Filter data based on selected action type
|
| 66 |
const getFilteredData = () => {
|
| 67 |
const actionType = showToolCalling ? 'tool-calling' : 'code';
|
| 68 |
+
return allData.filter(item => item.agent_action_type === actionType);
|
| 69 |
};
|
| 70 |
|
| 71 |
// Get vanilla score for a model
|
| 72 |
const getVanillaScore = (modelId, metric) => {
|
| 73 |
const vanillaEntry = allData.find(item =>
|
| 74 |
+
item.model_id === modelId && item.agent_action_type === 'vanilla'
|
| 75 |
);
|
| 76 |
return vanillaEntry?.scores[metric];
|
| 77 |
};
|