mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
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:
parent
f77882948d
commit
1ab10d8f72
10 changed files with 329 additions and 21 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue