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
fix Test Modes
Ishaan Jaff9a016029790e
diff --git a/ui/litellm-dashboard/src/components/add_model/add_model_modes.tsx b/ui/litellm-dashboard/src/components/add_model/add_model_modes.tsxnew file mode 100644index 00000000000..2b544fd1900--- /dev/null+++ b/ui/litellm-dashboard/src/components/add_model/add_model_modes.tsx@@ -0,0 +1,11 @@+// Define the available test modes+export const TEST_MODES = [+ { value: "chat", label: "Chat - /chat/completions" },+ { value: "completion", label: "Completion - /completions" },+ { value: "embedding", label: "Embedding - /embeddings" },+ { value: "audio_speech", label: "Audio Speech - /audio/speech" },+ { value: "audio_transcription", label: "Audio Transcription - /audio/transcriptions" },+ { value: "image_generation", label: "Image Generation - /images/generations" },+ { value: "rerank", label: "Rerank - /rerank" },+ { value: "realtime", label: "Realtime - /realtime"}+];\ No newline at end of filediff --git a/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx b/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsxindex 66ecc33dc92..e67dba781ee 100644--- a/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx+++ b/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx@@ -10,6 +10,7 @@ import { Providers, providerLogoMap, getPlaceholder } from "../provider_info_helimport type { Team } from "../key_team_helpers/key_list";import { CredentialItem } from "../networking";import ConnectionErrorDisplay from "./ConnectionErrorDisplay";+import { TEST_MODES } from "./add_model_modes";interface AddModelTabProps {form: FormInstance;@@ -29,17 +30,6 @@ interface AddModelTabProps {const { Title, Link } = Typography;-// Define the available test modes-const TEST_MODES = [- { value: "chat", label: "Chat" },- { value: "completion", label: "Completion" },- { value: "embedding", label: "Embedding" },- { value: "audio_speech", label: "Audio Speech" },- { value: "audio_transcription", label: "Audio Transcription" },- { value: "image_generation", label: "Image Generation" },- { value: "rerank", label: "Rerank" }-];-const AddModelTab: React.FC<AddModelTabProps> = ({form,handleOk,@@ -139,9 +129,9 @@ const AddModelTab: React.FC<AddModelTabProps> = ({{/* Select Mode */}<Form.Item- label="Test Mode"- name="test_mode"- tooltip="Select the mode to test this model with"+ label="Mode"+ name="mode"+ tooltip="Optional - When mode is set litellm will use this for health checks. If mode is `embedding` then /embeddings will be used when trying to check health."><AntdSelectstyle={{ width: '100%' }}