mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(amazon_deepseek_transformation.py): remove </think> from stream o… (#8717)
* fix(amazon_deepseek_transformation.py): remove </think> from stream output - cleanup user facing stream * fix(key_managenet_endpoints.py): return `/key/list` sorted by created_at makes it easier to see created key * style: cleanup team table * feat(key_edit_view.tsx): support setting model specific tpm/rpm limits on keys
This commit is contained in:
parent
c4d5b65e7b
commit
d7e4cb3606
6 changed files with 50 additions and 8 deletions
|
@ -2476,6 +2476,25 @@ export const keyUpdateCall = async (
|
|||
try {
|
||||
console.log("Form Values in keyUpdateCall:", formValues); // Log the form values before making the API call
|
||||
|
||||
if (formValues.model_tpm_limit) {
|
||||
console.log("formValues.model_tpm_limit:", formValues.model_tpm_limit);
|
||||
// if there's an exception JSON.parse, show it in the message
|
||||
try {
|
||||
formValues.model_tpm_limit = JSON.parse(formValues.model_tpm_limit);
|
||||
} catch (error) {
|
||||
throw new Error("Failed to parse model_tpm_limit: " + error);
|
||||
}
|
||||
}
|
||||
|
||||
if (formValues.model_rpm_limit) {
|
||||
console.log("formValues.model_rpm_limit:", formValues.model_rpm_limit);
|
||||
// if there's an exception JSON.parse, show it in the message
|
||||
try {
|
||||
formValues.model_rpm_limit = JSON.parse(formValues.model_rpm_limit);
|
||||
} catch (error) {
|
||||
throw new Error("Failed to parse model_rpm_limit: " + error);
|
||||
}
|
||||
}
|
||||
const url = proxyBaseUrl ? `${proxyBaseUrl}/key/update` : `/key/update`;
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue