ui filter by model group

This commit is contained in:
Ishaan Jaff 2024-04-23 22:04:12 -07:00
parent 6d828b478d
commit 59cacf1a3a

View file

@ -403,13 +403,17 @@ export const modelInfoCall = async (
export const modelMetricsCall = async ( export const modelMetricsCall = async (
accessToken: String, accessToken: String,
userID: String, userID: String,
userRole: String userRole: String,
modelGroup: String | null,
) => { ) => {
/** /**
* Get all models on proxy * Get all models on proxy
*/ */
try { try {
let url = proxyBaseUrl ? `${proxyBaseUrl}/model/metrics` : `/model/metrics`; let url = proxyBaseUrl ? `${proxyBaseUrl}/model/metrics` : `/model/metrics`;
if (modelGroup) {
url = `${url}?_selected_model_group=${modelGroup}`
}
// message.info("Requesting model data"); // message.info("Requesting model data");
const response = await fetch(url, { const response = await fetch(url, {
method: "GET", method: "GET",