Litellm dev 01 24 2025 p4 (#7992)

* feat(team_endpoints.py): new `/teams/available` endpoint - allows proxy admin to expose available teams for users to join on UI

* build(ui/): available_teams.tsx

allow user to join available teams on UI

makes it easier to onboard new users to teams

* fix(navbar.tsx): cleanup title

* fix(team_endpoints.py): fix linting error

* test: update groq model in test

* build(model_prices_and_context_window.json): update groq 3.3 model with 'supports function calling'
This commit is contained in:
Krish Dholakia 2025-01-24 21:29:37 -08:00 committed by GitHub
parent f77882948d
commit 1ab10d8f72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 329 additions and 21 deletions

View file

@ -742,6 +742,38 @@ export const teamListCall = async (
}
};
export const availableTeamListCall = async (
accessToken: String,
) => {
/**
* Get all available teams on proxy
*/
try {
let url = proxyBaseUrl ? `${proxyBaseUrl}/team/available` : `/team/available`;
console.log("in availableTeamListCall");
const response = await fetch(url, {
method: "GET",
headers: {
[globalLitellmHeaderName]: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},
});
if (!response.ok) {
const errorData = await response.text();
handleError(errorData);
throw new Error("Network response was not ok");
}
const data = await response.json();
console.log("/team/available_teams API Response:", data);
return data;
} catch (error) {
throw error;
}
};
export const organizationListCall = async (accessToken: String) => {
/**
* Get all organizations on proxy
@ -2278,7 +2310,7 @@ export const modelUpdateCall = async (
export interface Member {
role: string;
user_id: string | null;
user_email: string | null;
user_email?: string | null;
}
export const teamMemberAddCall = async (