"use client"; import { useParams } from "next/navigation"; import { useCallback, useEffect, useState } from "react"; import { api } from "@/lib/api/client"; import type { components } from "@/lib/api/schema"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; type Policy = components["schemas"]["TreeAiPolicyRead"]; // `null`/"" means "no AI for this role". The onChange(e.target.value)} > {providers.map((p) => ( ))} ); return (

AI models

Choose which configured model each role uses. As the owner you can use any configured provider; these settings pin members and the recommender to one.

{providers.length === 0 ? ( No AI providers are configured on this deployment. Set provider credentials in the server environment (Anthropic, OpenAI, x.AI, or Ollama) and they'll appear here. ) : ( <>
Members' assistant
The model non-owner members' AI assistant uses.
{msg && {msg}}
Configured providers:{" "} {providers.map((p) => `${p.name} (${p.model})`).join(", ")}. {policy?.default_provider && ( <> Default: {policy.default_provider}. )}{" "} As the owner you can use all of them.
)}
); }