import { useChatHandler } from "@/components/chat/chat-hooks/use-chat-handler" import { ChatbotUIContext } from "@/context/context" import { IconInfoCircle, IconMessagePlus } from "@tabler/icons-react" import { FC, useContext } from "react" import { WithTooltip } from "../ui/with-tooltip" interface ChatSecondaryButtonsProps {} export const ChatSecondaryButtons: FC = ({}) => { const { selectedChat } = useContext(ChatbotUIContext) const { handleNewChat } = useChatHandler() return ( <> {selectedChat && ( <>
Chat Info
Model: {selectedChat.model}
Prompt: {selectedChat.prompt}
Temperature: {selectedChat.temperature}
Context Length: {selectedChat.context_length}
Profile Context:{" "} {selectedChat.include_profile_context ? "Enabled" : "Disabled"}
{" "} Workspace Instructions:{" "} {selectedChat.include_workspace_instructions ? "Enabled" : "Disabled"}
Embeddings Provider: {selectedChat.embeddings_provider}
} trigger={
} /> Start a new chat} trigger={
} /> )} ) }