Skip to content

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]

style(ui): place Auto Setup under templates

moe-berri7e2f345a8691
diff --git a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
index 2166114703c..38c44f1d441 100644
--- a/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/add_auto_router_tab.tsx
@@ -526,20 +526,6 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({
{({ ref, ...field }) => <Input {...field} ref={ref} placeholder="e.g., smart_router, auto_router_1" />}
</FormField>
- {!automaticSetupLoading && automaticRouterConfig && (
- <div className="flex justify-end">
- <Button
- type="button"
- size="sm"
- variant="outline"
- data-testid="configure-automatically-button"
- onClick={handleAutomaticSetup}
- >
- Configure automatically
- </Button>
- </div>
- )}
-
<div>
<label className="block text-sm font-medium text-foreground mb-2">Template</label>
<Select
@@ -586,6 +572,16 @@ const AddAutoRouterTab: React.FC<AddAutoRouterTabProps> = ({
</SelectItem>
</SelectContent>
</Select>
+ {!automaticSetupLoading && automaticRouterConfig && (
+ <button
+ type="button"
+ className="mt-2 rounded-sm text-sm font-medium text-blue-600 hover:text-blue-700 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2"
+ data-testid="configure-automatically-button"
+ onClick={handleAutomaticSetup}
+ >
+ Configure automatically
+ </button>
+ )}
{modelsUnverifiable && (
<div className="text-xs mt-1 text-destructive">
Could not load available models.{" "}