rename routes from inference to ai-gateway

This commit is contained in:
miloschwartz
2026-08-17 15:37:54 -04:00
parent 3ba9eb7ad7
commit 313f777e44
8 changed files with 22 additions and 7 deletions
@@ -68,6 +68,7 @@ export default function PrivateResourceInferencePage() {
providers: z.array(
z.object({
providerId: z.number().int().positive(),
niceId: z.string(),
name: z.string(),
accessMode: z.enum(["inherit", "select"]),
enabled: z.boolean(),
@@ -131,6 +132,7 @@ export default function PrivateResourceInferencePage() {
"providers",
attachedQuery.data.map((provider) => ({
providerId: provider.providerId,
niceId: provider.niceId,
name: provider.name,
accessMode: provider.accessMode,
enabled: provider.enabled,
@@ -62,7 +62,7 @@ export default async function PrivateResourceLayout(
},
{
title: t(modeSettingsKey),
href: `/{orgId}/settings/resources/private/{niceId}/${siteResource.mode}`
href: `/{orgId}/settings/resources/private/{niceId}/${siteResource.mode === "inference" ? "ai-gateway" : siteResource.mode}`
},
{
title: t("authentication"),
@@ -61,6 +61,7 @@ export default function PublicResourceInferencePage() {
providers: z.array(
z.object({
providerId: z.number().int().positive(),
niceId: z.string(),
name: z.string(),
accessMode: z.enum(["inherit", "select"]),
enabled: z.boolean(),
@@ -111,6 +112,7 @@ export default function PublicResourceInferencePage() {
form.reset({
providers: attachedQuery.data.map((provider) => ({
providerId: provider.providerId,
niceId: provider.niceId,
name: provider.name,
accessMode: provider.accessMode,
enabled: provider.enabled,
@@ -89,7 +89,7 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
},
{
title: t(`${resource.mode}Settings`),
href: `/{orgId}/settings/resources/public/{niceId}/${resource.mode}`
href: `/{orgId}/settings/resources/public/{niceId}/${resource.mode === "inference" ? "ai-gateway" : resource.mode}`
}
];