The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
working regen flow
Ishaan Jaff5d9f2e7115d5
diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsxindex a6bd5d32cb0..27d1096992e 100644--- a/ui/litellm-dashboard/src/components/networking.tsx+++ b/ui/litellm-dashboard/src/components/networking.tsx@@ -771,7 +771,7 @@ export const claimOnboardingToken = async (}};-export const regenerateKeyCall = async (accessToken: string, keyToRegenerate: string) => {+export const regenerateKeyCall = async (accessToken: string, keyToRegenerate: string, formData: any) => {try {const url = proxyBaseUrl? `${proxyBaseUrl}/key/${keyToRegenerate}/regenerate`@@ -783,7 +783,7 @@ export const regenerateKeyCall = async (accessToken: string, keyToRegenerate: st[globalLitellmHeaderName]: `Bearer ${accessToken}`,"Content-Type": "application/json",},- body: JSON.stringify({}),+ body: JSON.stringify(formData),});if (!response.ok) {diff --git a/ui/litellm-dashboard/src/components/view_key_table.tsx b/ui/litellm-dashboard/src/components/view_key_table.tsxindex d22e844d44e..5c482fcd4dd 100644--- a/ui/litellm-dashboard/src/components/view_key_table.tsx+++ b/ui/litellm-dashboard/src/components/view_key_table.tsx@@ -749,7 +749,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({try {const formValues = await regenerateForm.validateFields();- const response = await regenerateKeyCall(accessToken, { ...formValues, token: selectedToken?.token });+ const response = await regenerateKeyCall(accessToken, selectedToken.token, formValues);setRegeneratedKey(response.key);// Update the data state with the new key_name@@ -1173,7 +1173,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({}}><Form.Item name="key_alias" label="Key Alias">- <TextInput />+ <TextInput disabled={true} /></Form.Item><Form.Item name="max_budget" label="Max Budget (USD)"><InputNumber step={0.01} precision={2} style={{ width: '100%' }} />