Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

1022 B
Raw Blame
import { AlertCircle, Settings } from "@langfuse/icons";
import Link from "next/link";
import { Alert } from "@/src/components/design-system/Alert/Alert";

interface NoModelConfiguredAlertProps {
  projectId: string;
}

export function NoModelConfiguredAlert({
  projectId,
}: NoModelConfiguredAlertProps) {
  return (
    <div className="px-4 pt-4">
      <Alert variant="warning" icon={AlertCircle}>
        <Alert.Title>No LLM Connection Configured</Alert.Title>
        <Alert.Description>
          To use the playground, you need to configure a model first. Go to{" "}
          <Link
            href={`/project/${projectId}/settings/llm-connections`}
            className="font-bold underline underline-offset-4 hover:text-yellow-900 dark:hover:text-yellow-300"
          >
            <Settings size="sm" __rawClassName="inline" /> LLM Connection
            Settings
          </Link>{" "}
          to add an LLM API key and configure your models.
        </Alert.Description>
      </Alert>
    </div>
  );
}