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" import { useTranslation } from 'react-i18next' interface ChatSecondaryButtonsProps {} export const ChatSecondaryButtons: FC = ({}) => { const { t } = useTranslation() const { selectedChat } = useContext(ChatbotUIContext) const { handleNewChat } = useChatHandler() return ( <> {selectedChat && ( <>
{t("chatInfo.title")}
{t("chatInfo.model")}: {selectedChat.model}
{t("chatInfo.prompt")}: {selectedChat.prompt}
{t("chatInfo.temperature")}: {selectedChat.temperature}
{t("chatInfo.contextLength")}: {selectedChat.context_length}
{t("chatInfo.profileContext")}:{" "} {selectedChat.include_profile_context ? t("chatInfo.enabled") : t("chatInfo.disabled")}
{" "} {t("chatInfo.workspaceInstructions")}:{" "} {selectedChat.include_workspace_instructions ? t("chatInfo.enabled") : t("chatInfo.disabled")}
{t("chatInfo.embeddingsProvider")}: {selectedChat.embeddings_provider}
} trigger={
} /> {t("chatInfo.startNewChat")}} trigger={
} /> )} ) }