Save Changes
@@ -285,6 +306,12 @@ const PassThroughInfoView: React.FC
= ({
${endpointData.cost_per_request}
)}
+
Headers
{endpointData.headers && Object.keys(endpointData.headers).length > 0 ? (
diff --git a/ui/litellm-dashboard/src/components/pass_through_settings.tsx b/ui/litellm-dashboard/src/components/pass_through_settings.tsx
index c21f2e3c0be..6e22533ed14 100644
--- a/ui/litellm-dashboard/src/components/pass_through_settings.tsx
+++ b/ui/litellm-dashboard/src/components/pass_through_settings.tsx
@@ -1,8 +1,8 @@
import React, { useState, useEffect } from "react";
import { Text, Button, Icon, Title } from "@tremor/react";
import { deletePassThroughEndpointsCall, getPassThroughEndpointsCall } from "./networking";
-import { Tooltip } from "antd";
-import { PencilAltIcon, TrashIcon } from "@heroicons/react/outline";
+import { Badge, Tooltip } from "antd";
+import { PencilAltIcon, TrashIcon, InformationCircleIcon } from "@heroicons/react/outline";
import AddPassThroughEndpoint from "./add_pass_through";
import PassThroughInfoView from "./pass_through_info";
import { DataTable } from "./view_logs/table";
@@ -15,6 +15,7 @@ interface GeneralSettingsPageProps {
userRole: string | null;
userID: string | null;
modelData: any;
+ premiumUser?: boolean;
}
interface routingStrategyArgs {
@@ -37,6 +38,7 @@ export interface passThroughItem {
headers: object;
include_subpath?: boolean;
cost_per_request?: number;
+ auth?: boolean;
}
// Password field component for headers
@@ -54,7 +56,7 @@ const PasswordField: React.FC<{ value: object }> = ({ value }) => {
);
};
-const PassThroughSettings: React.FC
= ({ accessToken, userRole, userID, modelData }) => {
+const PassThroughSettings: React.FC = ({ accessToken, userRole, userID, modelData, premiumUser }) => {
const [generalSettings, setGeneralSettings] = useState([]);
const [selectedEndpointId, setSelectedEndpointId] = useState(null);
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
@@ -144,6 +146,18 @@ const PassThroughSettings: React.FC = ({ accessToken,
accessorKey: "target",
cell: (info: any) => {info.getValue()},
},
+ {
+ header: () => (
+
+ Authentication
+
+
+
+
+ ),
+ accessorKey: "auth",
+ cell: (info: any) => {info.getValue() ? "Yes" : "No"},
+ },
{
header: "Headers",
accessorKey: "headers",
@@ -192,6 +206,7 @@ const PassThroughSettings: React.FC = ({ accessToken,
onClose={() => setSelectedEndpointId(null)}
accessToken={accessToken}
isAdmin={userRole === "Admin" || userRole === "admin"}
+ premiumUser={premiumUser}
onEndpointUpdated={handleEndpointUpdated}
/>
);
@@ -208,6 +223,7 @@ const PassThroughSettings: React.FC = ({ accessToken,
accessToken={accessToken}
setPassThroughItems={setGeneralSettings}
passThroughItems={generalSettings}
+ premiumUser={premiumUser}
/>
= ({
userRole={userRole}
userID={userID}
modelData={modelData}
+ premiumUser={premiumUser}
/>