import { CircleAlertIcon } from "lucide-react"; /** * Composer line for a chat whose model was retired or removed from the * catalog. Earlier turns keep their model; only the next message changes, and * the line says which model it will use instead of switching silently. */ export function UnavailableModelNotice({ modelName, replacementLabel, }: { /** Readable name of the session's unavailable model. */ modelName: string; /** The model the composer now has selected, or null when none is selected. */ replacementLabel: string | null; }) { return (
This chat's model ({modelName}) is no longer available. {" "} {replacementLabel ? `Your next message will use ${replacementLabel}.` : "Select a different model to continue."}