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:
Krish Dholakia 2025-02-22 21:46:55 -08:00 committed by GitHub
parent 21ea52105a
commit c2aec21b4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 50 additions and 8 deletions

View file

@ -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",