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]

547 B
Raw Blame
"use client";

import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import CredentialsPanel from "@/components/model_add/CredentialsPanel";
import UserConnectionsPanel from "@/components/model_add/UserConnectionsPanel";
import { all_admin_roles } from "@/utils/roles";

export default function LlmCredentialsPanel() {
  const { userRole } = useAuthorized();
  return (
    <div className="flex flex-col gap-6">
      {all_admin_roles.includes(userRole ?? "") && <CredentialsPanel />}
      <UserConnectionsPanel />
    </div>
  );
}