diff --git a/ui/src/components/new-agent/AgentProviderConnection.test.tsx b/ui/src/components/new-agent/AgentProviderConnection.test.tsx
index 9805ebeb229..0c0510428fd 100644
--- a/ui/src/components/new-agent/AgentProviderConnection.test.tsx
+++ b/ui/src/components/new-agent/AgentProviderConnection.test.tsx
@@ -156,7 +156,7 @@ describe("AgentProviderConnection reuse", () => {
content:
Advanced connection picker
,
});
const modeLabels = () => Array.from(host.querySelectorAll('[role="radio"]')).map(button => button.textContent);
- expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "Advanced"]);
+ expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "AdvancedCustom Gateway"]);
expect(host.querySelector('[aria-label="Saved subscription"]')).not.toBeNull();
expect(host.textContent).not.toContain("Advanced connection picker");
expect(host.textContent).not.toContain("instead");
@@ -164,12 +164,12 @@ describe("AgentProviderConnection reuse", () => {
expect(host.querySelector('[aria-label="Saved API key"]')).not.toBeNull();
expect(host.querySelector('[role="radio"][aria-checked="true"]')?.textContent).toBe("OpenAIAPI key");
expect(host.querySelector('[aria-label="Saved subscription"]')).toBeNull();
- expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "Advanced"]);
+ expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "AdvancedCustom Gateway"]);
click("Advanced");
expect(host.textContent).toContain("Advanced connection picker");
- expect(host.querySelector('[role="radio"][aria-checked="true"]')?.textContent).toBe("Advanced");
+ expect(host.querySelector('[role="radio"][aria-checked="true"]')?.textContent).toBe("AdvancedCustom Gateway");
expect(host.querySelector("select")).toBeNull();
- expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "Advanced"]);
+ expect(modeLabels()).toEqual(["OpenAISubscription", "OpenAIAPI key", "AdvancedCustom Gateway"]);
const useConnection = Array.from(host.querySelectorAll("button")).find(button => button.textContent?.includes("Use connection"))!;
expect(useConnection.disabled).toBe(true);
click("OpenAISubscription");
@@ -202,7 +202,7 @@ describe("AgentProviderConnection reuse", () => {
expect(input.value).toBe("fixture-key");
const apiTile = host.querySelector('[role="radio"][aria-checked="true"]')!;
flushSync(() => apiTile.dispatchEvent(new KeyboardEvent("keydown", { key: "ArrowRight", bubbles: true })));
- expect(host.querySelector('[role="radio"][aria-checked="true"]')?.textContent).toBe("Advanced");
+ expect(host.querySelector('[role="radio"][aria-checked="true"]')?.textContent).toBe("AdvancedCustom Gateway");
expect(host.querySelectorAll('[role="radio"]')).toHaveLength(3);
});
diff --git a/ui/src/components/new-agent/AgentProviderConnection.tsx b/ui/src/components/new-agent/AgentProviderConnection.tsx
index f475b715f9a..0efe9e1b886 100644
--- a/ui/src/components/new-agent/AgentProviderConnection.tsx
+++ b/ui/src/components/new-agent/AgentProviderConnection.tsx
@@ -251,7 +251,7 @@ export function AgentProviderConnection({
sources={advancedConnection ? [
{ id: "subscription", label: provider, icon: , credentialMode: "subscription" },
{ id: "api", label: provider, icon: , credentialMode: "api" },
- { id: "advanced", label: "Advanced", icon: , credentialMode: null },
+ { id: "advanced", label: "Advanced", icon: , credentialMode: "advanced" },
] : [
{
id: adapterType,
diff --git a/ui/src/components/onboarding/ModelSourceTiles.tsx b/ui/src/components/onboarding/ModelSourceTiles.tsx
index 9d4279c9311..ecddf8527ac 100644
--- a/ui/src/components/onboarding/ModelSourceTiles.tsx
+++ b/ui/src/components/onboarding/ModelSourceTiles.tsx
@@ -35,7 +35,7 @@ export type ModelSource = {
const CREDENTIAL_TAG_LABEL: Record = {
subscription: "Subscription",
api: "API key",
- advanced: "Advanced",
+ advanced: "Custom Gateway",
};
/**
diff --git a/ui/storybook/stories/provider-routing-06-production.stories.tsx b/ui/storybook/stories/provider-routing-06-production.stories.tsx
index 204bf8d718e..33d99962c40 100644
--- a/ui/storybook/stories/provider-routing-06-production.stories.tsx
+++ b/ui/storybook/stories/provider-routing-06-production.stories.tsx
@@ -184,10 +184,10 @@ export const NewAgentConnectionModes: Story = {
await expect(canvas.getByRole("combobox", { name: "Saved subscription" })).toBeVisible();
await userEvent.click(canvas.getByRole("radio", { name: "OpenAI API key" }));
await waitFor(() => expect(canvas.getByPlaceholderText("Enter API key here")).toBeVisible());
- await userEvent.click(canvas.getByRole("radio", { name: "Advanced" }));
+ await userEvent.click(canvas.getByRole("radio", { name: "Advanced Custom Gateway" }));
await expect(canvas.queryByPlaceholderText("Enter API key here")).not.toBeInTheDocument();
await expect(canvas.getAllByRole("radio")).toHaveLength(3);
- await expect(canvas.getByRole("radio", { name: "Advanced" })).toBeChecked();
+ await expect(canvas.getByRole("radio", { name: "Advanced Custom Gateway" })).toBeChecked();
await expect(canvas.getByRole("button", { name: "Use connection" })).toBeDisabled();
await userEvent.click(canvas.getByRole("combobox", { name: "Connection" }));
await userEvent.click(within(canvasElement.ownerDocument.body).getByRole("option", { name: "Company OpenRouter" }));