"use client"; import { BrainConfig, Model, anthropicModels, models, paidModels, } from "@/lib/context/BrainConfigProvider/types"; import { UseFormRegister } from "react-hook-form"; import Field from "../../components/ui/Field"; interface ModelConfigProps { register: UseFormRegister; model: Model; openAiKey: string | undefined; temperature: number; maxTokens: number; } export const ModelConfig = ({ register, model, openAiKey, temperature, maxTokens, }: ModelConfigProps): JSX.Element => { return ( <>

Model config

{(anthropicModels as readonly string[]).includes(model) && ( )}
); };