mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
ui filter by model group
This commit is contained in:
parent
6d828b478d
commit
59cacf1a3a
1 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue