repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/contexts/TTSProvider.jsx
frontend/src/components/contexts/TTSProvider.jsx
import { createContext, useContext, useEffect, useState } from "react"; import System from "@/models/system"; import Appearance from "@/models/appearance"; const ASSISTANT_MESSAGE_COMPLETE_EVENT = "ASSISTANT_MESSAGE_COMPLETE_EVENT"; const TTSProviderContext = createContext(); /** * This component is used to provide the TTS provider context to the application. * * TODO: This context provider simply wraps around the System.keys() call to get the TTS provider settings. * However, we use .keys() in a ton of places and it might make more sense to make a generalized hook that * can be used anywhere we need to get _any_ setting from the System by just grabbing keys() and reusing it * as a hook where needed. * * For now, since TTSButtons are rendered on every message, we can save a ton of requests by just using this * hook where for now so we can recycle the TTS settings in the chat container. */ export function TTSProvider({ children }) { const [settings, setSettings] = useState({}); const [provider, setProvider] = useState("native"); const [loading, setLoading] = useState(true); useEffect(() => { async function getSettings() { const _settings = await System.keys(); setProvider(_settings?.TextToSpeechProvider ?? "native"); setSettings(_settings); setLoading(false); } getSettings(); }, []); return ( <TTSProviderContext.Provider value={{ settings, provider, loading, }} > {children} </TTSProviderContext.Provider> ); } /** * This hook is used to get the TTS provider settings easily without * having to refetch the settings from the System.keys() call each component mount. * * @returns {{settings: {TTSPiperTTSVoiceModel: string|null}, provider: string, loading: boolean}} The TTS provider settings. */ export function useTTSProvider() { const context = useContext(TTSProviderContext); if (!context) throw new Error("useTTSProvider must be used within a TTSProvider"); return context; } /** * This function will emit the ASSISTANT_MESSAGE_COMPLETE_EVENT event. * * This event is used to notify the TTSProvider that a message has been fully generated and that the TTS response * should be played if the user setting is enabled. * * @param {string} chatId - The chatId of the message that has been fully generated. */ export function emitAssistantMessageCompleteEvent(chatId) { window.dispatchEvent( new CustomEvent(ASSISTANT_MESSAGE_COMPLETE_EVENT, { detail: { chatId } }) ); } /** * This hook will establish a listener for the ASSISTANT_MESSAGE_COMPLETE_EVENT event. * When the event is triggered, the hook will attempt to play the TTS response for the given chatId. * It will attempt to play the TTS response for the given chatId until it is successful or the maximum number of attempts * is reached. * * This is accomplished by looking for a button with the data-auto-play-chat-id attribute that matches the chatId. */ export function useWatchForAutoPlayAssistantTTSResponse() { const autoPlayAssistantTtsResponse = Appearance.get( "autoPlayAssistantTtsResponse" ); function handleAutoPlayTTSEvent(event) { let autoPlayAttempts = 0; const { chatId } = event.detail; /** * Attempt to play the TTS response for the given chatId. * This is a recursive function that will attempt to play the TTS response * for the given chatId until it is successful or the maximum number of attempts * is reached. * @returns {boolean} true if the TTS response was played, false otherwise. */ function attemptToPlay() { const playBtn = document.querySelector( `[data-auto-play-chat-id="${chatId}"]` ); if (!playBtn) { autoPlayAttempts++; if (autoPlayAttempts > 3) return false; setTimeout(() => { attemptToPlay(); }, 1000 * autoPlayAttempts); return false; } playBtn.click(); return true; } setTimeout(() => { attemptToPlay(); }, 800); } // Only bother to listen for these events if the user has autoPlayAssistantTtsResponse // setting enabled. useEffect(() => { if (autoPlayAssistantTtsResponse) { window.addEventListener( ASSISTANT_MESSAGE_COMPLETE_EVENT, handleAutoPlayTTSEvent ); return () => { window.removeEventListener( ASSISTANT_MESSAGE_COMPLETE_EVENT, handleAutoPlayTTSEvent ); }; } else { console.log("Assistant TTS auto-play is disabled"); } }, [autoPlayAssistantTtsResponse]); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/index.jsx
frontend/src/components/Sidebar/index.jsx
import React, { useEffect, useRef, useState } from "react"; import { List, Plus } from "@phosphor-icons/react"; import NewWorkspaceModal, { useNewWorkspaceModal, } from "../Modals/NewWorkspace"; import ActiveWorkspaces from "./ActiveWorkspaces"; import useLogo from "@/hooks/useLogo"; import useUser from "@/hooks/useUser"; import Footer from "../Footer"; import SettingsButton from "../SettingsButton"; import { Link } from "react-router-dom"; import paths from "@/utils/paths"; import { useTranslation } from "react-i18next"; import { useSidebarToggle, ToggleSidebarButton } from "./SidebarToggle"; import SearchBox from "./SearchBox"; import { Tooltip } from "react-tooltip"; import { createPortal } from "react-dom"; export default function Sidebar() { const { user } = useUser(); const { logo } = useLogo(); const sidebarRef = useRef(null); const { showSidebar, setShowSidebar, canToggleSidebar } = useSidebarToggle(); const { showing: showingNewWsModal, showModal: showNewWsModal, hideModal: hideNewWsModal, } = useNewWorkspaceModal(); return ( <> <div style={{ width: showSidebar ? "292px" : "0px", paddingLeft: showSidebar ? "0px" : "16px", }} className="transition-all duration-500" > <div className="flex shrink-0 w-full justify-center my-[18px]"> <div className="flex justify-between w-[250px] min-w-[250px]"> <Link to={paths.home()} aria-label="Home"> <img src={logo} alt="Logo" className={`rounded max-h-[24px] object-contain transition-opacity duration-500 ${showSidebar ? "opacity-100" : "opacity-0"}`} /> </Link> {canToggleSidebar && ( <ToggleSidebarButton showSidebar={showSidebar} setShowSidebar={setShowSidebar} /> )} </div> </div> <div ref={sidebarRef} className="relative m-[16px] rounded-[16px] bg-theme-bg-sidebar border-[2px] border-theme-sidebar-border light:border-none min-w-[250px] p-[10px] h-[calc(100%-76px)]" > <div className="flex flex-col h-full overflow-x-hidden"> <div className="flex-grow flex flex-col min-w-[235px]"> <div className="relative h-[calc(100%-60px)] flex flex-col w-full justify-between pt-[10px] overflow-y-scroll no-scroll"> <div className="flex flex-col gap-y-2 pb-[60px] gap-y-[14px] overflow-y-scroll no-scroll"> <SearchBox user={user} showNewWsModal={showNewWsModal} /> <ActiveWorkspaces /> </div> </div> <div className="absolute bottom-0 left-0 right-0 pt-4 pb-3 rounded-b-[16px] bg-theme-bg-sidebar bg-opacity-80 backdrop-filter backdrop-blur-md z-1"> <Footer /> </div> </div> </div> </div> {showingNewWsModal && <NewWorkspaceModal hideModal={hideNewWsModal} />} </div> <WorkspaceAndThreadTooltips /> </> ); } export function SidebarMobileHeader() { const { logo } = useLogo(); const sidebarRef = useRef(null); const [showSidebar, setShowSidebar] = useState(false); const [showBgOverlay, setShowBgOverlay] = useState(false); const { showing: showingNewWsModal, showModal: showNewWsModal, hideModal: hideNewWsModal, } = useNewWorkspaceModal(); const { user } = useUser(); useEffect(() => { // Darkens the rest of the screen // when sidebar is open. function handleBg() { if (showSidebar) { setTimeout(() => { setShowBgOverlay(true); }, 300); } else { setShowBgOverlay(false); } } handleBg(); }, [showSidebar]); return ( <> <div aria-label="Show sidebar" className="fixed top-0 left-0 right-0 z-10 flex justify-between items-center px-4 py-2 bg-theme-bg-sidebar light:bg-white text-slate-200 shadow-lg h-16" > <button onClick={() => setShowSidebar(true)} className="rounded-md p-2 flex items-center justify-center text-theme-text-secondary" > <List className="h-6 w-6" /> </button> <div className="flex items-center justify-center flex-grow"> <img src={logo} alt="Logo" className="block mx-auto h-6 w-auto" style={{ maxHeight: "40px", objectFit: "contain" }} /> </div> <div className="w-12"></div> </div> <div style={{ transform: showSidebar ? `translateX(0vw)` : `translateX(-100vw)`, }} className={`z-99 fixed top-0 left-0 transition-all duration-500 w-[100vw] h-[100vh]`} > <div className={`${ showBgOverlay ? "transition-all opacity-1" : "transition-none opacity-0" } duration-500 fixed top-0 left-0 bg-theme-bg-secondary bg-opacity-75 w-screen h-screen`} onClick={() => setShowSidebar(false)} /> <div ref={sidebarRef} className="relative h-[100vh] fixed top-0 left-0 rounded-r-[26px] bg-theme-bg-sidebar w-[80%] p-[18px] " > <div className="w-full h-full flex flex-col overflow-x-hidden items-between"> {/* Header Information */} <div className="flex w-full items-center justify-between gap-x-4"> <div className="flex shrink-1 w-fit items-center justify-start"> <img src={logo} alt="Logo" className="rounded w-full max-h-[40px]" style={{ objectFit: "contain" }} /> </div> {(!user || user?.role !== "default") && ( <div className="flex gap-x-2 items-center text-slate-500 shink-0"> <SettingsButton /> </div> )} </div> {/* Primary Body */} <div className="h-full flex flex-col w-full justify-between pt-4 "> <div className="h-auto md:sidebar-items"> <div className=" flex flex-col gap-y-4 overflow-y-scroll no-scroll pb-[60px]"> <NewWorkspaceButton user={user} showNewWsModal={showNewWsModal} /> <ActiveWorkspaces /> </div> </div> <div className="z-99 absolute bottom-0 left-0 right-0 pt-2 pb-6 rounded-br-[26px] bg-theme-bg-sidebar bg-opacity-80 backdrop-filter backdrop-blur-md"> <Footer /> </div> </div> </div> </div> {showingNewWsModal && <NewWorkspaceModal hideModal={hideNewWsModal} />} </div> </> ); } function NewWorkspaceButton({ user, showNewWsModal }) { const { t } = useTranslation(); if (!!user && user?.role === "default") return null; return ( <div className="flex gap-x-2 items-center justify-between"> <button onClick={showNewWsModal} className="flex flex-grow w-[75%] h-[44px] gap-x-2 py-[5px] px-4 bg-white rounded-lg text-sidebar justify-center items-center hover:bg-opacity-80 transition-all duration-300" > <Plus className="h-5 w-5" /> <p className="text-sidebar text-sm font-semibold"> {t("new-workspace.title")} </p> </button> </div> ); } function WorkspaceAndThreadTooltips() { return createPortal( <React.Fragment> <Tooltip id="workspace-name" place="right" delayShow={800} className="tooltip !text-xs z-99" /> <Tooltip id="workspace-thread-name" place="right" delayShow={800} className="tooltip !text-xs z-99" /> </React.Fragment>, document.body ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/SearchBox/index.jsx
frontend/src/components/Sidebar/SearchBox/index.jsx
import { useState, useEffect, useRef } from "react"; import { Plus, MagnifyingGlass } from "@phosphor-icons/react"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import paths from "@/utils/paths"; import Preloader from "@/components/Preloader"; import debounce from "lodash.debounce"; import Workspace from "@/models/workspace"; import { Tooltip } from "react-tooltip"; const DEFAULT_SEARCH_RESULTS = { workspaces: [], threads: [], }; const SEARCH_RESULT_SELECTED = "search-result-selected"; export default function SearchBox({ user, showNewWsModal }) { const { t } = useTranslation(); const searchRef = useRef(null); const [searchTerm, setSearchTerm] = useState(""); const [loading, setLoading] = useState(false); const [searchResults, setSearchResults] = useState(DEFAULT_SEARCH_RESULTS); const handleSearch = debounce(handleSearchDebounced, 500); async function handleSearchDebounced(e) { try { const searchValue = e.target.value; setSearchTerm(searchValue); setLoading(true); const searchResults = await Workspace.searchWorkspaceOrThread(searchValue); setSearchResults(searchResults); } catch (error) { console.error(error); setSearchResults(DEFAULT_SEARCH_RESULTS); } finally { setLoading(false); } } function handleReset() { searchRef.current.value = ""; setSearchTerm(""); setLoading(false); setSearchResults(DEFAULT_SEARCH_RESULTS); } useEffect(() => { window.addEventListener(SEARCH_RESULT_SELECTED, handleReset); return () => window.removeEventListener(SEARCH_RESULT_SELECTED, handleReset); }, []); return ( <div className="flex gap-x-[5px] w-full items-center h-[32px]"> <div className="relative h-full w-full flex"> <input ref={searchRef} type="search" placeholder={t("common.search")} onChange={handleSearch} onReset={handleReset} onFocus={(e) => e.target.select()} className="border-none w-full h-full rounded-lg bg-theme-sidebar-item-default pl-9 focus:pl-4 pr-1 placeholder:text-theme-settings-input-placeholder outline-none text-white search-input peer text-sm" /> <MagnifyingGlass size={14} className="absolute left-3 top-1/2 transform -translate-y-1/2 text-theme-settings-input-placeholder peer-focus:invisible" weight="bold" hidden={!!searchTerm} /> </div> <ShortWidthNewWorkspaceButton user={user} showNewWsModal={showNewWsModal} /> <SearchResults searchResults={searchResults} searchTerm={searchTerm} loading={loading} /> </div> ); } function SearchResultWrapper({ children }) { return ( <div className="absolute right-0 top-[6.2%] w-full flex flex-col gap-y-[24px] h-auto bg-theme-modal-border light:bg-theme-bg-primary light:border-2 light:border-theme-modal-border rounded-lg p-[16px] z-10 max-h-[calc(100%-24px)] overflow-y-scroll no-scroll"> {children} </div> ); } function SearchResults({ searchResults, searchTerm, loading }) { if (!searchTerm || searchTerm.length < 3) return null; if (loading) return ( <SearchResultWrapper> <div className="flex flex-col gap-y-[8px] h-[200px] justify-center items-center"> <Preloader size={5} /> <p className="text-theme-text-secondary text-xs font-semibold text-center"> Searching for "{searchTerm}" </p> </div> </SearchResultWrapper> ); if ( searchResults.workspaces.length === 0 && searchResults.threads.length === 0 ) { return ( <SearchResultWrapper> <div className="flex flex-col gap-y-[8px] h-[200px] justify-center items-center"> <p className="text-theme-text-secondary text-xs font-semibold text-center"> No results found for <br /> <span className="text-theme-text-primary font-semibold text-sm"> "{searchTerm}" </span> </p> </div> </SearchResultWrapper> ); } return ( <SearchResultWrapper> <SearchResultCategory name="Workspaces" items={searchResults.workspaces?.map((workspace) => ({ id: workspace.slug, to: paths.workspace.chat(workspace.slug), name: workspace.name, }))} /> <SearchResultCategory name="Threads" items={searchResults.threads?.map((thread) => ({ id: thread.slug, to: paths.workspace.thread(thread.workspace.slug, thread.slug), name: thread.name, hint: thread.workspace.name, }))} /> </SearchResultWrapper> ); } function SearchResultCategory({ items, name }) { if (!items?.length) return null; return ( <div className="flex flex-col gap-y-[8px]"> <p className="text-theme-text-secondary text-xs uppercase font-semibold px-[4px]"> {name} </p> <div className="flex flex-col gap-y-[6px]"> {items.map((item) => ( <SearchResultItem key={item.id} to={item.to} name={item.name} hint={item.hint} /> ))} </div> </div> ); } function SearchResultItem({ to, name, hint }) { return ( <Link to={to} reloadDocument={true} onClick={() => window.dispatchEvent(new Event(SEARCH_RESULT_SELECTED))} className="hover:bg-[#FFF]/10 light:hover:bg-[#000]/10 transition-all duration-300 rounded-sm px-[8px] py-[2px]" > <p className="text-theme-text-primary text-sm truncate w-[80%]"> {name} {hint && ( <span className="text-theme-text-secondary text-xs ml-[4px]"> | {hint} </span> )} </p> </Link> ); } function ShortWidthNewWorkspaceButton({ user, showNewWsModal }) { const { t } = useTranslation(); if (!!user && user?.role === "default") return null; return ( <> <button data-tooltip-id="new-workspace-tooltip" data-tooltip-content={t("new-workspace.title")} onClick={showNewWsModal} className="border-none flex items-center justify-center bg-white rounded-lg p-[8px] hover:bg-white/80 transition-all duration-300" > <Plus size={16} weight="bold" className="text-black" /> </button> <Tooltip id="new-workspace-tooltip" place="top" delayShow={300} className="tooltip !text-xs" /> </> ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/SidebarToggle/index.jsx
frontend/src/components/Sidebar/SidebarToggle/index.jsx
import React, { useEffect, useState } from "react"; import { SidebarSimple } from "@phosphor-icons/react"; import paths from "@/utils/paths"; import { Tooltip } from "react-tooltip"; const SIDEBAR_TOGGLE_STORAGE_KEY = "anythingllm_sidebar_toggle"; /** * Returns the previous state of the sidebar from localStorage. * If the sidebar was closed, returns false. * If the sidebar was open, returns true. * If the sidebar state is not set, returns true. * @returns {boolean} */ function previousSidebarState() { const previousState = window.localStorage.getItem(SIDEBAR_TOGGLE_STORAGE_KEY); if (previousState === "closed") return false; return true; } export function useSidebarToggle() { const [showSidebar, setShowSidebar] = useState(previousSidebarState()); const [canToggleSidebar, setCanToggleSidebar] = useState(true); useEffect(() => { function checkPath() { const currentPath = window.location.pathname; const isVisible = currentPath === paths.home() || /^\/workspace\/[^\/]+$/.test(currentPath) || /^\/workspace\/[^\/]+\/t\/[^\/]+$/.test(currentPath); setCanToggleSidebar(isVisible); } checkPath(); }, [window.location.pathname]); useEffect(() => { function toggleSidebar(e) { if (!canToggleSidebar) return; if ( (e.ctrlKey || e.metaKey) && e.shiftKey && e.key.toLowerCase() === "s" ) { setShowSidebar((prev) => { const newState = !prev; window.localStorage.setItem( SIDEBAR_TOGGLE_STORAGE_KEY, newState ? "open" : "closed" ); return newState; }); } } window.addEventListener("keydown", toggleSidebar); return () => { window.removeEventListener("keydown", toggleSidebar); }; }, []); useEffect(() => { window.localStorage.setItem( SIDEBAR_TOGGLE_STORAGE_KEY, showSidebar ? "open" : "closed" ); }, [showSidebar]); return { showSidebar, setShowSidebar, canToggleSidebar }; } export function ToggleSidebarButton({ showSidebar, setShowSidebar }) { const isMac = navigator.userAgent.includes("Mac"); const shortcut = isMac ? "⌘ + Shift + S" : "Ctrl + Shift + S"; return ( <> <button type="button" className={`hidden md:block border-none bg-transparent outline-none ring-0 transition-left duration-500 ${showSidebar ? "left-[247px]" : "absolute top-[20px] left-[30px] z-10"}`} onClick={() => setShowSidebar((prev) => !prev)} data-tooltip-id="sidebar-toggle" data-tooltip-content={ showSidebar ? `Hide Sidebar (${shortcut})` : `Show Sidebar (${shortcut})` } aria-label={ showSidebar ? `Hide Sidebar (${shortcut})` : `Show Sidebar (${shortcut})` } > <SidebarSimple className="text-theme-text-secondary hover:text-theme-text-primary" size={24} /> </button> <Tooltip id="sidebar-toggle" place="top" delayShow={300} className="tooltip !text-xs z-99" /> </> ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx
frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx
import React, { useState, useEffect } from "react"; import * as Skeleton from "react-loading-skeleton"; import "react-loading-skeleton/dist/skeleton.css"; import Workspace from "@/models/workspace"; import ManageWorkspace, { useManageWorkspaceModal, } from "../../Modals/ManageWorkspace"; import paths from "@/utils/paths"; import { useParams, useNavigate } from "react-router-dom"; import { GearSix, UploadSimple, DotsSixVertical } from "@phosphor-icons/react"; import useUser from "@/hooks/useUser"; import ThreadContainer from "./ThreadContainer"; import { useMatch } from "react-router-dom"; import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd"; import showToast from "@/utils/toast"; export default function ActiveWorkspaces() { const navigate = useNavigate(); const { slug } = useParams(); const [loading, setLoading] = useState(true); const [workspaces, setWorkspaces] = useState([]); const [selectedWs, setSelectedWs] = useState(null); const { showing, showModal, hideModal } = useManageWorkspaceModal(); const { user } = useUser(); const isInWorkspaceSettings = !!useMatch("/workspace/:slug/settings/:tab"); useEffect(() => { async function getWorkspaces() { const workspaces = await Workspace.all(); setLoading(false); setWorkspaces(Workspace.orderWorkspaces(workspaces)); } getWorkspaces(); }, []); if (loading) { return ( <Skeleton.default height={40} width="100%" count={5} baseColor="var(--theme-sidebar-item-default)" highlightColor="var(--theme-sidebar-item-hover)" enableAnimation={true} className="my-1" /> ); } /** * Reorders workspaces in the UI via localstorage on client side. * @param {number} startIndex - the index of the workspace to move * @param {number} endIndex - the index to move the workspace to */ function reorderWorkspaces(startIndex, endIndex) { const reorderedWorkspaces = Array.from(workspaces); const [removed] = reorderedWorkspaces.splice(startIndex, 1); reorderedWorkspaces.splice(endIndex, 0, removed); setWorkspaces(reorderedWorkspaces); const success = Workspace.storeWorkspaceOrder( reorderedWorkspaces.map((w) => w.id) ); if (!success) { showToast("Failed to reorder workspaces", "error"); Workspace.all().then((workspaces) => setWorkspaces(workspaces)); } } const onDragEnd = (result) => { if (!result.destination) return; reorderWorkspaces(result.source.index, result.destination.index); }; return ( <DragDropContext onDragEnd={onDragEnd}> <Droppable droppableId="workspaces"> {(provided) => ( <div role="list" aria-label="Workspaces" className="flex flex-col gap-y-2" ref={provided.innerRef} {...provided.droppableProps} > {workspaces.map((workspace, index) => { const isActive = workspace.slug === slug; return ( <Draggable key={workspace.id} draggableId={workspace.id.toString()} index={index} > {(provided, snapshot) => ( <div ref={provided.innerRef} {...provided.draggableProps} className={`flex flex-col w-full group ${ snapshot.isDragging ? "opacity-50" : "" }`} role="listitem" > <div className="flex gap-x-2 items-center justify-between"> <a href={ isActive ? null : paths.workspace.chat(workspace.slug) } data-tooltip-id="workspace-name" data-tooltip-content={workspace.name} aria-current={isActive ? "page" : ""} className={` transition-all duration-[200ms] flex flex-grow w-[75%] gap-x-2 py-[6px] pl-[4px] pr-[6px] rounded-[4px] text-white justify-start items-center bg-theme-sidebar-item-default hover:bg-theme-sidebar-subitem-hover hover:font-bold ${isActive ? "bg-theme-sidebar-item-selected font-bold light:outline-2 light:outline light:outline-blue-400 light:outline-offset-[-2px]" : ""} `} > <div className="flex flex-row justify-between w-full items-center"> <div {...provided.dragHandleProps} className="cursor-grab mr-[3px]" > <DotsSixVertical size={20} color="var(--theme-sidebar-item-workspace-active)" weight="bold" /> </div> <div className="flex items-center space-x-2 overflow-hidden flex-grow"> <div className="w-[130px] overflow-hidden"> <p className={` text-[14px] leading-loose whitespace-nowrap overflow-hidden text-white ${isActive ? "font-bold" : "font-medium"} truncate w-full group-hover:w-[130px] group-hover:font-bold group-hover:duration-200 `} > {workspace.name} </p> </div> </div> {user?.role !== "default" && ( <div className={`flex items-center gap-x-[2px] transition-opacity duration-200 ${isActive ? "opacity-100" : "opacity-0 group-hover:opacity-100"}`} > <button type="button" onClick={(e) => { e.preventDefault(); setSelectedWs(workspace); showModal(); }} className="border-none rounded-md flex items-center justify-center ml-auto p-[2px] hover:bg-[#646768] text-[#A7A8A9] hover:text-white" > <UploadSimple className="h-[20px] w-[20px]" /> </button> <button onClick={(e) => { e.preventDefault(); e.stopPropagation(); navigate( isInWorkspaceSettings ? paths.workspace.chat(workspace.slug) : paths.workspace.settings.generalAppearance( workspace.slug ) ); }} className="rounded-md flex items-center justify-center text-[#A7A8A9] hover:text-white ml-auto p-[2px] hover:bg-[#646768]" aria-label="General appearance settings" > <GearSix color={ isInWorkspaceSettings && workspace.slug === slug ? "#46C8FF" : undefined } className="h-[20px] w-[20px]" /> </button> </div> )} </div> </a> </div> {isActive && ( <ThreadContainer workspace={workspace} isActive={isActive} /> )} </div> )} </Draggable> ); })} {provided.placeholder} {showing && ( <ManageWorkspace hideModal={hideModal} providedSlug={selectedWs ? selectedWs.slug : null} /> )} </div> )} </Droppable> </DragDropContext> ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx
frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx
import Workspace from "@/models/workspace"; import paths from "@/utils/paths"; import showToast from "@/utils/toast"; import { Plus, CircleNotch, Trash } from "@phosphor-icons/react"; import { useEffect, useState } from "react"; import ThreadItem from "./ThreadItem"; import { useParams } from "react-router-dom"; export const THREAD_RENAME_EVENT = "renameThread"; export default function ThreadContainer({ workspace }) { const { threadSlug = null } = useParams(); const [threads, setThreads] = useState([]); const [loading, setLoading] = useState(true); const [ctrlPressed, setCtrlPressed] = useState(false); useEffect(() => { const chatHandler = (event) => { const { threadSlug, newName } = event.detail; setThreads((prevThreads) => prevThreads.map((thread) => { if (thread.slug === threadSlug) { return { ...thread, name: newName }; } return thread; }) ); }; window.addEventListener(THREAD_RENAME_EVENT, chatHandler); return () => { window.removeEventListener(THREAD_RENAME_EVENT, chatHandler); }; }, []); useEffect(() => { async function fetchThreads() { if (!workspace.slug) return; const { threads } = await Workspace.threads.all(workspace.slug); setLoading(false); setThreads(threads); } fetchThreads(); }, [workspace.slug]); // Enable toggling of bulk-deletion by holding meta-key (ctrl on win and cmd/fn on others) useEffect(() => { const handleKeyDown = (event) => { if (["Control", "Meta"].includes(event.key)) { setCtrlPressed(true); } }; const handleKeyUp = (event) => { if (["Control", "Meta"].includes(event.key)) { setCtrlPressed(false); // when toggling, unset bulk progress so // previously marked threads that were never deleted // come back to life. setThreads((prev) => prev.map((t) => { return { ...t, deleted: false }; }) ); } }; window.addEventListener("keydown", handleKeyDown); window.addEventListener("keyup", handleKeyUp); return () => { window.removeEventListener("keydown", handleKeyDown); window.removeEventListener("keyup", handleKeyUp); }; }, []); const toggleForDeletion = (id) => { setThreads((prev) => prev.map((t) => { if (t.id !== id) return t; return { ...t, deleted: !t.deleted }; }) ); }; const handleDeleteAll = async () => { const slugs = threads.filter((t) => t.deleted === true).map((t) => t.slug); await Workspace.threads.deleteBulk(workspace.slug, slugs); setThreads((prev) => prev.filter((t) => !t.deleted)); // Only redirect if current thread is being deleted if (slugs.includes(threadSlug)) { window.location.href = paths.workspace.chat(workspace.slug); } }; function removeThread(threadId) { setThreads((prev) => prev.map((_t) => { if (_t.id !== threadId) return _t; return { ..._t, deleted: true }; }) ); // Show thread was deleted, but then remove from threads entirely so it will // not appear in bulk-selection. setTimeout(() => { setThreads((prev) => prev.filter((t) => !t.deleted)); }, 500); } if (loading) { return ( <div className="flex flex-col bg-pulse w-full h-10 items-center justify-center"> <p className="text-xs text-white animate-pulse">loading threads....</p> </div> ); } const activeThreadIdx = !!threads.find( (thread) => thread?.slug === threadSlug ) ? threads.findIndex((thread) => thread?.slug === threadSlug) + 1 : 0; return ( <div className="flex flex-col" role="list" aria-label="Threads"> <ThreadItem idx={0} activeIdx={activeThreadIdx} isActive={activeThreadIdx === 0} thread={{ slug: null, name: "default" }} hasNext={threads.length > 0} /> {threads.map((thread, i) => ( <ThreadItem key={thread.slug} idx={i + 1} ctrlPressed={ctrlPressed} toggleMarkForDeletion={toggleForDeletion} activeIdx={activeThreadIdx} isActive={activeThreadIdx === i + 1} workspace={workspace} onRemove={removeThread} thread={thread} hasNext={i !== threads.length - 1} /> ))} <DeleteAllThreadButton ctrlPressed={ctrlPressed} threads={threads} onDelete={handleDeleteAll} /> <NewThreadButton workspace={workspace} /> </div> ); } function NewThreadButton({ workspace }) { const [loading, setLoading] = useState(false); const onClick = async () => { setLoading(true); const { thread, error } = await Workspace.threads.new(workspace.slug); if (!!error) { showToast(`Could not create thread - ${error}`, "error", { clear: true }); setLoading(false); return; } window.location.replace( paths.workspace.thread(workspace.slug, thread.slug) ); }; return ( <button onClick={onClick} className="w-full relative flex h-[40px] items-center border-none hover:bg-[var(--theme-sidebar-thread-selected)] hover:light:bg-theme-sidebar-subitem-hover rounded-lg" > <div className="flex w-full gap-x-2 items-center pl-4"> <div className="bg-white/20 p-2 rounded-lg h-[24px] w-[24px] flex items-center justify-center"> {loading ? ( <CircleNotch weight="bold" size={14} className="shrink-0 animate-spin text-white light:text-theme-text-primary" /> ) : ( <Plus weight="bold" size={14} className="shrink-0 text-white light:text-theme-text-primary" /> )} </div> {loading ? ( <p className="text-left text-white light:text-theme-text-primary text-sm"> Starting Thread... </p> ) : ( <p className="text-left text-white light:text-theme-text-primary text-sm"> New Thread </p> )} </div> </button> ); } function DeleteAllThreadButton({ ctrlPressed, threads, onDelete }) { if (!ctrlPressed || threads.filter((t) => t.deleted).length === 0) return null; return ( <button type="button" onClick={onDelete} className="w-full relative flex h-[40px] items-center border-none hover:bg-red-400/20 rounded-lg group" > <div className="flex w-full gap-x-2 items-center pl-4"> <div className="bg-transparent p-2 rounded-lg h-[24px] w-[24px] flex items-center justify-center"> <Trash weight="bold" size={14} className="shrink-0 text-white light:text-red-500/50 group-hover:text-red-400" /> </div> <p className="text-white light:text-theme-text-secondary text-left text-sm group-hover:text-red-400"> Delete Selected </p> </div> </button> ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx
frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx
import Workspace from "@/models/workspace"; import paths from "@/utils/paths"; import showToast from "@/utils/toast"; import { ArrowCounterClockwise, DotsThree, PencilSimple, Trash, X, } from "@phosphor-icons/react"; import { useEffect, useRef, useState } from "react"; import { useParams } from "react-router-dom"; const THREAD_CALLOUT_DETAIL_WIDTH = 26; export default function ThreadItem({ idx, activeIdx, isActive, workspace, thread, onRemove, toggleMarkForDeletion, hasNext, ctrlPressed = false, }) { const { slug, threadSlug = null } = useParams(); const optionsContainer = useRef(null); const [showOptions, setShowOptions] = useState(false); const linkTo = !thread.slug ? paths.workspace.chat(slug) : paths.workspace.thread(slug, thread.slug); return ( <div className="w-full relative flex h-[38px] items-center border-none rounded-lg" role="listitem" > {/* Curved line Element and leader if required */} <div style={{ width: THREAD_CALLOUT_DETAIL_WIDTH / 2 }} className={`${ isActive ? "border-l-2 border-b-2 border-white light:border-theme-sidebar-border z-[2]" : "border-l border-b border-[#6F6F71] light:border-theme-sidebar-border z-[1]" } h-[50%] absolute top-0 left-3 rounded-bl-lg`} ></div> {/* Downstroke border for next item */} {hasNext && ( <div style={{ width: THREAD_CALLOUT_DETAIL_WIDTH / 2 }} className={`${ idx <= activeIdx && !isActive ? "border-l-2 border-white light:border-theme-sidebar-border z-[2]" : "border-l border-[#6F6F71] light:border-theme-sidebar-border z-[1]" } h-[100%] absolute top-0 left-3`} ></div> )} {/* Curved line inline placeholder for spacing - not visible */} <div style={{ width: THREAD_CALLOUT_DETAIL_WIDTH + 8 }} className="h-full" /> <div className={`flex w-full items-center justify-between pr-2 group relative ${isActive ? "bg-[var(--theme-sidebar-thread-selected)] border border-solid border-transparent light:border-blue-400" : "hover:bg-theme-sidebar-subitem-hover"} rounded-[4px]`} > {thread.deleted ? ( <div className="w-full flex justify-between"> <div className="w-full pl-2 py-1"> <p className={`text-left text-sm text-slate-400/50 light:text-slate-500 italic`} > deleted thread </p> </div> {ctrlPressed && ( <button type="button" className="border-none" onClick={() => toggleMarkForDeletion(thread.id)} > <ArrowCounterClockwise className="text-zinc-300 hover:text-white light:text-theme-text-secondary hover:light:text-theme-text-primary" size={18} /> </button> )} </div> ) : ( <a href={ window.location.pathname === linkTo || ctrlPressed ? "#" : linkTo } data-tooltip-id="workspace-thread-name" data-tooltip-content={thread.name} className="w-full pl-2 py-1 overflow-hidden" aria-current={isActive ? "page" : ""} > <p className={`text-left text-sm truncate max-w-[150px] ${ isActive ? "font-medium text-white" : "text-theme-text-primary" }`} > {thread.name} </p> </a> )} {!!thread.slug && !thread.deleted && ( <div ref={optionsContainer} className="flex items-center"> {" "} {/* Added flex and items-center */} {ctrlPressed ? ( <button type="button" className="border-none" onClick={() => toggleMarkForDeletion(thread.id)} > <X className="text-zinc-300 light:text-theme-text-secondary hover:text-white hover:light:text-theme-text-primary" weight="bold" size={18} /> </button> ) : ( <div className="flex items-center w-fit group-hover:visible md:invisible gap-x-1"> <button type="button" className="border-none" onClick={() => setShowOptions(!showOptions)} aria-label="Thread options" > <DotsThree className="text-slate-300 light:text-theme-text-secondary hover:text-white hover:light:text-theme-text-primary" size={25} /> </button> </div> )} {showOptions && ( <OptionsMenu containerRef={optionsContainer} workspace={workspace} thread={thread} onRemove={onRemove} close={() => setShowOptions(false)} currentThreadSlug={threadSlug} /> )} </div> )} </div> </div> ); } function OptionsMenu({ containerRef, workspace, thread, onRemove, close, currentThreadSlug, }) { const menuRef = useRef(null); // Ref menu options const outsideClick = (e) => { if (!menuRef.current) return false; if ( !menuRef.current?.contains(e.target) && !containerRef.current?.contains(e.target) ) close(); return false; }; const isEsc = (e) => { if (e.key === "Escape" || e.key === "Esc") close(); }; function cleanupListeners() { window.removeEventListener("click", outsideClick); window.removeEventListener("keyup", isEsc); } // end Ref menu options useEffect(() => { function setListeners() { if (!menuRef?.current || !containerRef.current) return false; window.document.addEventListener("click", outsideClick); window.document.addEventListener("keyup", isEsc); } setListeners(); return cleanupListeners; }, [menuRef.current, containerRef.current]); const renameThread = async () => { const name = window .prompt("What would you like to rename this thread to?") ?.trim(); if (!name || name.length === 0) { close(); return; } const { message } = await Workspace.threads.update( workspace.slug, thread.slug, { name } ); if (!!message) { showToast(`Thread could not be updated! ${message}`, "error", { clear: true, }); close(); return; } thread.name = name; close(); }; const handleDelete = async () => { if ( !window.confirm( "Are you sure you want to delete this thread? All of its chats will be deleted. You cannot undo this." ) ) return; const success = await Workspace.threads.delete(workspace.slug, thread.slug); if (!success) { showToast("Thread could not be deleted!", "error", { clear: true }); return; } if (success) { showToast("Thread deleted successfully!", "success", { clear: true }); onRemove(thread.id); // Redirect if deleting the active thread if (currentThreadSlug === thread.slug) { window.location.href = paths.workspace.chat(workspace.slug); } return; } }; return ( <div ref={menuRef} className="absolute w-fit z-[20] top-[25px] right-[10px] bg-zinc-900 light:bg-theme-bg-sidebar light:border-[1px] light:border-theme-sidebar-border rounded-lg p-1" > <button onClick={renameThread} type="button" className="w-full rounded-md flex items-center p-2 gap-x-2 hover:bg-slate-500/20 text-slate-300 light:text-theme-text-primary" > <PencilSimple size={18} /> <p className="text-sm">Rename</p> </button> <button onClick={handleDelete} type="button" className="w-full rounded-md flex items-center p-2 gap-x-2 hover:bg-red-500/20 text-slate-300 light:text-theme-text-primary hover:text-red-100" > <Trash size={18} /> <p className="text-sm">Delete Thread</p> </button> </div> ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/mcpServers.js
frontend/src/models/mcpServers.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const MCPServers = { /** * Forces a reload of the MCP Hypervisor and its servers * @returns {Promise<{success: boolean, error: string | null, servers: Array<{name: string, running: boolean, tools: Array<{name: string, description: string, inputSchema: Object}>, error: string | null, process: {pid: number, cmd: string} | null}>}>} */ forceReload: async () => { return await fetch(`${API_BASE}/mcp-servers/force-reload`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => ({ servers: [], success: false, error: e.message, })); }, /** * List all available MCP servers in the system * @returns {Promise<{success: boolean, error: string | null, servers: Array<{name: string, running: boolean, tools: Array<{name: string, description: string, inputSchema: Object}>, error: string | null, process: {pid: number, cmd: string} | null}>}>} */ listServers: async () => { return await fetch(`${API_BASE}/mcp-servers/list`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, servers: [], })); }, /** * Toggle the MCP server (start or stop) * @param {string} name - The name of the MCP server to toggle * @returns {Promise<{success: boolean, error: string | null}>} */ toggleServer: async (name) => { return await fetch(`${API_BASE}/mcp-servers/toggle`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, })); }, /** * Delete the MCP server - will also remove it from the config file * @param {string} name - The name of the MCP server to delete * @returns {Promise<{success: boolean, error: string | null}>} */ deleteServer: async (name) => { return await fetch(`${API_BASE}/mcp-servers/delete`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, })); }, }; export default MCPServers;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/appearance.js
frontend/src/models/appearance.js
import { APPEARANCE_SETTINGS } from "@/utils/constants"; import { safeJsonParse } from "@/utils/request"; /** * @typedef { 'showScrollbar' | * 'autoSubmitSttInput' | * 'autoPlayAssistantTtsResponse' | * 'enableSpellCheck' | * 'renderHTML' * } AvailableSettings - The supported settings for the appearance model. */ const Appearance = { defaultSettings: { showScrollbar: false, autoSubmitSttInput: true, autoPlayAssistantTtsResponse: false, enableSpellCheck: true, renderHTML: false, }, /** * Fetches any locally storage settings for the user * @returns {{showScrollbar: boolean, autoSubmitSttInput: boolean, autoPlayAssistantTtsResponse: boolean, enableSpellCheck: boolean, renderHTML: boolean}} */ getSettings: () => { const settings = localStorage.getItem(APPEARANCE_SETTINGS); return safeJsonParse(settings, Appearance.defaultSettings); }, /** * Fetches a specific setting from the user's settings * @param {AvailableSettings} key - The key of the setting to fetch * @returns {boolean} - a default value if the setting is not found or the current value */ get: (key) => { const settings = Appearance.getSettings(); return settings.hasOwnProperty(key) ? settings[key] : Appearance.defaultSettings[key]; }, /** * Updates a specific setting from the user's settings * @param {AvailableSettings} key - The key of the setting to update * @param {any} value - The value to update the setting to * @returns {object} */ set: (key, value) => { const settings = Appearance.getSettings(); settings[key] = value; Appearance.updateSettings(settings); return settings; }, /** * Updates locally stored user settings * @param {object} newSettings - new settings to update. * @returns {object} */ updateSettings: (newSettings) => { const updatedSettings = { ...Appearance.getSettings(), ...newSettings }; localStorage.setItem(APPEARANCE_SETTINGS, JSON.stringify(updatedSettings)); return updatedSettings; }, }; export default Appearance;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/workspaceThread.js
frontend/src/models/workspaceThread.js
import { ABORT_STREAM_EVENT } from "@/utils/chat"; import { API_BASE } from "@/utils/constants"; import { baseHeaders, safeJsonParse } from "@/utils/request"; import { fetchEventSource } from "@microsoft/fetch-event-source"; import { v4 } from "uuid"; const WorkspaceThread = { all: async function (workspaceSlug) { const { threads } = await fetch( `${API_BASE}/workspace/${workspaceSlug}/threads`, { method: "GET", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { return { threads: [] }; }); return { threads }; }, new: async function (workspaceSlug) { const { thread, error } = await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/new`, { method: "POST", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { return { thread: null, error: e.message }; }); return { thread, error }; }, update: async function (workspaceSlug, threadSlug, data = {}) { const { thread, message } = await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}/update`, { method: "POST", body: JSON.stringify(data), headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { return { thread: null, message: e.message }; }); return { thread, message }; }, delete: async function (workspaceSlug, threadSlug) { return await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}`, { method: "DELETE", headers: baseHeaders(), } ) .then((res) => res.ok) .catch(() => false); }, deleteBulk: async function (workspaceSlug, threadSlugs = []) { return await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread-bulk-delete`, { method: "DELETE", body: JSON.stringify({ slugs: threadSlugs }), headers: baseHeaders(), } ) .then((res) => res.ok) .catch(() => false); }, chatHistory: async function (workspaceSlug, threadSlug) { const history = await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}/chats`, { method: "GET", headers: baseHeaders(), } ) .then((res) => res.json()) .then((res) => res.history || []) .catch(() => []); return history; }, streamChat: async function ( { workspaceSlug, threadSlug }, message, handleChat, attachments = [] ) { const ctrl = new AbortController(); // Listen for the ABORT_STREAM_EVENT key to be emitted by the client // to early abort the streaming response. On abort we send a special `stopGeneration` // event to be handled which resets the UI for us to be able to send another message. // The backend response abort handling is done in each LLM's handleStreamResponse. window.addEventListener(ABORT_STREAM_EVENT, () => { ctrl.abort(); handleChat({ id: v4(), type: "stopGeneration" }); }); await fetchEventSource( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}/stream-chat`, { method: "POST", body: JSON.stringify({ message, attachments }), headers: baseHeaders(), signal: ctrl.signal, openWhenHidden: true, async onopen(response) { if (response.ok) { return; // everything's good } else if ( response.status >= 400 && response.status < 500 && response.status !== 429 ) { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. Code ${response.status}`, }); ctrl.abort(); throw new Error("Invalid Status code response."); } else { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. Unknown Error.`, }); ctrl.abort(); throw new Error("Unknown error"); } }, async onmessage(msg) { const chatResult = safeJsonParse(msg.data, null); if (chatResult) handleChat(chatResult); }, onerror(err) { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. ${err.message}`, }); ctrl.abort(); throw new Error(); }, } ); }, _deleteEditedChats: async function ( workspaceSlug = "", threadSlug = "", startingId ) { return await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}/delete-edited-chats`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ startingId }), } ) .then((res) => { if (res.ok) return true; throw new Error("Failed to delete chats."); }) .catch((e) => { console.log(e); return false; }); }, _updateChatResponse: async function ( workspaceSlug = "", threadSlug = "", chatId, newText ) { return await fetch( `${API_BASE}/workspace/${workspaceSlug}/thread/${threadSlug}/update-chat`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ chatId, newText }), } ) .then((res) => { if (res.ok) return true; throw new Error("Failed to update chat."); }) .catch((e) => { console.log(e); return false; }); }, }; export default WorkspaceThread;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/systemPromptVariable.js
frontend/src/models/systemPromptVariable.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; /** * @typedef {Object} SystemPromptVariable * @property {number|null} id - The ID of the system prompt variable * @property {string} key - The key of the system prompt variable * @property {string} value - The value of the system prompt variable * @property {string} description - The description of the system prompt variable * @property {string} type - The type of the system prompt variable */ const SystemPromptVariable = { /** * Get all system prompt variables * @returns {Promise<{variables: SystemPromptVariable[]}>} - An array of system prompt variables */ getAll: async function () { try { return await fetch(`${API_BASE}/system/prompt-variables`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((error) => { console.error("Error fetching system prompt variables:", error); return { variables: [] }; }); } catch (error) { console.error("Error fetching system prompt variables:", error); return { variables: [] }; } }, /** * Create a new system prompt variable * @param {SystemPromptVariable} variable - The system prompt variable to create * @returns {Promise<{success: boolean, error: string}>} - A promise that resolves to an object containing a success flag and an error message */ create: async function (variable = {}) { try { return await fetch(`${API_BASE}/system/prompt-variables`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(variable), }) .then((res) => res.json()) .catch((error) => { console.error("Error creating system prompt variable:", error); return { success: false, error }; }); } catch (error) { console.error("Error creating system prompt variable:", error); return { success: false, error }; } }, /** * Update a system prompt variable * @param {string} id - The ID of the system prompt variable to update * @param {SystemPromptVariable} variable - The system prompt variable to update * @returns {Promise<{success: boolean, error: string}>} - A promise that resolves to an object containing a success flag and an error message */ update: async function (id, variable = {}) { try { return await fetch(`${API_BASE}/system/prompt-variables/${id}`, { method: "PUT", headers: baseHeaders(), body: JSON.stringify(variable), }) .then((res) => res.json()) .catch((error) => { console.error("Error updating system prompt variable:", error); return { success: false, error }; }); } catch (error) { console.error("Error updating system prompt variable:", error); return { success: false, error }; } }, /** * Delete a system prompt variable * @param {string} id - The ID of the system prompt variable to delete * @returns {Promise<{success: boolean, error: string}>} - A promise that resolves to an object containing a success flag and an error message */ delete: async function (id = null) { try { if (id === null) return { success: false, error: "ID is required" }; return await fetch(`${API_BASE}/system/prompt-variables/${id}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((error) => { console.error("Error deleting system prompt variable:", error); return { success: false, error }; }); } catch (error) { console.error("Error deleting system prompt variable:", error); return { success: false, error }; } }, }; export default SystemPromptVariable;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/promptHistory.js
frontend/src/models/promptHistory.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; /** * @typedef {Object} PromptHistory * @property {number} id - The ID of the prompt history entry * @property {number} workspaceId - The ID of the workspace * @property {string} prompt - The prompt text * @property {number|null} modifiedBy - The ID of the user who modified the prompt * @property {Date} modifiedAt - The date when the prompt was modified * @property {Object|null} user - The user who modified the prompt */ const PromptHistory = { /** * Get all prompt history for a workspace * @param {number} workspaceId - The ID of the workspace * @returns {Promise<PromptHistory[]>} - An array of prompt history entries */ forWorkspace: async function (workspaceId) { try { return await fetch( `${API_BASE}/workspace/${workspaceId}/prompt-history`, { method: "GET", headers: baseHeaders(), } ) .then((res) => res.json()) .then((res) => res.history || []) .catch((error) => { console.error("Error fetching prompt history:", error); return []; }); } catch (error) { console.error("Error fetching prompt history:", error); return []; } }, /** * Delete all prompt history for a workspace * @param {number} workspaceId - The ID of the workspace * @returns {Promise<{success: boolean, error: string}>} - A promise that resolves to an object containing a success flag and an error message */ clearAll: async function (workspaceId) { try { return await fetch( `${API_BASE}/workspace/${workspaceId}/prompt-history`, { method: "DELETE", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((error) => { console.error("Error clearing prompt history:", error); return { success: false, error }; }); } catch (error) { console.error("Error clearing prompt history:", error); return { success: false, error }; } }, delete: async function (id) { try { return await fetch(`${API_BASE}/workspace/prompt-history/${id}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((error) => { console.error("Error deleting prompt history:", error); return { success: false, error }; }); } catch (error) { console.error("Error deleting prompt history:", error); return { success: false, error }; } }, }; export default PromptHistory;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/invite.js
frontend/src/models/invite.js
import { API_BASE } from "@/utils/constants"; const Invite = { checkInvite: async (inviteCode) => { return await fetch(`${API_BASE}/invite/${inviteCode}`, { method: "GET", }) .then((res) => res.json()) .catch((e) => { console.error(e); return { invite: null, error: e.message }; }); }, acceptInvite: async (inviteCode, newUserInfo = {}) => { return await fetch(`${API_BASE}/invite/${inviteCode}`, { method: "POST", body: JSON.stringify(newUserInfo), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, }; export default Invite;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/document.js
frontend/src/models/document.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const Document = { createFolder: async (name) => { return await fetch(`${API_BASE}/document/create-folder`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, moveToFolder: async (files, folderName) => { const data = { files: files.map((file) => ({ from: file.folderName ? `${file.folderName}/${file.name}` : file.name, to: `${folderName}/${file.name}`, })), }; return await fetch(`${API_BASE}/document/move-files`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, }; export default Document;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/communityHub.js
frontend/src/models/communityHub.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const CommunityHub = { /** * Get an item from the community hub by its import ID. * @param {string} importId - The import ID of the item. * @returns {Promise<{error: string | null, item: object | null}>} */ getItemFromImportId: async (importId) => { return await fetch(`${API_BASE}/community-hub/item`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ importId }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { error: e.message, item: null, }; }); }, /** * Apply an item to the AnythingLLM instance. Used for simple items like slash commands and system prompts. * @param {string} importId - The import ID of the item. * @param {object} options - Additional options for applying the item for whatever the item type requires. * @returns {Promise<{success: boolean, error: string | null}>} */ applyItem: async (importId, options = {}) => { return await fetch(`${API_BASE}/community-hub/apply`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ importId, options }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message, }; }); }, /** * Import a bundle item from the community hub. * @param {string} importId - The import ID of the item. * @returns {Promise<{error: string | null, item: object | null}>} */ importBundleItem: async (importId) => { return await fetch(`${API_BASE}/community-hub/import`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ importId }), }) .then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response?.error ?? res.statusText); return response; }) .catch((e) => { return { error: e.message, item: null, }; }); }, /** * Update the hub settings (API key, etc.) * @param {Object} data - The data to update. * @returns {Promise<{success: boolean, error: string | null}>} */ updateSettings: async (data) => { return await fetch(`${API_BASE}/community-hub/settings`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response.error || "Failed to update settings"); return { success: true, error: null }; }) .catch((e) => ({ success: false, error: e.message, })); }, /** * Get the hub settings (API key, etc.) * @returns {Promise<{connectionKey: string | null, error: string | null}>} */ getSettings: async () => { return await fetch(`${API_BASE}/community-hub/settings`, { method: "GET", headers: baseHeaders(), }) .then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response.error || "Failed to fetch settings"); return { connectionKey: response.connectionKey, error: null }; }) .catch((e) => ({ connectionKey: null, error: e.message, })); }, /** * Fetch the explore items from the community hub that are publicly available. * @returns {Promise<{agentSkills: {items: [], hasMore: boolean, totalCount: number}, systemPrompts: {items: [], hasMore: boolean, totalCount: number}, slashCommands: {items: [], hasMore: boolean, totalCount: number}}>} */ fetchExploreItems: async () => { return await fetch(`${API_BASE}/community-hub/explore`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message, result: null, }; }); }, /** * Fetch the user items from the community hub. * @returns {Promise<{success: boolean, error: string | null, createdByMe: object, teamItems: object[]}>} */ fetchUserItems: async () => { return await fetch(`${API_BASE}/community-hub/items`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message, createdByMe: {}, teamItems: [], }; }); }, /** * Create a new system prompt in the community hub * @param {Object} data - The system prompt data * @param {string} data.name - The name of the prompt * @param {string} data.description - The description of the prompt * @param {string} data.prompt - The actual system prompt text * @param {string[]} data.tags - Array of tags * @param {string} data.visibility - Either 'public' or 'private' * @returns {Promise<{success: boolean, error: string | null}>} */ createSystemPrompt: async (data) => { return await fetch(`${API_BASE}/community-hub/system-prompt/create`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response.error || "Failed to create system prompt"); return { success: true, error: null, itemId: response.item?.id }; }) .catch((e) => ({ success: false, error: e.message, })); }, /** * Create a new agent flow in the community hub * @param {Object} data - The agent flow data * @returns {Promise<{success: boolean, error: string | null}>} */ createAgentFlow: async (data) => { return await fetch(`${API_BASE}/community-hub/agent-flow/create`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }).then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response.error || "Failed to create agent flow"); return { success: true, error: null, itemId: response.item?.id }; }); }, /** * Create a new slash command in the community hub * @param {Object} data - The slash command data * @param {string} data.name - The name of the command * @param {string} data.description - The description of the command * @param {string} data.command - The actual command text * @param {string} data.prompt - The prompt for the command * @param {string[]} data.tags - Array of tags * @param {string} data.visibility - Either 'public' or 'private' * @returns {Promise<{success: boolean, error: string | null}>} */ createSlashCommand: async (data) => { return await fetch(`${API_BASE}/community-hub/slash-command/create`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then(async (res) => { const response = await res.json(); if (!res.ok) throw new Error(response.error || "Failed to create slash command"); return { success: true, error: null, itemId: response.item?.id }; }) .catch((e) => ({ success: false, error: e.message, })); }, }; export default CommunityHub;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/mobile.js
frontend/src/models/mobile.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; /** * @typedef {Object} MobileConnection * @property {string} id - The database ID of the device. * @property {string} deviceId - The device ID of the device. * @property {string} deviceOs - The operating system of the device. * @property {boolean} approved - Whether the device is approved. * @property {string} createdAt - The date and time the device was created. */ const MobileConnection = { /** * Get the connection info for the mobile app. * @returns {Promise<{connectionUrl: string|null}>} The connection info. */ getConnectionInfo: async function () { return await fetch(`${API_BASE}/mobile/connect-info`, { headers: baseHeaders(), }) .then((res) => res.json()) .catch(() => false); }, /** * Get all the devices from the database. * @returns {Promise<MobileDevice[]>} The devices. */ getDevices: async function () { return await fetch(`${API_BASE}/mobile/devices`, { headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res.devices || []) .catch(() => []); }, /** * Delete a device from the database. * @param {string} deviceId - The database ID of the device to delete. * @returns {Promise<{message: string}>} The deleted device. */ deleteDevice: async function (id) { return await fetch(`${API_BASE}/mobile/${id}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch(() => false); }, /** * Update a device in the database. * @param {string} id - The database ID of the device to update. * @param {Object} updates - The updates to apply to the device. * @returns {Promise<{updates: MobileDevice}>} The updated device. */ updateDevice: async function (id, updates = {}) { return await fetch(`${API_BASE}/mobile/update/${id}`, { method: "POST", body: JSON.stringify(updates), headers: baseHeaders(), }) .then((res) => res.json()) .catch(() => false); }, }; export default MobileConnection;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/admin.js
frontend/src/models/admin.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const Admin = { // User Management users: async () => { return await fetch(`${API_BASE}/admin/users`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.users || []) .catch((e) => { console.error(e); return []; }); }, newUser: async (data) => { return await fetch(`${API_BASE}/admin/users/new`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { user: null, error: e.message }; }); }, updateUser: async (userId, data) => { return await fetch(`${API_BASE}/admin/user/${userId}`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, deleteUser: async (userId) => { return await fetch(`${API_BASE}/admin/user/${userId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, // Invitations invites: async () => { return await fetch(`${API_BASE}/admin/invites`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.invites || []) .catch((e) => { console.error(e); return []; }); }, newInvite: async ({ role = null, workspaceIds = null }) => { return await fetch(`${API_BASE}/admin/invite/new`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ role, workspaceIds, }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { invite: null, error: e.message }; }); }, disableInvite: async (inviteId) => { return await fetch(`${API_BASE}/admin/invite/${inviteId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, // Workspaces Mgmt workspaces: async () => { return await fetch(`${API_BASE}/admin/workspaces`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.workspaces || []) .catch((e) => { console.error(e); return []; }); }, workspaceUsers: async (workspaceId) => { return await fetch(`${API_BASE}/admin/workspaces/${workspaceId}/users`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.users || []) .catch((e) => { console.error(e); return []; }); }, newWorkspace: async (name) => { return await fetch(`${API_BASE}/admin/workspaces/new`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { workspace: null, error: e.message }; }); }, updateUsersInWorkspace: async (workspaceId, userIds = []) => { return await fetch( `${API_BASE}/admin/workspaces/${workspaceId}/update-users`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ userIds }), } ) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, deleteWorkspace: async (workspaceId) => { return await fetch(`${API_BASE}/admin/workspaces/${workspaceId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, // System Preferences // TODO: remove this in favor of systemPreferencesByFields // DEPRECATED: use systemPreferencesByFields instead systemPreferences: async () => { return await fetch(`${API_BASE}/admin/system-preferences`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return null; }); }, /** * Fetches system preferences by fields * @param {string[]} labels - Array of labels for settings * @returns {Promise<{settings: Object, error: string}>} - System preferences object */ systemPreferencesByFields: async (labels = []) => { return await fetch( `${API_BASE}/admin/system-preferences-for?labels=${labels.join(",")}`, { method: "GET", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { console.error(e); return null; }); }, updateSystemPreferences: async (updates = {}) => { return await fetch(`${API_BASE}/admin/system-preferences`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(updates), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, // API Keys getApiKeys: async function () { return fetch(`${API_BASE}/admin/api-keys`, { method: "GET", headers: baseHeaders(), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error fetching api keys."); } return res.json(); }) .catch((e) => { console.error(e); return { apiKeys: [], error: e.message }; }); }, generateApiKey: async function () { return fetch(`${API_BASE}/admin/generate-api-key`, { method: "POST", headers: baseHeaders(), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error generating api key."); } return res.json(); }) .catch((e) => { console.error(e); return { apiKey: null, error: e.message }; }); }, deleteApiKey: async function (apiKeyId = "") { return fetch(`${API_BASE}/admin/delete-api-key/${apiKeyId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.ok) .catch((e) => { console.error(e); return false; }); }, }; export default Admin;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/browserExtensionApiKey.js
frontend/src/models/browserExtensionApiKey.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const BrowserExtensionApiKey = { getAll: async () => { return await fetch(`${API_BASE}/browser-extension/api-keys`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message, apiKeys: [] }; }); }, generateKey: async () => { return await fetch(`${API_BASE}/browser-extension/api-keys/new`, { method: "POST", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, revoke: async (id) => { return await fetch(`${API_BASE}/browser-extension/api-keys/${id}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, }; export default BrowserExtensionApiKey;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/dataConnector.js
frontend/src/models/dataConnector.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; import showToast from "@/utils/toast"; const DataConnector = { github: { branches: async ({ repo, accessToken }) => { return await fetch(`${API_BASE}/ext/github/branches`, { method: "POST", headers: baseHeaders(), cache: "force-cache", body: JSON.stringify({ repo, accessToken }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return res.data; }) .then((data) => { return { branches: data?.branches || [], error: null }; }) .catch((e) => { console.error(e); showToast(e.message, "error"); return { branches: [], error: e.message }; }); }, collect: async function ({ repo, accessToken, branch, ignorePaths = [] }) { return await fetch(`${API_BASE}/ext/github/repo`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ repo, accessToken, branch, ignorePaths }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, gitlab: { branches: async ({ repo, accessToken }) => { return await fetch(`${API_BASE}/ext/gitlab/branches`, { method: "POST", headers: baseHeaders(), cache: "force-cache", body: JSON.stringify({ repo, accessToken }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return res.data; }) .then((data) => { return { branches: data?.branches || [], error: null }; }) .catch((e) => { console.error(e); showToast(e.message, "error"); return { branches: [], error: e.message }; }); }, collect: async function ({ repo, accessToken, branch, ignorePaths = [], fetchIssues = false, fetchWikis = false, }) { return await fetch(`${API_BASE}/ext/gitlab/repo`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ repo, accessToken, branch, ignorePaths, fetchIssues, fetchWikis, }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, youtube: { transcribe: async ({ url }) => { return await fetch(`${API_BASE}/ext/youtube/transcript`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ url }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, websiteDepth: { scrape: async ({ url, depth, maxLinks }) => { return await fetch(`${API_BASE}/ext/website-depth`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ url, depth, maxLinks }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, confluence: { collect: async function ({ baseUrl, spaceKey, username, accessToken, cloud, personalAccessToken, bypassSSL, }) { return await fetch(`${API_BASE}/ext/confluence`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ baseUrl, spaceKey, username, accessToken, cloud, personalAccessToken, bypassSSL, }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, drupalwiki: { collect: async function ({ baseUrl, spaceIds, accessToken }) { return await fetch(`${API_BASE}/ext/drupalwiki`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ baseUrl, spaceIds, accessToken, }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, obsidian: { collect: async function ({ files }) { return await fetch(`${API_BASE}/ext/obsidian/vault`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ files, }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, paperlessNgx: { collect: async function ({ baseUrl, apiToken }) { return await fetch(`${API_BASE}/ext/paperless-ngx`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ baseUrl, apiToken }), }) .then((res) => res.json()) .then((res) => { if (!res.success) throw new Error(res.reason); return { data: res.data, error: null }; }) .catch((e) => { console.error(e); return { data: null, error: e.message }; }); }, }, }; export default DataConnector;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/system.js
frontend/src/models/system.js
import { API_BASE, AUTH_TIMESTAMP, fullApiUrl } from "@/utils/constants"; import { baseHeaders, safeJsonParse } from "@/utils/request"; import DataConnector from "./dataConnector"; import LiveDocumentSync from "./experimental/liveSync"; import AgentPlugins from "./experimental/agentPlugins"; import SystemPromptVariable from "./systemPromptVariable"; const System = { cacheKeys: { footerIcons: "anythingllm_footer_links", supportEmail: "anythingllm_support_email", customAppName: "anythingllm_custom_app_name", canViewChatHistory: "anythingllm_can_view_chat_history", deploymentVersion: "anythingllm_deployment_version", }, ping: async function () { return await fetch(`${API_BASE}/ping`) .then((res) => res.json()) .then((res) => res?.online || false) .catch(() => false); }, totalIndexes: async function (slug = null) { const url = new URL(`${fullApiUrl()}/system/system-vectors`); if (!!slug) url.searchParams.append("slug", encodeURIComponent(slug)); return await fetch(url.toString(), { headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not find indexes."); return res.json(); }) .then((res) => res.vectorCount) .catch(() => 0); }, keys: async function () { return await fetch(`${API_BASE}/setup-complete`) .then((res) => { if (!res.ok) throw new Error("Could not find setup information."); return res.json(); }) .then((res) => res.results) .catch(() => null); }, localFiles: async function () { return await fetch(`${API_BASE}/system/local-files`, { headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not find setup information."); return res.json(); }) .then((res) => res.localFiles) .catch(() => null); }, needsAuthCheck: function () { const lastAuthCheck = window.localStorage.getItem(AUTH_TIMESTAMP); if (!lastAuthCheck) return true; const expiresAtMs = Number(lastAuthCheck) + 60 * 5 * 1000; // expires in 5 minutes in ms return Number(new Date()) > expiresAtMs; }, checkAuth: async function (currentToken = null) { const valid = await fetch(`${API_BASE}/system/check-token`, { headers: baseHeaders(currentToken), }) .then((res) => res.ok) .catch(() => false); window.localStorage.setItem(AUTH_TIMESTAMP, Number(new Date())); return valid; }, requestToken: async function (body) { return await fetch(`${API_BASE}/request-token`, { method: "POST", body: JSON.stringify({ ...body }), }) .then((res) => { if (!res.ok) throw new Error("Could not validate login."); return res.json(); }) .then((res) => res) .catch((e) => { return { valid: false, message: e.message }; }); }, /** * Refreshes the user object from the session. * @returns {Promise<{success: boolean, user: Object | null, message: string | null}>} */ refreshUser: () => { return fetch(`${API_BASE}/system/refresh-user`, { headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not refresh user."); return res.json(); }) .catch((e) => { return { success: false, user: null, message: e.message }; }); }, recoverAccount: async function (username, recoveryCodes) { return await fetch(`${API_BASE}/system/recover-account`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ username, recoveryCodes }), }) .then(async (res) => { const data = await res.json(); if (!res.ok) { throw new Error(data.message || "Error recovering account."); } return data; }) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, resetPassword: async function (token, newPassword, confirmPassword) { return await fetch(`${API_BASE}/system/reset-password`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ token, newPassword, confirmPassword }), }) .then(async (res) => { const data = await res.json(); if (!res.ok) { throw new Error(data.message || "Error resetting password."); } return data; }) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, checkDocumentProcessorOnline: async () => { return await fetch(`${API_BASE}/system/document-processing-status`, { headers: baseHeaders(), }) .then((res) => res.ok) .catch(() => false); }, acceptedDocumentTypes: async () => { return await fetch(`${API_BASE}/system/accepted-document-types`, { headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.types) .catch(() => null); }, updateSystem: async (data) => { return await fetch(`${API_BASE}/system/update-env`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { newValues: null, error: e.message }; }); }, updateSystemPassword: async (data) => { return await fetch(`${API_BASE}/system/update-password`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, setupMultiUser: async (data) => { return await fetch(`${API_BASE}/system/enable-multi-user`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, isMultiUserMode: async () => { return await fetch(`${API_BASE}/system/multi-user-mode`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.multiUserMode) .catch((e) => { console.error(e); return false; }); }, deleteDocument: async (name) => { return await fetch(`${API_BASE}/system/remove-document`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.ok) .catch((e) => { console.error(e); return false; }); }, deleteDocuments: async (names = []) => { return await fetch(`${API_BASE}/system/remove-documents`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ names }), }) .then((res) => res.ok) .catch((e) => { console.error(e); return false; }); }, deleteFolder: async (name) => { return await fetch(`${API_BASE}/system/remove-folder`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ name }), }) .then((res) => res.ok) .catch((e) => { console.error(e); return false; }); }, uploadPfp: async function (formData) { return await fetch(`${API_BASE}/system/upload-pfp`, { method: "POST", body: formData, headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Error uploading pfp."); return { success: true, error: null }; }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, uploadLogo: async function (formData) { return await fetch(`${API_BASE}/system/upload-logo`, { method: "POST", body: formData, headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Error uploading logo."); return { success: true, error: null }; }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, fetchCustomFooterIcons: async function () { const cache = window.localStorage.getItem(this.cacheKeys.footerIcons); const { data, lastFetched } = cache ? safeJsonParse(cache, { data: [], lastFetched: 0 }) : { data: [], lastFetched: 0 }; if (!!data && Date.now() - lastFetched < 3_600_000) return { footerData: data, error: null }; const { footerData, error } = await fetch( `${API_BASE}/system/footer-data`, { method: "GET", cache: "no-cache", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { console.log(e); return { footerData: [], error: e.message }; }); if (!footerData || !!error) return { footerData: [], error: null }; const newData = safeJsonParse(footerData, []); window.localStorage.setItem( this.cacheKeys.footerIcons, JSON.stringify({ data: newData, lastFetched: Date.now() }) ); return { footerData: newData, error: null }; }, fetchSupportEmail: async function () { const cache = window.localStorage.getItem(this.cacheKeys.supportEmail); const { email, lastFetched } = cache ? safeJsonParse(cache, { email: "", lastFetched: 0 }) : { email: "", lastFetched: 0 }; if (!!email && Date.now() - lastFetched < 3_600_000) return { email: email, error: null }; const { supportEmail, error } = await fetch( `${API_BASE}/system/support-email`, { method: "GET", cache: "no-cache", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { console.log(e); return { email: "", error: e.message }; }); if (!supportEmail || !!error) return { email: "", error: null }; window.localStorage.setItem( this.cacheKeys.supportEmail, JSON.stringify({ email: supportEmail, lastFetched: Date.now() }) ); return { email: supportEmail, error: null }; }, fetchCustomAppName: async function () { const cache = window.localStorage.getItem(this.cacheKeys.customAppName); const { appName, lastFetched } = cache ? safeJsonParse(cache, { appName: "", lastFetched: 0 }) : { appName: "", lastFetched: 0 }; if (!!appName && Date.now() - lastFetched < 3_600_000) return { appName: appName, error: null }; const { customAppName, error } = await fetch( `${API_BASE}/system/custom-app-name`, { method: "GET", cache: "no-cache", headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { console.log(e); return { customAppName: "", error: e.message }; }); if (!customAppName || !!error) { window.localStorage.removeItem(this.cacheKeys.customAppName); return { appName: "", error: null }; } window.localStorage.setItem( this.cacheKeys.customAppName, JSON.stringify({ appName: customAppName, lastFetched: Date.now() }) ); return { appName: customAppName, error: null }; }, /** * Fetches the default system prompt from the server. * @returns {Promise<{defaultSystemPrompt: string, saneDefaultSystemPrompt: string}>} */ fetchDefaultSystemPrompt: async function () { return await fetch(`${API_BASE}/system/default-system-prompt`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => ({ defaultSystemPrompt: res.defaultSystemPrompt, saneDefaultSystemPrompt: res.saneDefaultSystemPrompt, })) .catch((e) => { console.error(e); return { defaultSystemPrompt: "", saneDefaultSystemPrompt: "" }; }); }, updateDefaultSystemPrompt: async function (defaultSystemPrompt) { try { const res = await fetch(`${API_BASE}/system/default-system-prompt`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ defaultSystemPrompt }), }); const data = await res.json(); return data; } catch (e) { console.error(e); return { success: false, message: e.message }; } }, fetchLogo: async function () { const url = new URL(`${fullApiUrl()}/system/logo`); url.searchParams.append( "theme", localStorage.getItem("theme") || "default" ); return await fetch(url, { method: "GET", cache: "no-cache", }) .then(async (res) => { if (res.ok && res.status !== 204) { const isCustomLogo = res.headers.get("X-Is-Custom-Logo") === "true"; const blob = await res.blob(); const logoURL = URL.createObjectURL(blob); return { isCustomLogo, logoURL }; } throw new Error("Failed to fetch logo!"); }) .catch((e) => { console.log(e); return { isCustomLogo: false, logoURL: null }; }); }, fetchPfp: async function (id) { return await fetch(`${API_BASE}/system/pfp/${id}`, { method: "GET", cache: "no-cache", headers: baseHeaders(), }) .then((res) => { if (res.ok && res.status !== 204) return res.blob(); throw new Error("Failed to fetch pfp."); }) .then((blob) => (blob ? URL.createObjectURL(blob) : null)) .catch((e) => { // console.log(e); return null; }); }, removePfp: async function (id) { return await fetch(`${API_BASE}/system/remove-pfp`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (res.ok) return { success: true, error: null }; throw new Error("Failed to remove pfp."); }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, isDefaultLogo: async function () { return await fetch(`${API_BASE}/system/is-default-logo`, { method: "GET", cache: "no-cache", }) .then((res) => { if (!res.ok) throw new Error("Failed to get is default logo!"); return res.json(); }) .then((res) => res?.isDefaultLogo) .catch((e) => { console.log(e); return null; }); }, removeCustomLogo: async function () { return await fetch(`${API_BASE}/system/remove-logo`, { headers: baseHeaders(), }) .then((res) => { if (res.ok) return { success: true, error: null }; throw new Error("Error removing logo!"); }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, getWelcomeMessages: async function () { return await fetch(`${API_BASE}/system/welcome-messages`, { method: "GET", cache: "no-cache", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not fetch welcome messages."); return res.json(); }) .then((res) => res.welcomeMessages) .catch((e) => { console.error(e); return null; }); }, setWelcomeMessages: async function (messages) { return fetch(`${API_BASE}/system/set-welcome-messages`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ messages }), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error setting welcome messages."); } return { success: true, ...res.json() }; }) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, getApiKeys: async function () { return fetch(`${API_BASE}/system/api-keys`, { method: "GET", headers: baseHeaders(), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error fetching api key."); } return res.json(); }) .catch((e) => { console.error(e); return { apiKey: null, error: e.message }; }); }, generateApiKey: async function () { return fetch(`${API_BASE}/system/generate-api-key`, { method: "POST", headers: baseHeaders(), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error generating api key."); } return res.json(); }) .catch((e) => { console.error(e); return { apiKey: null, error: e.message }; }); }, deleteApiKey: async function (apiKeyId = "") { return fetch(`${API_BASE}/system/api-key/${apiKeyId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.ok) .catch((e) => { console.error(e); return false; }); }, customModels: async function ( provider, apiKey = null, basePath = null, timeout = null ) { const controller = new AbortController(); if (!!timeout) { setTimeout(() => { controller.abort("Request timed out."); }, timeout); } return fetch(`${API_BASE}/system/custom-models`, { method: "POST", headers: baseHeaders(), signal: controller.signal, body: JSON.stringify({ provider, apiKey, basePath, }), }) .then((res) => { if (!res.ok) { throw new Error(res.statusText || "Error finding custom models."); } return res.json(); }) .catch((e) => { console.error(e); return { models: [], error: e.message }; }); }, chats: async (offset = 0) => { return await fetch(`${API_BASE}/system/workspace-chats`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ offset }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return []; }); }, eventLogs: async (offset = 0) => { return await fetch(`${API_BASE}/system/event-logs`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ offset }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return []; }); }, clearEventLogs: async () => { return await fetch(`${API_BASE}/system/event-logs`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, deleteChat: async (chatId) => { return await fetch(`${API_BASE}/system/workspace-chats/${chatId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, exportChats: async (type = "csv", chatType = "workspace") => { const url = new URL(`${fullApiUrl()}/system/export-chats`); url.searchParams.append("type", encodeURIComponent(type)); url.searchParams.append("chatType", encodeURIComponent(chatType)); return await fetch(url, { method: "GET", headers: baseHeaders(), }) .then((res) => { if (res.ok) return res.text(); throw new Error(res.statusText); }) .catch((e) => { console.error(e); return null; }); }, updateUser: async (data) => { return await fetch(`${API_BASE}/system/user`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, dataConnectors: DataConnector, getSlashCommandPresets: async function () { return await fetch(`${API_BASE}/system/slash-command-presets`, { method: "GET", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not fetch slash command presets."); return res.json(); }) .then((res) => res.presets) .catch((e) => { console.error(e); return []; }); }, createSlashCommandPreset: async function (presetData) { return await fetch(`${API_BASE}/system/slash-command-presets`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(presetData), }) .then(async (res) => { const data = await res.json(); if (!res.ok) throw new Error( data.message || "Error creating slash command preset." ); return data; }) .then((res) => ({ preset: res.preset, error: null })) .catch((e) => { console.error(e); return { preset: null, error: e.message }; }); }, updateSlashCommandPreset: async function (presetId, presetData) { return await fetch(`${API_BASE}/system/slash-command-presets/${presetId}`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(presetData), }) .then(async (res) => { const data = await res.json(); if (!res.ok) throw new Error( data.message || "Could not update slash command preset." ); return data; }) .then((res) => ({ preset: res.preset, error: null })) .catch((e) => { console.error(e); return { preset: null, error: e.message }; }); }, deleteSlashCommandPreset: async function (presetId) { return await fetch(`${API_BASE}/system/slash-command-presets/${presetId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not delete slash command preset."); return true; }) .catch((e) => { console.error(e); return false; }); }, /** * Fetches the can view chat history state from local storage or the system settings. * Notice: This is an instance setting that cannot be changed via the UI and it is cached * in local storage for 24 hours. * @returns {Promise<{viewable: boolean, error: string | null}>} */ fetchCanViewChatHistory: async function () { const cache = window.localStorage.getItem( this.cacheKeys.canViewChatHistory ); const { viewable, lastFetched } = cache ? safeJsonParse(cache, { viewable: false, lastFetched: 0 }) : { viewable: false, lastFetched: 0 }; // Since this is an instance setting that cannot be changed via the UI, // we can cache it in local storage for a day and if the admin changes it, // they should instruct the users to clear local storage. if (typeof viewable === "boolean" && Date.now() - lastFetched < 8.64e7) return { viewable, error: null }; const res = await System.keys(); const isViewable = res?.DisableViewChatHistory === false; window.localStorage.setItem( this.cacheKeys.canViewChatHistory, JSON.stringify({ viewable: isViewable, lastFetched: Date.now() }) ); return { viewable: isViewable, error: null }; }, /** * Validates a temporary auth token and logs in the user if the token is valid. * @param {string} publicToken - the token to validate against * @returns {Promise<{valid: boolean, user: import("@prisma/client").users | null, token: string | null, message: string | null}>} */ simpleSSOLogin: async function (publicToken) { return fetch(`${API_BASE}/request-token/sso/simple?token=${publicToken}`, { method: "GET", }) .then(async (res) => { if (!res.ok) { const text = await res.text(); if (!text.startsWith("{")) throw new Error(text); return JSON.parse(text); } return await res.json(); }) .catch((e) => { console.error(e); return { valid: false, user: null, token: null, message: e.message }; }); }, /** * Fetches the app version from the server. * @returns {Promise<string | null>} The app version. */ fetchAppVersion: async function () { const cache = window.localStorage.getItem(this.cacheKeys.deploymentVersion); const { version, lastFetched } = cache ? safeJsonParse(cache, { version: null, lastFetched: 0 }) : { version: null, lastFetched: 0 }; if (!!version && Date.now() - lastFetched < 3_600_000) return version; const newVersion = await fetch(`${API_BASE}/utils/metrics`, { method: "GET", cache: "no-cache", }) .then((res) => { if (!res.ok) throw new Error("Could not fetch app version."); return res.json(); }) .then((res) => res?.appVersion) .catch(() => null); if (!newVersion) return null; window.localStorage.setItem( this.cacheKeys.deploymentVersion, JSON.stringify({ version: newVersion, lastFetched: Date.now() }) ); return newVersion; }, /** * Validates a SQL connection string. * @param {'postgresql'|'mysql'|'sql-server'} engine - the database engine identifier * @param {string} connectionString - the connection string to validate * @returns {Promise<{success: boolean, error: string | null}>} */ validateSQLConnection: async function (engine, connectionString) { return fetch(`${API_BASE}/system/validate-sql-connection`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ engine, connectionString }), }) .then((res) => res.json()) .catch((e) => { console.error("Failed to validate SQL connection:", e); return { success: false, error: e.message }; }); }, experimentalFeatures: { liveSync: LiveDocumentSync, agentPlugins: AgentPlugins, }, promptVariables: SystemPromptVariable, }; export default System;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/agentFlows.js
frontend/src/models/agentFlows.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const AgentFlows = { /** * Save a flow configuration * @param {string} name - Display name of the flow * @param {object} config - The configuration object for the flow * @param {string} [uuid] - Optional UUID for updating existing flow * @returns {Promise<{success: boolean, error: string | null, flow: {name: string, config: object, uuid: string} | null}>} */ saveFlow: async (name, config, uuid = null) => { return await fetch(`${API_BASE}/agent-flows/save`, { method: "POST", headers: { ...baseHeaders(), "Content-Type": "application/json", }, body: JSON.stringify({ name, config, uuid }), }) .then((res) => { if (!res.ok) throw new Error(res.error || "Failed to save flow"); return res; }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, flow: null, })); }, /** * List all available flows in the system * @returns {Promise<{success: boolean, error: string | null, flows: Array<{name: string, uuid: string, description: string, steps: Array}>}>} */ listFlows: async () => { return await fetch(`${API_BASE}/agent-flows/list`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, flows: [], })); }, /** * Get a specific flow by UUID * @param {string} uuid - The UUID of the flow to retrieve * @returns {Promise<{success: boolean, error: string | null, flow: {name: string, config: object, uuid: string} | null}>} */ getFlow: async (uuid) => { return await fetch(`${API_BASE}/agent-flows/${uuid}`, { method: "GET", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error(response.error || "Failed to get flow"); return res; }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, flow: null, })); }, /** * Execute a specific flow * @param {string} uuid - The UUID of the flow to run * @param {object} variables - Optional variables to pass to the flow * @returns {Promise<{success: boolean, error: string | null, results: object | null}>} */ // runFlow: async (uuid, variables = {}) => { // return await fetch(`${API_BASE}/agent-flows/${uuid}/run`, { // method: "POST", // headers: { // ...baseHeaders(), // "Content-Type": "application/json", // }, // body: JSON.stringify({ variables }), // }) // .then((res) => { // if (!res.ok) throw new Error(response.error || "Failed to run flow"); // return res; // }) // .then((res) => res.json()) // .catch((e) => ({ // success: false, // error: e.message, // results: null, // })); // }, /** * Delete a specific flow * @param {string} uuid - The UUID of the flow to delete * @returns {Promise<{success: boolean, error: string | null}>} */ deleteFlow: async (uuid) => { return await fetch(`${API_BASE}/agent-flows/${uuid}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error(response.error || "Failed to delete flow"); return res; }) .then((res) => res.json()) .catch((e) => ({ success: false, error: e.message, })); }, /** * Toggle a flow's active status * @param {string} uuid - The UUID of the flow to toggle * @param {boolean} active - The new active status * @returns {Promise<{success: boolean, error: string | null}>} */ toggleFlow: async (uuid, active) => { try { const result = await fetch(`${API_BASE}/agent-flows/${uuid}/toggle`, { method: "POST", headers: { ...baseHeaders(), "Content-Type": "application/json", }, body: JSON.stringify({ active }), }) .then((res) => { if (!res.ok) throw new Error(res.error || "Failed to toggle flow"); return res; }) .then((res) => res.json()); return { success: true, flow: result.flow }; } catch (error) { console.error("Failed to toggle flow:", error); return { success: false, error: error.message }; } }, }; export default AgentFlows;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/embed.js
frontend/src/models/embed.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const Embed = { embeds: async () => { return await fetch(`${API_BASE}/embeds`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res?.embeds || []) .catch((e) => { console.error(e); return []; }); }, newEmbed: async (data) => { return await fetch(`${API_BASE}/embeds/new`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { embed: null, error: e.message }; }); }, updateEmbed: async (embedId, data) => { return await fetch(`${API_BASE}/embed/update/${embedId}`, { method: "POST", headers: baseHeaders(), body: JSON.stringify(data), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, deleteEmbed: async (embedId) => { return await fetch(`${API_BASE}/embed/${embedId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (res.ok) return { success: true, error: null }; throw new Error(res.statusText); }) .catch((e) => { console.error(e); return { success: true, error: e.message }; }); }, chats: async (offset = 0) => { return await fetch(`${API_BASE}/embed/chats`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ offset }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return []; }); }, deleteChat: async (chatId) => { return await fetch(`${API_BASE}/embed/chats/${chatId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, }; export default Embed;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/workspace.js
frontend/src/models/workspace.js
import { API_BASE, fullApiUrl } from "@/utils/constants"; import { baseHeaders, safeJsonParse } from "@/utils/request"; import { fetchEventSource } from "@microsoft/fetch-event-source"; import WorkspaceThread from "@/models/workspaceThread"; import { v4 } from "uuid"; import { ABORT_STREAM_EVENT } from "@/utils/chat"; const Workspace = { workspaceOrderStorageKey: "anythingllm-workspace-order", /** The maximum percentage of the context window that can be used for attachments */ maxContextWindowLimit: 0.8, new: async function (data = {}) { const { workspace, message } = await fetch(`${API_BASE}/workspace/new`, { method: "POST", body: JSON.stringify(data), headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { return { workspace: null, message: e.message }; }); return { workspace, message }; }, update: async function (slug, data = {}) { const { workspace, message } = await fetch( `${API_BASE}/workspace/${slug}/update`, { method: "POST", body: JSON.stringify(data), headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { return { workspace: null, message: e.message }; }); return { workspace, message }; }, modifyEmbeddings: async function (slug, changes = {}) { const { workspace, message } = await fetch( `${API_BASE}/workspace/${slug}/update-embeddings`, { method: "POST", body: JSON.stringify(changes), // contains 'adds' and 'removes' keys that are arrays of filepaths headers: baseHeaders(), } ) .then((res) => res.json()) .catch((e) => { return { workspace: null, message: e.message }; }); return { workspace, message }; }, chatHistory: async function (slug) { const history = await fetch(`${API_BASE}/workspace/${slug}/chats`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res.history || []) .catch(() => []); return history; }, updateChatFeedback: async function (chatId, slug, feedback) { const result = await fetch( `${API_BASE}/workspace/${slug}/chat-feedback/${chatId}`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ feedback }), } ) .then((res) => res.ok) .catch(() => false); return result; }, deleteChats: async function (slug = "", chatIds = []) { return await fetch(`${API_BASE}/workspace/${slug}/delete-chats`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ chatIds }), }) .then((res) => { if (res.ok) return true; throw new Error("Failed to delete chats."); }) .catch((e) => { console.log(e); return false; }); }, deleteEditedChats: async function (slug = "", threadSlug = "", startingId) { if (!!threadSlug) return this.threads._deleteEditedChats(slug, threadSlug, startingId); return this._deleteEditedChats(slug, startingId); }, updateChatResponse: async function ( slug = "", threadSlug = "", chatId, newText ) { if (!!threadSlug) return this.threads._updateChatResponse( slug, threadSlug, chatId, newText ); return this._updateChatResponse(slug, chatId, newText); }, multiplexStream: async function ({ workspaceSlug, threadSlug = null, prompt, chatHandler, attachments = [], }) { if (!!threadSlug) return this.threads.streamChat( { workspaceSlug, threadSlug }, prompt, chatHandler, attachments ); return this.streamChat( { slug: workspaceSlug }, prompt, chatHandler, attachments ); }, streamChat: async function ({ slug }, message, handleChat, attachments = []) { const ctrl = new AbortController(); // Listen for the ABORT_STREAM_EVENT key to be emitted by the client // to early abort the streaming response. On abort we send a special `stopGeneration` // event to be handled which resets the UI for us to be able to send another message. // The backend response abort handling is done in each LLM's handleStreamResponse. window.addEventListener(ABORT_STREAM_EVENT, () => { ctrl.abort(); handleChat({ id: v4(), type: "stopGeneration" }); }); await fetchEventSource(`${API_BASE}/workspace/${slug}/stream-chat`, { method: "POST", body: JSON.stringify({ message, attachments }), headers: baseHeaders(), signal: ctrl.signal, openWhenHidden: true, async onopen(response) { if (response.ok) { return; // everything's good } else if ( response.status >= 400 && response.status < 500 && response.status !== 429 ) { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. Code ${response.status}`, }); ctrl.abort(); throw new Error("Invalid Status code response."); } else { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. Unknown Error.`, }); ctrl.abort(); throw new Error("Unknown error"); } }, async onmessage(msg) { const chatResult = safeJsonParse(msg.data, null); if (chatResult) handleChat(chatResult); }, onerror(err) { handleChat({ id: v4(), type: "abort", textResponse: null, sources: [], close: true, error: `An error occurred while streaming response. ${err.message}`, }); ctrl.abort(); throw new Error(); }, }); }, all: async function () { const workspaces = await fetch(`${API_BASE}/workspaces`, { method: "GET", headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res.workspaces || []) .catch(() => []); return workspaces; }, bySlug: async function (slug = "") { const workspace = await fetch(`${API_BASE}/workspace/${slug}`, { headers: baseHeaders(), }) .then((res) => res.json()) .then((res) => res.workspace) .catch(() => null); return workspace; }, delete: async function (slug) { const result = await fetch(`${API_BASE}/workspace/${slug}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.ok) .catch(() => false); return result; }, wipeVectorDb: async function (slug) { return await fetch(`${API_BASE}/workspace/${slug}/reset-vector-db`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => res.ok) .catch(() => false); }, uploadFile: async function (slug, formData) { const response = await fetch(`${API_BASE}/workspace/${slug}/upload`, { method: "POST", body: formData, headers: baseHeaders(), }); const data = await response.json(); return { response, data }; }, parseFile: async function (slug, formData) { const response = await fetch(`${API_BASE}/workspace/${slug}/parse`, { method: "POST", body: formData, headers: baseHeaders(), }); const data = await response.json(); return { response, data }; }, getParsedFiles: async function (slug, threadSlug = null) { const basePath = new URL(`${fullApiUrl()}/workspace/${slug}/parsed-files`); if (threadSlug) basePath.searchParams.set("threadSlug", threadSlug); const response = await fetch(basePath, { method: "GET", headers: baseHeaders(), }); const data = await response.json(); return data; }, uploadLink: async function (slug, link) { const response = await fetch(`${API_BASE}/workspace/${slug}/upload-link`, { method: "POST", body: JSON.stringify({ link }), headers: baseHeaders(), }); const data = await response.json(); return { response, data }; }, getSuggestedMessages: async function (slug) { return await fetch(`${API_BASE}/workspace/${slug}/suggested-messages`, { method: "GET", cache: "no-cache", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not fetch suggested messages."); return res.json(); }) .then((res) => res.suggestedMessages) .catch((e) => { console.error(e); return null; }); }, setSuggestedMessages: async function (slug, messages) { return fetch(`${API_BASE}/workspace/${slug}/suggested-messages`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ messages }), }) .then((res) => { if (!res.ok) { throw new Error( res.statusText || "Error setting suggested messages." ); } return { success: true, ...res.json() }; }) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, setPinForDocument: async function (slug, docPath, pinStatus) { return fetch(`${API_BASE}/workspace/${slug}/update-pin`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ docPath, pinStatus }), }) .then((res) => { if (!res.ok) { throw new Error( res.statusText || "Error setting pin status for document." ); } return true; }) .catch((e) => { console.error(e); return false; }); }, ttsMessage: async function (slug, chatId) { return await fetch(`${API_BASE}/workspace/${slug}/tts/${chatId}`, { method: "GET", cache: "no-cache", headers: baseHeaders(), }) .then((res) => { if (res.ok && res.status !== 204) return res.blob(); throw new Error("Failed to fetch TTS."); }) .then((blob) => (blob ? URL.createObjectURL(blob) : null)) .catch((e) => { return null; }); }, uploadPfp: async function (formData, slug) { return await fetch(`${API_BASE}/workspace/${slug}/upload-pfp`, { method: "POST", body: formData, headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Error uploading pfp."); return { success: true, error: null }; }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, fetchPfp: async function (slug) { return await fetch(`${API_BASE}/workspace/${slug}/pfp`, { method: "GET", cache: "no-cache", headers: baseHeaders(), }) .then((res) => { if (res.ok && res.status !== 204) return res.blob(); throw new Error("Failed to fetch pfp."); }) .then((blob) => (blob ? URL.createObjectURL(blob) : null)) .catch((e) => { // console.log(e); return null; }); }, removePfp: async function (slug) { return await fetch(`${API_BASE}/workspace/${slug}/remove-pfp`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (res.ok) return { success: true, error: null }; throw new Error("Failed to remove pfp."); }) .catch((e) => { console.log(e); return { success: false, error: e.message }; }); }, _updateChatResponse: async function (slug = "", chatId, newText) { return await fetch(`${API_BASE}/workspace/${slug}/update-chat`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ chatId, newText }), }) .then((res) => { if (res.ok) return true; throw new Error("Failed to update chat."); }) .catch((e) => { console.log(e); return false; }); }, _deleteEditedChats: async function (slug = "", startingId) { return await fetch(`${API_BASE}/workspace/${slug}/delete-edited-chats`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ startingId }), }) .then((res) => { if (res.ok) return true; throw new Error("Failed to delete chats."); }) .catch((e) => { console.log(e); return false; }); }, deleteChat: async (chatId) => { return await fetch(`${API_BASE}/workspace/workspace-chats/${chatId}`, { method: "PUT", headers: baseHeaders(), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { success: false, error: e.message }; }); }, forkThread: async function (slug = "", threadSlug = null, chatId = null) { return await fetch(`${API_BASE}/workspace/${slug}/thread/fork`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ threadSlug, chatId }), }) .then((res) => { if (!res.ok) throw new Error("Failed to fork thread."); return res.json(); }) .then((data) => data.newThreadSlug) .catch((e) => { console.error("Error forking thread:", e); return null; }); }, /** * Uploads and embeds a single file in a single call into a workspace * @param {string} slug - workspace slug * @param {FormData} formData * @returns {Promise<{response: {ok: boolean}, data: {success: boolean, error: string|null, document: {id: string, location:string}|null}}>} */ uploadAndEmbedFile: async function (slug, formData) { const response = await fetch( `${API_BASE}/workspace/${slug}/upload-and-embed`, { method: "POST", body: formData, headers: baseHeaders(), } ); const data = await response.json(); return { response, data }; }, deleteParsedFiles: async function (slug, fileIds = []) { const response = await fetch( `${API_BASE}/workspace/${slug}/delete-parsed-files`, { method: "DELETE", headers: baseHeaders(), body: JSON.stringify({ fileIds }), } ); return response.ok; }, embedParsedFile: async function (slug, fileId) { const response = await fetch( `${API_BASE}/workspace/${slug}/embed-parsed-file/${fileId}`, { method: "POST", headers: baseHeaders(), } ); const data = await response.json(); return { response, data }; }, /** * Deletes and un-embeds a single file in a single call from a workspace * @param {string} slug - workspace slug * @param {string} documentLocation - location of file eg: custom-documents/my-file-uuid.json * @returns {Promise<boolean>} */ deleteAndUnembedFile: async function (slug, documentLocation) { const response = await fetch( `${API_BASE}/workspace/${slug}/remove-and-unembed`, { method: "DELETE", body: JSON.stringify({ documentLocation }), headers: baseHeaders(), } ); return response.ok; }, /** * Reorders workspaces in the UI via localstorage on client side. * @param {string[]} workspaceIds - array of workspace ids to reorder * @returns {boolean} */ storeWorkspaceOrder: function (workspaceIds = []) { try { localStorage.setItem( this.workspaceOrderStorageKey, JSON.stringify(workspaceIds) ); return true; } catch (error) { console.error("Error reordering workspaces:", error); return false; } }, /** * Orders workspaces based on the order preference stored in localstorage * @param {Array} workspaces - array of workspace JSON objects * @returns {Array} - ordered workspaces */ orderWorkspaces: function (workspaces = []) { const workspaceOrderPreference = safeJsonParse(localStorage.getItem(this.workspaceOrderStorageKey)) || []; if (workspaceOrderPreference.length === 0) return workspaces; const orderedWorkspaces = Array.from(workspaces); orderedWorkspaces.sort( (a, b) => workspaceOrderPreference.indexOf(a.id) - workspaceOrderPreference.indexOf(b.id) ); return orderedWorkspaces; }, /** * Searches for workspaces and threads * @param {string} searchTerm * @returns {Promise<{workspaces: [{slug: string, name: string}], threads: [{slug: string, name: string, workspace: {slug: string, name: string}}]}}>} */ searchWorkspaceOrThread: async function (searchTerm) { const response = await fetch(`${API_BASE}/workspace/search`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ searchTerm }), }) .then((res) => res.json()) .catch((e) => { console.error(e); return { workspaces: [], threads: [] }; }); return response; }, threads: WorkspaceThread, }; export default Workspace;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/experimental/agentPlugins.js
frontend/src/models/experimental/agentPlugins.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const AgentPlugins = { toggleFeature: async function (hubId, active = false) { return await fetch( `${API_BASE}/experimental/agent-plugins/${hubId}/toggle`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ active }), } ) .then((res) => { if (!res.ok) throw new Error("Could not update agent plugin status."); return true; }) .catch((e) => { console.error(e); return false; }); }, updatePluginConfig: async function (hubId, updates = {}) { return await fetch( `${API_BASE}/experimental/agent-plugins/${hubId}/config`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ updates }), } ) .then((res) => { if (!res.ok) throw new Error("Could not update agent plugin config."); return true; }) .catch((e) => { console.error(e); return false; }); }, deletePlugin: async function (hubId) { return await fetch(`${API_BASE}/experimental/agent-plugins/${hubId}`, { method: "DELETE", headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not delete agent plugin config."); return true; }) .catch((e) => { console.error(e); return false; }); }, }; export default AgentPlugins;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/models/experimental/liveSync.js
frontend/src/models/experimental/liveSync.js
import { API_BASE } from "@/utils/constants"; import { baseHeaders } from "@/utils/request"; const LiveDocumentSync = { featureFlag: "experimental_live_file_sync", toggleFeature: async function (updatedStatus = false) { return await fetch(`${API_BASE}/experimental/toggle-live-sync`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ updatedStatus }), }) .then((res) => { if (!res.ok) throw new Error("Could not update status."); return true; }) .then((res) => res) .catch((e) => { console.error(e); return false; }); }, queues: async function () { return await fetch(`${API_BASE}/experimental/live-sync/queues`, { headers: baseHeaders(), }) .then((res) => { if (!res.ok) throw new Error("Could not update status."); return res.json(); }) .then((res) => res?.queues || []) .catch((e) => { console.error(e); return []; }); }, // Should be in Workspaces but is here for now while in preview setWatchStatusForDocument: async function (slug, docPath, watchStatus) { return fetch(`${API_BASE}/workspace/${slug}/update-watch-status`, { method: "POST", headers: baseHeaders(), body: JSON.stringify({ docPath, watchStatus }), }) .then((res) => { if (!res.ok) { throw new Error( res.statusText || "Error setting watch status for document." ); } return true; }) .catch((e) => { console.error(e); return false; }); }, }; export default LiveDocumentSync;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/toast.js
frontend/src/utils/toast.js
import { toast } from "react-toastify"; // Additional Configs (opts) // You can also pass valid ReactToast params to override the defaults. // clear: false, // Will dismiss all visible toasts before rendering next toast const showToast = (message, type = "default", opts = {}) => { const theme = localStorage?.getItem("theme") || "default"; const options = { position: "bottom-center", autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, theme: theme === "default" ? "dark" : "light", ...opts, }; if (opts?.clear === true) toast.dismiss(); switch (type) { case "success": toast.success(message, options); break; case "error": toast.error(message, options); break; case "info": toast.info(message, options); break; case "warning": toast.warn(message, options); break; default: toast(message, options); } }; export default showToast;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/types.js
frontend/src/utils/types.js
export function castToType(key, value) { const definitions = { openAiTemp: { cast: (value) => Number(value), }, openAiHistory: { cast: (value) => Number(value), }, similarityThreshold: { cast: (value) => parseFloat(value), }, topN: { cast: (value) => Number(value), }, }; if (!definitions.hasOwnProperty(key)) return value; return definitions[key].cast(value); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/keyboardShortcuts.js
frontend/src/utils/keyboardShortcuts.js
import paths from "./paths"; import { useEffect } from "react"; import { userFromStorage } from "./request"; import { TOGGLE_LLM_SELECTOR_EVENT } from "@/components/WorkspaceChat/ChatContainer/PromptInput/LLMSelector/action"; export const KEYBOARD_SHORTCUTS_HELP_EVENT = "keyboard-shortcuts-help"; export const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0; export const SHORTCUTS = { "⌘ + ,": { translationKey: "settings", action: () => { window.location.href = paths.settings.interface(); }, }, "⌘ + H": { translationKey: "home", action: () => { window.location.href = paths.home(); }, }, "⌘ + I": { translationKey: "workspaces", action: () => { window.location.href = paths.settings.workspaces(); }, }, "⌘ + K": { translationKey: "apiKeys", action: () => { window.location.href = paths.settings.apiKeys(); }, }, "⌘ + L": { translationKey: "llmPreferences", action: () => { window.location.href = paths.settings.llmPreference(); }, }, "⌘ + Shift + C": { translationKey: "chatSettings", action: () => { window.location.href = paths.settings.chat(); }, }, "⌘ + Shift + ?": { translationKey: "help", action: () => { window.dispatchEvent( new CustomEvent(KEYBOARD_SHORTCUTS_HELP_EVENT, { detail: { show: true }, }) ); }, }, F1: { translationKey: "help", action: () => { window.dispatchEvent( new CustomEvent(KEYBOARD_SHORTCUTS_HELP_EVENT, { detail: { show: true }, }) ); }, }, "⌘ + Shift + L": { translationKey: "showLLMSelector", action: () => { window.dispatchEvent(new Event(TOGGLE_LLM_SELECTOR_EVENT)); }, }, }; const LISTENERS = {}; const modifier = isMac ? "meta" : "ctrl"; for (const key in SHORTCUTS) { const listenerKey = key .replace("⌘", modifier) .replaceAll(" ", "") .toLowerCase(); LISTENERS[listenerKey] = SHORTCUTS[key].action; } // Convert keyboard event to shortcut key function getShortcutKey(event) { let key = ""; if (event.metaKey || event.ctrlKey) key += modifier + "+"; if (event.shiftKey) key += "shift+"; if (event.altKey) key += "alt+"; // Handle special keys if (event.key === ",") key += ","; // Handle question mark or slash for help shortcut else if (event.key === "?" || event.key === "/") key += "?"; else if (event.key === "Control") return ""; // Ignore Control key by itself else if (event.key === "Shift") return ""; // Ignore Shift key by itself else key += event.key.toLowerCase(); return key; } // Initialize keyboard shortcuts export function initKeyboardShortcuts() { function handleKeyDown(event) { const shortcutKey = getShortcutKey(event); if (!shortcutKey) return; const action = LISTENERS[shortcutKey]; if (action) { event.preventDefault(); action(); } } window.addEventListener("keydown", handleKeyDown); return () => window.removeEventListener("keydown", handleKeyDown); } function useKeyboardShortcuts() { useEffect(() => { // If there is a user and the user is not an admin do not register the event listener // since some of the shortcuts are only available in multi-user mode as admin const user = userFromStorage(); if (!!user && user?.role !== "admin") return; const cleanup = initKeyboardShortcuts(); return () => cleanup(); }, []); return; } export function KeyboardShortcutWrapper({ children }) { useKeyboardShortcuts(); return children; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/numbers.js
frontend/src/utils/numbers.js
const Formatter = Intl.NumberFormat("en", { notation: "compact" }); export function numberWithCommas(input) { return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } export function nFormatter(input) { return Formatter.format(input); } export function dollarFormat(input) { return new Intl.NumberFormat("en-us", { style: "currency", currency: "USD", }).format(input); } export function toPercentString(input = null, decimals = 0) { if (isNaN(input) || input === null) return ""; const percentage = Math.round(input * 100); return ( (decimals > 0 ? percentage.toFixed(decimals) : percentage.toString()) + "%" ); } export function humanFileSize(bytes, si = false, dp = 1) { const thresh = si ? 1000 : 1024; if (Math.abs(bytes) < thresh) { return bytes + " B"; } const units = si ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]; let u = -1; const r = 10 ** dp; do { bytes /= thresh; ++u; } while ( Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1 ); return bytes.toFixed(dp) + " " + units[u]; } export function milliToHms(milli = 0) { const d = parseFloat(milli) / 1_000.0; var h = Math.floor(d / 3600); var m = Math.floor((d % 3600) / 60); var s = parseFloat((d % 3600.0) % 60); var hDisplay = h >= 1 ? h + "h " : ""; var mDisplay = m >= 1 ? m + "m " : ""; var sDisplay = s >= 0.01 ? s.toFixed(2) + "s" : ""; return hDisplay + mDisplay + sDisplay; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/directories.js
frontend/src/utils/directories.js
import moment from "moment"; export function formatDate(dateString) { const date = isNaN(new Date(dateString).getTime()) ? new Date() : new Date(dateString); const options = { year: "numeric", month: "short", day: "numeric" }; const formattedDate = date.toLocaleDateString("en-US", options); return formattedDate; } export function formatDateTimeAsMoment(dateString, format = "LLL") { if (!dateString) return moment().format(format); try { return moment(dateString).format(format); } catch (error) { return moment().format(format); } } export function getFileExtension(path) { const hasExtension = path?.includes("."); if (!hasExtension) return "FILE"; const extension = path?.split(".")?.slice(-1)?.[0]; return extension?.toUpperCase() || "FILE"; } export function middleTruncate(str, n) { const fileExtensionPattern = /([^.]*)$/; const extensionMatch = str.includes(".") && str.match(fileExtensionPattern); if (str.length <= n) return str; if (extensionMatch && extensionMatch[1]) { const extension = extensionMatch[1]; const nameWithoutExtension = str.replace(fileExtensionPattern, ""); const truncationPoint = Math.max(0, n - extension.length - 4); const truncatedName = nameWithoutExtension.substr(0, truncationPoint) + "..." + nameWithoutExtension.slice(-4); return truncatedName + extension; } else { return str.length > n ? str.substr(0, n - 8) + "..." + str.slice(-4) : str; } }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/constants.js
frontend/src/utils/constants.js
export const API_BASE = import.meta.env.VITE_API_BASE || "/api"; export const ONBOARDING_SURVEY_URL = "https://onboarding.anythingllm.com"; export const AUTH_USER = "anythingllm_user"; export const AUTH_TOKEN = "anythingllm_authToken"; export const AUTH_TIMESTAMP = "anythingllm_authTimestamp"; export const COMPLETE_QUESTIONNAIRE = "anythingllm_completed_questionnaire"; export const SEEN_DOC_PIN_ALERT = "anythingllm_pinned_document_alert"; export const SEEN_WATCH_ALERT = "anythingllm_watched_document_alert"; export const LAST_VISITED_WORKSPACE = "anythingllm_last_visited_workspace"; export const USER_PROMPT_INPUT_MAP = "anythingllm_user_prompt_input_map"; export const APPEARANCE_SETTINGS = "anythingllm_appearance_settings"; export const OLLAMA_COMMON_URLS = [ "http://127.0.0.1:11434", "http://host.docker.internal:11434", "http://172.17.0.1:11434", ]; export const LMSTUDIO_COMMON_URLS = [ "http://localhost:1234/v1", "http://127.0.0.1:1234/v1", "http://host.docker.internal:1234/v1", "http://172.17.0.1:1234/v1", ]; export const KOBOLDCPP_COMMON_URLS = [ "http://127.0.0.1:5000/v1", "http://localhost:5000/v1", "http://host.docker.internal:5000/v1", "http://172.17.0.1:5000/v1", ]; export const LOCALAI_COMMON_URLS = [ "http://127.0.0.1:8080/v1", "http://localhost:8080/v1", "http://host.docker.internal:8080/v1", "http://172.17.0.1:8080/v1", ]; export const DPAIS_COMMON_URLS = [ "http://127.0.0.1:8553/v1/openai", "http://0.0.0.0:8553/v1/openai", "http://localhost:8553/v1/openai", "http://host.docker.internal:8553/v1/openai", ]; export const NVIDIA_NIM_COMMON_URLS = [ "http://127.0.0.1:8000/v1/version", "http://localhost:8000/v1/version", "http://host.docker.internal:8000/v1/version", "http://172.17.0.1:8000/v1/version", ]; export function fullApiUrl() { if (API_BASE !== "/api") return API_BASE; return `${window.location.origin}/api`; } export const POPUP_BROWSER_EXTENSION_EVENT = "NEW_BROWSER_EXTENSION_CONNECTION";
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/request.js
frontend/src/utils/request.js
import { AUTH_TOKEN, AUTH_USER } from "./constants"; // Sets up the base headers for all authenticated requests so that we are able to prevent // basic spoofing since a valid token is required and that cannot be spoofed export function userFromStorage() { const userString = window.localStorage.getItem(AUTH_USER); if (!userString) return null; return safeJsonParse(userString, null); } export function baseHeaders(providedToken = null) { const token = providedToken || window.localStorage.getItem(AUTH_TOKEN); return { Authorization: token ? `Bearer ${token}` : null, }; } export function safeJsonParse(jsonString, fallback = null) { try { if (jsonString === null || jsonString === undefined) return fallback; return JSON.parse(jsonString); } catch {} return fallback; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/paths.js
frontend/src/utils/paths.js
import { API_BASE } from "./constants"; function applyOptions(path, options = {}) { let updatedPath = path; if (!options || Object.keys(options).length === 0) return updatedPath; if (options.search) { const searchParams = new URLSearchParams(options.search); updatedPath += `?${searchParams.toString()}`; } return updatedPath; } export default { home: () => { return "/"; }, login: (noTry = false) => { return `/login${noTry ? "?nt=1" : ""}`; }, sso: { login: () => { return "/sso/simple"; }, }, onboarding: { home: () => { return "/onboarding"; }, survey: () => { return "/onboarding/survey"; }, llmPreference: () => { return "/onboarding/llm-preference"; }, embeddingPreference: () => { return "/onboarding/embedding-preference"; }, vectorDatabase: () => { return "/onboarding/vector-database"; }, userSetup: () => { return "/onboarding/user-setup"; }, dataHandling: () => { return "/onboarding/data-handling"; }, createWorkspace: () => { return "/onboarding/create-workspace"; }, }, github: () => { return "https://github.com/Mintplex-Labs/anything-llm"; }, discord: () => { return "https://discord.com/invite/6UyHPeGZAC"; }, docs: () => { return "https://docs.anythingllm.com"; }, chatModes: () => { return "https://docs.anythingllm.com/features/chat-modes"; }, mailToMintplex: () => { return "mailto:[email protected]"; }, hosting: () => { return "https://my.mintplexlabs.com/aio-checkout?product=anythingllm"; }, workspace: { chat: (slug, options = {}) => { return applyOptions(`/workspace/${slug}`, options); }, settings: { generalAppearance: (slug) => { return `/workspace/${slug}/settings/general-appearance`; }, chatSettings: function (slug, options = {}) { return applyOptions( `/workspace/${slug}/settings/chat-settings`, options ); }, vectorDatabase: (slug) => { return `/workspace/${slug}/settings/vector-database`; }, members: (slug) => { return `/workspace/${slug}/settings/members`; }, agentConfig: (slug) => { return `/workspace/${slug}/settings/agent-config`; }, }, thread: (wsSlug, threadSlug) => { return `/workspace/${wsSlug}/t/${threadSlug}`; }, }, apiDocs: () => { return `${API_BASE}/docs`; }, settings: { users: () => { return `/settings/users`; }, invites: () => { return `/settings/invites`; }, workspaces: () => { return `/settings/workspaces`; }, chats: () => { return "/settings/workspace-chats"; }, llmPreference: () => { return "/settings/llm-preference"; }, transcriptionPreference: () => { return "/settings/transcription-preference"; }, audioPreference: () => { return "/settings/audio-preference"; }, defaultSystemPrompt: () => { return "/settings/default-system-prompt"; }, embedder: { modelPreference: () => "/settings/embedding-preference", chunkingPreference: () => "/settings/text-splitter-preference", }, embeddingPreference: () => { return "/settings/embedding-preference"; }, vectorDatabase: () => { return "/settings/vector-database"; }, security: () => { return "/settings/security"; }, interface: () => { return "/settings/interface"; }, branding: () => { return "/settings/branding"; }, agentSkills: () => { return "/settings/agents"; }, chat: () => { return "/settings/chat"; }, apiKeys: () => { return "/settings/api-keys"; }, systemPromptVariables: () => "/settings/system-prompt-variables", logs: () => { return "/settings/event-logs"; }, privacy: () => { return "/settings/privacy"; }, embedChatWidgets: () => { return `/settings/embed-chat-widgets`; }, browserExtension: () => { return `/settings/browser-extension`; }, experimental: () => { return `/settings/beta-features`; }, mobileConnections: () => { return `/settings/mobile-connections`; }, }, agents: { builder: () => { return `/settings/agents/builder`; }, editAgent: (uuid) => { return `/settings/agents/builder/${uuid}`; }, }, communityHub: { website: () => { return import.meta.env.DEV ? `http://localhost:5173` : `https://hub.anythingllm.com`; }, /** * View more items of a given type on the community hub. * @param {string} type - The type of items to view more of. Should be kebab-case. * @returns {string} The path to view more items of the given type. */ viewMoreOfType: function (type) { return `${this.website()}/list/${type}`; }, viewItem: function (type, id) { return `${this.website()}/i/${type}/${id}`; }, trending: () => { return `/settings/community-hub/trending`; }, authentication: () => { return `/settings/community-hub/authentication`; }, importItem: (importItemId) => { return `/settings/community-hub/import-item${importItemId ? `?id=${importItemId}` : ""}`; }, profile: function (username) { if (username) return `${this.website()}/u/${username}`; return `${this.website()}/me`; }, noPrivateItems: () => { return "https://docs.anythingllm.com/community-hub/faq#no-private-items"; }, }, // TODO: Migrate all docs.anythingllm.com links to the new docs. documentation: { mobileIntroduction: () => { return "https://docs.anythingllm.com/mobile/overview"; }, contextWindows: () => { return "https://docs.anythingllm.com/chatting-with-documents/introduction#you-exceed-the-context-window---what-now"; }, }, experimental: { liveDocumentSync: { manage: () => `/settings/beta-features/live-document-sync/manage`, }, }, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/session.js
frontend/src/utils/session.js
import { API_BASE } from "./constants"; import { baseHeaders } from "./request"; // Checks current localstorage and validates the session based on that. export default async function validateSessionTokenForUser() { const isValidSession = await fetch(`${API_BASE}/system/check-token`, { method: "GET", cache: "default", headers: baseHeaders(), }) .then((res) => res.status === 200) .catch(() => false); return isValidSession; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/index.js
frontend/src/utils/chat/index.js
import { THREAD_RENAME_EVENT } from "@/components/Sidebar/ActiveWorkspaces/ThreadContainer"; import { emitAssistantMessageCompleteEvent } from "@/components/contexts/TTSProvider"; export const ABORT_STREAM_EVENT = "abort-chat-stream"; // For handling of chat responses in the frontend by their various types. export default function handleChat( chatResult, setLoadingResponse, setChatHistory, remHistory, _chatHistory, setWebsocket ) { const { uuid, textResponse, type, sources = [], error, close, animate = false, chatId = null, action = null, metrics = {}, } = chatResult; if (type === "abort" || type === "statusResponse") { setLoadingResponse(false); setChatHistory([ ...remHistory, { type, uuid, content: textResponse, role: "assistant", sources, closed: true, error, animate, pending: false, metrics, }, ]); _chatHistory.push({ type, uuid, content: textResponse, role: "assistant", sources, closed: true, error, animate, pending: false, metrics, }); } else if (type === "textResponse") { setLoadingResponse(false); setChatHistory([ ...remHistory, { uuid, content: textResponse, role: "assistant", sources, closed: close, error, animate: !close, pending: false, chatId, metrics, }, ]); _chatHistory.push({ uuid, content: textResponse, role: "assistant", sources, closed: close, error, animate: !close, pending: false, chatId, metrics, }); emitAssistantMessageCompleteEvent(chatId); } else if ( type === "textResponseChunk" || type === "finalizeResponseStream" ) { const chatIdx = _chatHistory.findIndex((chat) => chat.uuid === uuid); if (chatIdx !== -1) { const existingHistory = { ..._chatHistory[chatIdx] }; let updatedHistory; // If the response is finalized, we can set the loading state to false. // and append the metrics to the history. if (type === "finalizeResponseStream") { updatedHistory = { ...existingHistory, closed: close, animate: !close, pending: false, chatId, metrics, }; _chatHistory[chatIdx - 1] = { ..._chatHistory[chatIdx - 1], chatId }; // update prompt with chatID emitAssistantMessageCompleteEvent(chatId); setLoadingResponse(false); } else { updatedHistory = { ...existingHistory, content: existingHistory.content + textResponse, sources, error, closed: close, animate: !close, pending: false, chatId, metrics, }; } _chatHistory[chatIdx] = updatedHistory; } else { _chatHistory.push({ uuid, sources, error, content: textResponse, role: "assistant", closed: close, animate: !close, pending: false, chatId, metrics, }); } setChatHistory([..._chatHistory]); } else if (type === "agentInitWebsocketConnection") { setWebsocket(chatResult.websocketUUID); } else if (type === "stopGeneration") { const chatIdx = _chatHistory.length - 1; const existingHistory = { ..._chatHistory[chatIdx] }; const updatedHistory = { ...existingHistory, sources: [], closed: true, error: null, animate: false, pending: false, metrics, }; _chatHistory[chatIdx] = updatedHistory; setChatHistory([..._chatHistory]); setLoadingResponse(false); } // Action Handling via special 'action' attribute on response. if (action === "reset_chat") { // Chat was reset, keep reset message and clear everything else. setChatHistory([_chatHistory.pop()]); } // If thread was updated automatically based on chat prompt // then we can handle the updating of the thread here. if (action === "rename_thread") { if (!!chatResult?.thread?.slug && chatResult.thread.name) { window.dispatchEvent( new CustomEvent(THREAD_RENAME_EVENT, { detail: { threadSlug: chatResult.thread.slug, newName: chatResult.thread.name, }, }) ); } } } export function getWorkspaceSystemPrompt(workspace) { return ( workspace?.openAiPrompt ?? "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed." ); } export function chatQueryRefusalResponse(workspace) { return ( workspace?.queryRefusalResponse ?? "There is no relevant information in this workspace to answer your query." ); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/markdown.js
frontend/src/utils/chat/markdown.js
import { encode as HTMLEncode } from "he"; import markdownIt from "markdown-it"; import markdownItKatexPlugin from "./plugins/markdown-katex"; import Appearance from "@/models/appearance"; import hljs from "highlight.js"; import "./themes/github-dark.css"; import "./themes/github.css"; import { v4 } from "uuid"; // Register custom lanaguages import hljsDefineSvelte from "./hljs-libraries/svelte"; hljs.registerLanguage("svelte", hljsDefineSvelte); const markdown = markdownIt({ html: Appearance.get("renderHTML") ?? false, typographer: true, highlight: function (code, lang) { const uuid = v4(); const theme = window.localStorage.getItem("theme") === "light" ? "github" : "github-dark"; if (lang && hljs.getLanguage(lang)) { try { return ( `<div class="whitespace-pre-line w-full max-w-[65vw] hljs ${theme} light:border-solid light:border light:border-gray-700 rounded-lg relative font-mono font-normal text-sm text-slate-200"> <div class="w-full flex items-center sticky top-0 text-slate-200 light:bg-sky-800 bg-stone-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md -mt-5"> <div class="flex gap-2"> <code class="text-xs">${lang || ""}</code> </div> <button data-code-snippet data-code="code-${uuid}" class="flex items-center gap-x-1"> <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="h-3 w-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg> <p class="text-xs" style="margin: 0px;padding: 0px;">Copy block</p> </button> </div> <pre class="whitespace-pre-wrap px-4 pb-4">` + hljs.highlight(code, { language: lang, ignoreIllegals: true }).value + "</pre></div>" ); } catch (__) {} } return ( `<div class="whitespace-pre-line w-full max-w-[65vw] hljs ${theme} light:border-solid light:border light:border-gray-700 rounded-lg relative font-mono font-normal text-sm text-slate-200"> <div class="w-full flex items-center sticky top-0 text-slate-200 bg-stone-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md -mt-5"> <div class="flex gap-2"><code class="text-xs"></code></div> <button data-code-snippet data-code="code-${uuid}" class="flex items-center gap-x-1"> <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="h-3 w-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg> <p class="text-xs" style="margin: 0px;padding: 0px;">Copy block</p> </button> </div> <pre class="whitespace-pre-wrap px-4 pb-4">` + HTMLEncode(code) + "</pre></div>" ); }, }); // Add custom renderer for strong tags to handle theme colors markdown.renderer.rules.strong_open = () => '<strong class="text-white">'; markdown.renderer.rules.strong_close = () => "</strong>"; markdown.renderer.rules.link_open = (tokens, idx) => { const token = tokens[idx]; const href = token.attrs.find((attr) => attr[0] === "href"); return `<a href="${href[1]}" target="_blank" rel="noopener noreferrer">`; }; // Custom renderer for responsive images rendered in markdown markdown.renderer.rules.image = function (tokens, idx) { const token = tokens[idx]; const srcIndex = token.attrIndex("src"); const src = token.attrs[srcIndex][1]; const alt = token.content || ""; return `<div class="w-full max-w-[800px]"><img src="${src}" alt="${alt}" class="w-full h-auto" /></div>`; }; markdown.use(markdownItKatexPlugin); export default function renderMarkdown(text = "") { return markdown.render(text); }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/agent.js
frontend/src/utils/chat/agent.js
import { v4 } from "uuid"; import { safeJsonParse } from "../request"; import { saveAs } from "file-saver"; import { API_BASE } from "../constants"; import { useEffect, useState } from "react"; export const AGENT_SESSION_START = "agentSessionStart"; export const AGENT_SESSION_END = "agentSessionEnd"; const handledEvents = [ "statusResponse", "fileDownload", "awaitingFeedback", "wssFailure", "rechartVisualize", // Streaming events "reportStreamEvent", ]; export function websocketURI() { const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:"; if (API_BASE === "/api") return `${wsProtocol}//${window.location.host}`; return `${wsProtocol}//${new URL(import.meta.env.VITE_API_BASE).host}`; } export default function handleSocketResponse(socket, event, setChatHistory) { const data = safeJsonParse(event.data, null); if (data === null) return; // No message type is defined then this is a generic message // that we need to print to the user as a system response if (!data.hasOwnProperty("type") && !socket.supportsAgentStreaming) { return setChatHistory((prev) => { return [ ...prev.filter((msg) => !!msg.content), { uuid: v4(), content: data.content, role: "assistant", sources: [], closed: true, error: null, animate: false, pending: false, }, ]; }); } if (!handledEvents.includes(data.type) || !data.content) return; if (data.type === "reportStreamEvent") { // Enable agent streaming for the next message so we can handle streaming or non-streaming responses // If we get this message we know the provider supports agentic streaming socket.supportsAgentStreaming = true; return setChatHistory((prev) => { if (data.content.type === "removeStatusResponse") return [...prev.filter((msg) => msg.uuid !== data.content.uuid)]; const knownMessage = data.content.uuid ? prev.find((msg) => msg.uuid === data.content.uuid) : null; if (!knownMessage) { if (data.content.type === "fullTextResponse") { return [ ...prev.filter((msg) => !!msg.content), { uuid: data.content.uuid, type: "textResponse", content: data.content.content, role: "assistant", sources: [], closed: true, error: null, animate: false, pending: false, }, ]; } // Handle textResponseChunk initialization as textResponse instead of statusResponse. // Without this the first chunk creates a statusResponse (thought bubble) by falling through to the default case. // Providers like Gemini send large chunks and can complete in a single chunk before the update logic can convert it. // Other providers send many small chunks so the second chunk triggers the update logic to fix the type. if (data.content.type === "textResponseChunk") { return [ ...prev.filter((msg) => !!msg.content), { uuid: data.content.uuid, type: "textResponse", content: data.content.content, role: "assistant", sources: [], closed: true, error: null, animate: false, pending: false, }, ]; } return [ ...prev.filter((msg) => !!msg.content), { uuid: data.content.uuid, type: "statusResponse", content: data.content.content, role: "assistant", sources: [], closed: true, error: null, animate: false, pending: false, }, ]; } else { const { type, content, uuid } = data.content; // For tool call invocations, we need to update the existing message entirely since it is accumulated // and we dont know if the function will have arguments or not while streaming - so replace the existing message entirely if (type === "toolCallInvocation") { const knownMessage = prev.find((msg) => msg.uuid === uuid); if (!knownMessage) return [...prev, { uuid, type: "toolCallInvocation", content }]; // If the message is not known, add it to the end of the list return [ ...prev.filter((msg) => msg.uuid !== uuid), { ...knownMessage, content }, ]; // If the message is known, replace it with the new content } if (type === "textResponseChunk") { return prev .map((msg) => msg.uuid === uuid ? { ...msg, type: "textResponse", content: msg.content + content, } : msg?.content ? msg : null ) .filter((msg) => !!msg); } // Generic text response - will be put in the agent thought bubble return prev.map((msg) => msg.uuid === data.content.uuid ? { ...msg, content: msg.content + data.content.content } : msg ); } }); } if (data.type === "fileDownload") { saveAs(data.content.b64Content, data.content.filename ?? "unknown.txt"); return; } if (data.type === "rechartVisualize") { return setChatHistory((prev) => { return [ ...prev.filter((msg) => !!msg.content), { type: "rechartVisualize", uuid: v4(), content: data.content, role: "assistant", sources: [], closed: true, error: null, animate: false, pending: false, }, ]; }); } if (data.type === "wssFailure") { return setChatHistory((prev) => { return [ ...prev.filter((msg) => !!msg.content), { uuid: v4(), content: data.content, role: "assistant", sources: [], closed: true, error: data.content, animate: false, pending: false, }, ]; }); } return setChatHistory((prev) => { return [ ...prev.filter((msg) => !!msg.content), { uuid: v4(), type: data.type, content: data.content, role: "assistant", sources: [], closed: true, error: null, animate: data?.animate || false, pending: false, }, ]; }); } export function useIsAgentSessionActive() { const [activeSession, setActiveSession] = useState(false); useEffect(() => { function listenForAgentSession() { if (!window) return; window.addEventListener(AGENT_SESSION_START, () => setActiveSession(true) ); window.addEventListener(AGENT_SESSION_END, () => setActiveSession(false)); } listenForAgentSession(); }, []); return activeSession; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/purify.js
frontend/src/utils/chat/purify.js
import createDOMPurify from "dompurify"; const DOMPurify = createDOMPurify(window); DOMPurify.setConfig({ ADD_ATTR: ["target", "rel"], }); export default DOMPurify;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/hljs-libraries/svelte.js
frontend/src/utils/chat/hljs-libraries/svelte.js
export default function hljsDefineSvelte(hljs) { return { subLanguage: "xml", contains: [ hljs.COMMENT("<!--", "-->", { relevance: 10, }), { begin: /^(\s*)(<script(\s*context="module")?>)/gm, end: /^(\s*)(<\/script>)/gm, subLanguage: "javascript", excludeBegin: true, excludeEnd: true, contains: [ { begin: /^(\s*)(\$:)/gm, end: /(\s*)/gm, className: "keyword", }, ], }, { begin: /^(\s*)(<style.*>)/gm, end: /^(\s*)(<\/style>)/gm, subLanguage: "css", excludeBegin: true, excludeEnd: true, }, { begin: /\{/gm, end: /\}/gm, subLanguage: "javascript", contains: [ { begin: /[\{]/, end: /[\}]/, skip: true, }, { begin: /([#:\/@])(if|else|each|await|then|catch|debug|html)/gm, className: "keyword", relevance: 10, }, ], }, ], }; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/chat/plugins/markdown-katex.js
frontend/src/utils/chat/plugins/markdown-katex.js
import katex from "katex"; // Test if potential opening or closing delimieter // Assumes that there is a "$" at state.src[pos] function isValidDelim(state, pos) { var prevChar, nextChar, max = state.posMax, can_open = true, can_close = true; prevChar = pos > 0 ? state.src.charCodeAt(pos - 1) : -1; nextChar = pos + 1 <= max ? state.src.charCodeAt(pos + 1) : -1; // Only apply whitespace rules if we're dealing with $ delimiter if (state.src[pos] === "$") { if ( prevChar === 0x20 /* " " */ || prevChar === 0x09 /* \t */ || (nextChar >= 0x30 /* "0" */ && nextChar <= 0x39) /* "9" */ ) { can_close = false; } if (nextChar === 0x20 /* " " */ || nextChar === 0x09 /* \t */) { can_open = false; } } return { can_open: can_open, can_close: can_close, }; } function math_inline(state, silent) { var start, match, token, res, pos, esc_count; // Only process $ and \( delimiters for inline math if ( state.src[state.pos] !== "$" && (state.src[state.pos] !== "\\" || state.src[state.pos + 1] !== "(") ) { return false; } // Handle \( ... \) case separately if (state.src[state.pos] === "\\" && state.src[state.pos + 1] === "(") { start = state.pos + 2; match = start; while ((match = state.src.indexOf("\\)", match)) !== -1) { pos = match - 1; while (state.src[pos] === "\\") { pos -= 1; } if ((match - pos) % 2 == 1) { break; } match += 1; } if (match === -1) { if (!silent) { state.pending += "\\("; } state.pos = start; return true; } if (!silent) { token = state.push("math_inline", "math", 0); token.markup = "\\("; token.content = state.src.slice(start, match); } state.pos = match + 2; return true; } res = isValidDelim(state, state.pos); if (!res.can_open) { if (!silent) { state.pending += "$"; } state.pos += 1; return true; } // First check for and bypass all properly escaped delimieters // This loop will assume that the first leading backtick can not // be the first character in state.src, which is known since // we have found an opening delimieter already. start = state.pos + 1; match = start; while ((match = state.src.indexOf("$", match)) !== -1) { // Found potential $, look for escapes, pos will point to // first non escape when complete pos = match - 1; while (state.src[pos] === "\\") { pos -= 1; } // Even number of escapes, potential closing delimiter found if ((match - pos) % 2 == 1) { break; } match += 1; } // No closing delimiter found. Consume $ and continue. if (match === -1) { if (!silent) { state.pending += "$"; } state.pos = start; return true; } // Check if we have empty content, ie: $$. Do not parse. if (match - start === 0) { if (!silent) { state.pending += "$$"; } state.pos = start + 1; return true; } // Check for valid closing delimiter res = isValidDelim(state, match); if (!res.can_close) { if (!silent) { state.pending += "$"; } state.pos = start; return true; } if (!silent) { token = state.push("math_inline", "math", 0); token.markup = "$"; token.content = state.src.slice(start, match); } state.pos = match + 1; return true; } function math_block(state, start, end, silent) { var firstLine, lastLine, next, lastPos, found = false, token, pos = state.bMarks[start] + state.tShift[start], max = state.eMarks[start]; // Check for $$, \[, or standalone [ as opening delimiters if (pos + 1 > max) { return false; } let openDelim = state.src.slice(pos, pos + 2); let isDoubleDollar = openDelim === "$$"; let isLatexBracket = openDelim === "\\["; if (!isDoubleDollar && !isLatexBracket) { return false; } // Determine the closing delimiter and position adjustment let delimiter, posAdjust; if (isDoubleDollar) { delimiter = "$$"; posAdjust = 2; } else if (isLatexBracket) { delimiter = "\\]"; posAdjust = 2; } pos += posAdjust; firstLine = state.src.slice(pos, max); if (silent) { return true; } if (firstLine.trim().slice(-delimiter.length) === delimiter) { // Single line expression firstLine = firstLine.trim().slice(0, -delimiter.length); found = true; } for (next = start; !found; ) { next++; if (next >= end) { break; } pos = state.bMarks[next] + state.tShift[next]; max = state.eMarks[next]; if (pos < max && state.tShift[next] < state.blkIndent) { // non-empty line with negative indent should stop the list: break; } if ( state.src.slice(pos, max).trim().slice(-delimiter.length) === delimiter ) { lastPos = state.src.slice(0, max).lastIndexOf(delimiter); lastLine = state.src.slice(pos, lastPos); found = true; } } state.line = next + 1; token = state.push("math_block", "math", 0); token.block = true; token.content = (firstLine && firstLine.trim() ? firstLine + "\n" : "") + state.getLines(start + 1, next, state.tShift[start], true) + (lastLine && lastLine.trim() ? lastLine : ""); token.map = [start, state.line]; token.markup = delimiter; return true; } export default function math_plugin(md, options) { // Default options options = options || {}; var katexInline = function (latex) { options.displayMode = false; try { latex = latex .replace(/^\[(.*)\]$/, "$1") .replace(/^\\\((.*)\\\)$/, "$1") .replace(/^\\\[(.*)\\\]$/, "$1"); return katex.renderToString(latex, options); } catch (error) { if (options.throwOnError) { console.log(error); } return latex; } }; var inlineRenderer = function (tokens, idx) { return katexInline(tokens[idx].content); }; var katexBlock = function (latex) { options.displayMode = true; try { // Remove surrounding delimiters if present latex = latex.replace(/^\[(.*)\]$/, "$1").replace(/^\\\[(.*)\\\]$/, "$1"); return "<p>" + katex.renderToString(latex, options) + "</p>"; } catch (error) { if (options.throwOnError) { console.log(error); } return latex; } }; var blockRenderer = function (tokens, idx) { return katexBlock(tokens[idx].content) + "\n"; }; md.inline.ruler.after("escape", "math_inline", math_inline); md.block.ruler.after("blockquote", "math_block", math_block, { alt: ["paragraph", "reference", "blockquote", "list"], }); md.renderer.rules.math_inline = inlineRenderer; md.renderer.rules.math_block = blockRenderer; }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/piperTTS/index.js
frontend/src/utils/piperTTS/index.js
import showToast from "../toast"; export default class PiperTTSClient { static _instance; voiceId = "en_US-hfc_female-medium"; worker = null; constructor({ voiceId } = { voiceId: null }) { if (PiperTTSClient._instance) { this.voiceId = voiceId !== null ? voiceId : this.voiceId; return PiperTTSClient._instance; } this.voiceId = voiceId !== null ? voiceId : this.voiceId; PiperTTSClient._instance = this; return this; } #getWorker() { if (!this.worker) this.worker = new Worker(new URL("./worker.js", import.meta.url), { type: "module", }); return this.worker; } /** * Get all available voices for a client * @returns {Promise<import("@mintplex-labs/piper-tts-web/dist/types").Voice[]}>} */ static async voices() { const tmpWorker = new Worker(new URL("./worker.js", import.meta.url), { type: "module", }); tmpWorker.postMessage({ type: "voices" }); return new Promise((resolve, reject) => { let timeout = null; const handleMessage = (event) => { if (event.data.type !== "voices") { console.log("PiperTTSWorker debug event:", event.data); return; } resolve(event.data.voices); tmpWorker.removeEventListener("message", handleMessage); timeout && clearTimeout(timeout); tmpWorker.terminate(); }; timeout = setTimeout(() => { reject("TTS Worker timed out."); }, 30_000); tmpWorker.addEventListener("message", handleMessage); }); } static async flush() { const tmpWorker = new Worker(new URL("./worker.js", import.meta.url), { type: "module", }); tmpWorker.postMessage({ type: "flush" }); return new Promise((resolve, reject) => { let timeout = null; const handleMessage = (event) => { if (event.data.type !== "flush") { console.log("PiperTTSWorker debug event:", event.data); return; } resolve(event.data.flushed); tmpWorker.removeEventListener("message", handleMessage); timeout && clearTimeout(timeout); tmpWorker.terminate(); }; timeout = setTimeout(() => { reject("TTS Worker timed out."); }, 30_000); tmpWorker.addEventListener("message", handleMessage); }); } /** * Runs prediction via webworker so we can get an audio blob back. * @returns {Promise<{blobURL: string|null, error: string|null}>} objectURL blob: type. */ async waitForBlobResponse() { return new Promise((resolve) => { let timeout = null; const handleMessage = (event) => { if (event.data.type === "error") { this.worker.removeEventListener("message", handleMessage); timeout && clearTimeout(timeout); return resolve({ blobURL: null, error: event.data.message }); } if (event.data.type !== "result") { console.log("PiperTTSWorker debug event:", event.data); return; } resolve({ blobURL: URL.createObjectURL(event.data.audio), error: null, }); this.worker.removeEventListener("message", handleMessage); timeout && clearTimeout(timeout); }; timeout = setTimeout(() => { resolve({ blobURL: null, error: "PiperTTSWorker Worker timed out." }); }, 30_000); this.worker.addEventListener("message", handleMessage); }); } async getAudioBlobForText(textToSpeak, voiceId = null) { const primaryWorker = this.#getWorker(); primaryWorker.postMessage({ type: "init", text: String(textToSpeak), voiceId: voiceId ?? this.voiceId, // Don't reference WASM because in the docker image // the user will be connected to internet (mostly) // and it bloats the app size on the frontend or app significantly // and running the docker image fully offline is not an intended use-case unlike the app. }); const { blobURL, error } = await this.waitForBlobResponse(); if (!!error) { showToast( `Could not generate voice prediction. Error: ${error}`, "error", { clear: true } ); return; } return blobURL; } }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/utils/piperTTS/worker.js
frontend/src/utils/piperTTS/worker.js
import * as TTS from "@mintplex-labs/piper-tts-web"; /** @type {import("@mintplexlabs/piper-web-tts").TtsSession | null} */ let PIPER_SESSION = null; /** * @typedef PredictionRequest * @property {('init')} type * @property {string} text - the text to inference on * @property {import('@mintplexlabs/piper-web-tts').VoiceId} voiceId - the voiceID key to use. * @property {string|null} baseUrl - the base URL to fetch WASMs from. */ /** * @typedef PredictionRequestResponse * @property {('result')} type * @property {Blob} audio - the text to inference on */ /** * @typedef VoicesRequest * @property {('voices')} type * @property {string|null} baseUrl - the base URL to fetch WASMs from. */ /** * @typedef VoicesRequestResponse * @property {('voices')} type * @property {[import("@mintplex-labs/piper-tts-web/dist/types")['Voice']]} voices - available voices in array */ /** * @typedef FlushRequest * @property {('flush')} type */ /** * @typedef FlushRequestResponse * @property {('flush')} type * @property {true} flushed */ /** * Web worker for generating client-side PiperTTS predictions * @param {MessageEvent<PredictionRequest | VoicesRequest | FlushRequest>} event - The event object containing the prediction request * @returns {Promise<PredictionRequestResponse|VoicesRequestResponse|FlushRequestResponse>} */ async function main(event) { if (event.data.type === "voices") { const stored = await TTS.stored(); const voices = await TTS.voices(); voices.forEach((voice) => (voice.is_stored = stored.includes(voice.key))); self.postMessage({ type: "voices", voices }); return; } if (event.data.type === "flush") { await TTS.flush(); self.postMessage({ type: "flush", flushed: true }); return; } if (event.data?.type !== "init") return; if (!PIPER_SESSION) { PIPER_SESSION = new TTS.TtsSession({ voiceId: event.data.voiceId, progress: (e) => self.postMessage(JSON.stringify(e)), logger: (msg) => self.postMessage(msg), ...(!!event.data.baseUrl ? { wasmPaths: { onnxWasm: `${event.data.baseUrl}/piper/ort/`, piperData: `${event.data.baseUrl}/piper/piper_phonemize.data`, piperWasm: `${event.data.baseUrl}/piper/piper_phonemize.wasm`, }, } : {}), }); } if (event.data.voiceId && PIPER_SESSION.voiceId !== event.data.voiceId) PIPER_SESSION.voiceId = event.data.voiceId; PIPER_SESSION.predict(event.data.text) .then((res) => { if (res instanceof Blob) { self.postMessage({ type: "result", audio: res }); return; } }) .catch((error) => { self.postMessage({ type: "error", message: error.message, error }); // Will be an error. }); } self.addEventListener("message", main);
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/resources.js
frontend/src/locales/resources.js
// Looking for a language to translate AnythingLLM to? // Create a `common.js` file in the language's ISO code https://www.w3.org/International/O-charset-lang.html // eg: Spanish => es/common.js // eg: French => fr/common.js // You should copy the en/common.js file as your template and just translate every string in there. // By default, we try to see what the browsers native language is set to and use that. If a string // is not defined or is null in the translation file, it will fallback to the value in the en/common.js file // RULES: // The EN translation file is the ground-truth for what keys and options are available. DO NOT add a special key // to a specific language file as this will break the other languages. Any new keys should be added to english // and the language file you are working on. // Contributor Notice: If you are adding a translation you MUST locally run `yarn verify:translations` from the root prior to PR. // please do not submit PR's without first verifying this test passes as it will tell you about missing keys or values // from the primary dictionary. import English from "./en/common.js"; import Korean from "./ko/common.js"; import Spanish from "./es/common.js"; import French from "./fr/common.js"; import Mandarin from "./zh/common.js"; import German from "./de/common.js"; import Estonian from "./et/common.js"; import Russian from "./ru/common.js"; import Italian from "./it/common.js"; import Portuguese from "./pt_BR/common.js"; import Hebrew from "./he/common.js"; import Dutch from "./nl/common.js"; import Vietnamese from "./vn/common.js"; import TraditionalChinese from "./zh_TW/common.js"; import Farsi from "./fa/common.js"; import Turkish from "./tr/common.js"; import Arabic from "./ar/common.js"; import Danish from "./da/common.js"; import Japanese from "./ja/common.js"; import Lativian from "./lv/common.js"; import Polish from "./pl/common.js"; import Romanian from "./ro/common.js"; export const defaultNS = "common"; export const resources = { en: { common: English, }, zh: { common: Mandarin, }, "zh-tw": { common: TraditionalChinese, }, es: { common: Spanish, }, de: { common: German, }, fr: { common: French, }, ko: { common: Korean, }, et: { common: Estonian, }, ru: { common: Russian, }, it: { common: Italian, }, pt: { common: Portuguese, }, he: { common: Hebrew, }, nl: { common: Dutch, }, vi: { common: Vietnamese, }, fa: { common: Farsi, }, tr: { common: Turkish, }, ar: { common: Arabic, }, da: { common: Danish, }, ja: { common: Japanese, }, lv: { common: Lativian, }, pl: { common: Polish, }, ro: { common: Romanian, }, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/de/common.js
frontend/src/locales/de/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Willkommen bei", getStarted: "Jetzt starten", }, llm: { title: "LLM-Einstellung", description: "AnythingLLM ist mit vielen LLM-Anbietern kompatibel. Der ausgewählte Dienst wird für die Chats verwendet.", }, userSetup: { title: "Benutzer Setup", description: "Konfigurieren Sie Ihre Benutzereinstellungen.", howManyUsers: "Wie viele Benutzer werden diese Instanz verwenden?", justMe: "Nur ich", myTeam: "Mein Team", instancePassword: "Passwort für diese Instanz", setPassword: "Möchten Sie ein Passwort einrichten?", passwordReq: "Das Passwort muss mindestens 8 Zeichen enthalten.", passwordWarn: "Dieses Passwort sollte sicher aufbewahrt werden, da Wiederherstellung nicht möglich ist.", adminUsername: "Benutzername des Admin-Accounts", adminUsernameReq: "Der Benutzername muss aus mindestens 6 Zeichen bestehen und darf ausschließlich Kleinbuchstaben, Ziffern, Unter- und Bindestriche enthalten – keine Leerzeichen", adminPassword: "Passwort des Admin-Accounts", adminPasswordReq: "Das Passwort muss mindestens 8 Zeichen enthalten.", teamHint: "Zu Beginn sind Sie der einzige Admin. Nach der Einrichtung können Sie weitere Benutzer oder Admins einladen. Verlieren Sie Ihr Passwort nicht – nur Admins können Passwörter zurücksetzen.", }, data: { title: "Datenverarbeitung & Datenschutz", description: "Wir setzen uns für Transparenz und Kontrolle im Umgang mit Ihren persönlichen Daten ein.", settingsHint: "Diese Einstellungen können jederzeit in den Einstellungen angepasst werden.", }, survey: { title: "Willkommen bei AnythingLLM", description: "Helfen Sie uns, AnythingLLM an Ihre Bedürfnisse anzupassen. (Optional)", email: "Wie lautet Ihre E-Mail-Adresse?", useCase: "Wofür möchten Sie AnythingLLM verwenden?", useCaseWork: "Beruflich", useCasePersonal: "Privat", useCaseOther: "Sonstiges", comment: "Wie haben Sie von AnythingLLM erfahren?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. – Teilen Sie uns mit, wie Sie uns entdeckt haben!", skip: "Umfrage überspringen", thankYou: "Vielen Dank für Ihr Feedback!", }, workspace: { title: "Ersten Workspace erstellen", description: "Erstellen Sie Ihren ersten Workspace und starten Sie AnythingLLM.", }, }, common: { "workspaces-name": "Namen der Workspaces", error: "Fehler", success: "Erfolg", user: "Benutzer", selection: "Modellauswahl", saving: "Speichern...", save: "Änderungen speichern", previous: "Vorherige Seite", next: "Nächste Seite", optional: "Optional", yes: "Ja", no: "Nein", search: null, }, settings: { title: "Instanzeinstellungen", system: "Allgemeine Einstellungen", invites: "Einladungen", users: "Benutzer", workspaces: "Workspaces", "workspace-chats": "Workspace-Chats", customization: "Personalisierung", interface: "UI-Einstellungen", branding: "Branding & Whitelabeling", chat: "Chat", "api-keys": "Entwickler-API", llm: "LLM", transcription: "Transkription", embedder: "Einbettung", "text-splitting": "Textsplitting & Chunking", "voice-speech": "Sprache & Sprachausgabe", "vector-database": "Vektordatenbank", embeds: "Chat-Einbettung", "embed-chats": "Chat-Einbettungsverlauf", security: "Sicherheit", "event-logs": "Ereignisprotokolle", privacy: "Datenschutz & Datenverarbeitung", "ai-providers": "KI-Anbieter", "agent-skills": "Agentenfähigkeiten", admin: "Administrator", tools: "Werkzeuge", "experimental-features": "Experimentelle Funktionen", contact: "Support kontaktieren", "browser-extension": "Browser-Extension", "system-prompt-variables": "Systempromptvariablen", }, login: { "multi-user": { welcome: "Willkommen bei", "placeholder-username": "Benutzername", "placeholder-password": "Passwort", login: "Anmelden", validating: "Überprüfung...", "forgot-pass": "Passwort vergessen", reset: "Zurücksetzen", }, "sign-in": { start: "Melden Sie sich bei Ihrem", end: "Konto an.", }, "password-reset": { title: "Passwort zurücksetzen", description: "Geben Sie die erforderlichen Informationen unten ein, um Ihr Passwort zurückzusetzen.", "recovery-codes": "Wiederherstellungscodes", "recovery-code": "Wiederherstellungscode {{index}}", "back-to-login": "Zurück zur Anmeldung", }, }, "main-page": { noWorkspaceError: "Bitte erstellen Sie einen Workspace, bevor Sie einen Chat beginnen.", checklist: { title: "Erste Schritte", tasksLeft: "Aufgaben übrig", completed: "Sie sind auf dem Weg, ein AnythingLLM-Experte zu werden!", dismiss: "schließen", tasks: { create_workspace: { title: "Einen Workspace erstellen", description: "Erstellen Sie Ihren ersten Workspace, um zu beginnen", action: "Erstellen", }, send_chat: { title: "Einen Chat senden", description: "Starten Sie ein Gespräch mit Ihrem KI-Assistenten", action: "Chat", }, embed_document: { title: "Ein Dokument einbetten", description: "Fügen Sie Ihr erstes Dokument zu Ihrem Workspace hinzu", action: "Einbetten", }, setup_system_prompt: { title: "Ein System-Prompt einrichten", description: "Konfigurieren Sie das Verhalten Ihres KI-Assistenten", action: "Einrichten", }, define_slash_command: { title: "Einen Slash-Befehl definieren", description: "Erstellen Sie benutzerdefinierte Befehle für Ihren Assistenten", action: "Definieren", }, visit_community: { title: "Community Hub besuchen", description: "Entdecken Sie Community-Ressourcen und Vorlagen", action: "Stöbern", }, }, }, quickLinks: { title: "Schnellzugriffe", sendChat: "Chat senden", embedDocument: "Dokument einbetten", createWorkspace: "Workspace erstellen", }, exploreMore: { title: "Weitere Funktionen erkunden", features: { customAgents: { title: "Benutzerdefinierte KI-Agenten", description: "Erstellen Sie leistungsstarke KI-Agenten und Automatisierungen ohne Code.", primaryAction: "Chatten mit @agent", secondaryAction: "Einen Agenten-Flow erstellen", }, slashCommands: { title: "Slash-Befehle", description: "Sparen Sie Zeit und fügen Sie Eingabeaufforderungen mit benutzerdefinierten Slash-Befehlen ein.", primaryAction: "Einen Slash-Befehl erstellen", secondaryAction: "Im Hub erkunden", }, systemPrompts: { title: "System-Prompts", description: "Ändern Sie die System-Eingabeaufforderung, um die KI-Antworten eines Workspaces anzupassen.", primaryAction: "Eine System-Eingabeaufforderung ändern", secondaryAction: "Eingabevariablen verwalten", }, }, }, announcements: { title: "Updates & Ankündigungen", }, resources: { title: "Ressourcen", links: { docs: "Dokumentation", star: "Auf Github mit Stern versehen", }, keyboardShortcuts: "Tastaturkürzel", }, }, "new-workspace": { title: "Neuer Workspace", placeholder: "Mein Workspace", }, "workspaces—settings": { general: "Allgemeine Einstellungen", chat: "Chat-Einstellungen", vector: "Vektordatenbank", members: "Mitglieder", agent: "Agentenkonfiguration", }, general: { vector: { title: "Vektoranzahl", description: "Gesamtanzahl der Vektoren in Ihrer Vektordatenbank.", }, names: { description: "Dies ändert nur den Anzeigenamen Ihres Workspace.", }, message: { title: "Vorgeschlagene Chat-Nachrichten", description: "Passen Sie die Nachrichten an, die Ihren Workspace-Benutzern vorgeschlagen werden.", add: "Neue Nachricht hinzufügen", save: "Nachrichten speichern", heading: "Erkläre mir", body: "die Vorteile von AnythingLLM", }, pfp: { title: "Assistent-Profilbild", description: "Passen Sie das Profilbild des Assistenten für diesen Workspace an.", image: "Workspace-Bild", remove: "Workspace-Bild entfernen", }, delete: { title: "Workspace löschen", description: "Löschen Sie diesen Workspace und alle seine Daten. Dies löscht den Workspace für alle Benutzer.", delete: "Workspace löschen", deleting: "Workspace wird gelöscht...", "confirm-start": "Sie sind dabei, Ihren gesamten", "confirm-end": "Workspace zu löschen. Dies entfernt alle Vektoreinbettungen in Ihrer Vektordatenbank.\n\nDie ursprünglichen Quelldateien bleiben unberührt. Diese Aktion ist irreversibel.", }, }, chat: { llm: { title: "Workspace-LLM-Anbieter", description: "Der spezifische LLM-Anbieter und das Modell, das für diesen Workspace verwendet wird. Standardmäßig wird der System-LLM-Anbieter und dessen Einstellungen verwendet.", search: "Durchsuchen Sie alle LLM-Anbieter", }, model: { title: "Workspace-Chat-Modell", description: "Das spezifische Chat-Modell, das für diesen Workspace verwendet wird. Wenn leer, wird die System-LLM-Präferenz verwendet.", wait: "-- warte auf Modelle --", }, mode: { title: "Chat-Modus", chat: { title: "Chat", "desc-start": "wird Antworten mit dem allgemeinen Wissen des LLM", and: "und", "desc-end": "gefundenem Dokumentenkontext liefern.", }, query: { title: "Abfrage", "desc-start": "wird Antworten", only: "nur", "desc-end": "liefern, wenn Dokumentenkontext gefunden wird.", }, }, history: { title: "Chat-Verlauf", "desc-start": "Die Anzahl der vorherigen Chats, die in das Kurzzeitgedächtnis der Antwort einbezogen werden.", recommend: "Empfohlen 20. ", "desc-end": "Alles über 45 führt wahrscheinlich zu kontinuierlichen Chat-Ausfällen, abhängig von der Nachrichtengröße.", }, prompt: { title: "Prompt", description: "Der Prompt, der in diesem Workspace verwendet wird. Definieren Sie den Kontext und die Anweisungen für die KI, um eine Antwort zu generieren. Sie sollten einen sorgfältig formulierten Prompt bereitstellen, damit die KI eine relevante und genaue Antwort generieren kann.", history: { title: "Systemprompt-Historie", clearAll: "Alles löschen", noHistory: "Keine Einträge im Verlauf vorhanden", restore: "Wiederherstellen", delete: "Löschen", publish: "Im Community Hub veröffentlichen", deleteConfirm: "Möchten Sie diesen Eintrag wirklich löschen?", clearAllConfirm: "Möchten Sie wirklich alle Einträge löschen? Diese Aktion ist unwiderruflich.", expand: "Ausklappen", }, }, refusal: { title: "Abfragemodus-Ablehnungsantwort", "desc-start": "Wenn im", query: "Abfrage", "desc-end": "modus, möchten Sie vielleicht eine benutzerdefinierte Ablehnungsantwort zurückgeben, wenn kein Kontext gefunden wird.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM-Temperatur", "desc-start": 'Diese Einstellung steuert, wie "kreativ" Ihre LLM-Antworten sein werden.', "desc-end": "Je höher die Zahl, desto kreativer. Bei einigen Modellen kann dies zu unverständlichen Antworten führen, wenn sie zu hoch eingestellt ist.", hint: "Die meisten LLMs haben verschiedene akzeptable Bereiche gültiger Werte. Konsultieren Sie Ihren LLM-Anbieter für diese Informationen.", }, }, "vector-workspace": { identifier: "Vektordatenbank-Identifikator", snippets: { title: "Maximale Kontext-Snippets", description: "Diese Einstellung steuert die maximale Anzahl von Kontext-Snippets, die pro Chat oder Abfrage an das LLM gesendet werden.", recommend: "Empfohlen: 4", }, doc: { title: "Dokumentähnlichkeitsschwelle", description: "Der minimale Ähnlichkeitswert, der erforderlich ist, damit eine Quelle als relevant für den Chat betrachtet wird. Je höher die Zahl, desto ähnlicher muss die Quelle dem Chat sein.", zero: "Keine Einschränkung", low: "Niedrig (Ähnlichkeitswert ≥ .25)", medium: "Mittel (Ähnlichkeitswert ≥ .50)", high: "Hoch (Ähnlichkeitswert ≥ .75)", }, reset: { reset: "Vektordatenbank zurücksetzen", resetting: "Vektoren werden gelöscht...", confirm: "Sie sind dabei, die Vektordatenbank dieses Workspace zurückzusetzen. Dies entfernt alle derzeit eingebetteten Vektoreinbettungen.\n\nDie ursprünglichen Quelldateien bleiben unberührt. Diese Aktion ist irreversibel.", error: "Die Workspace-Vektordatenbank konnte nicht zurückgesetzt werden!", success: "Die Workspace-Vektordatenbank wurde zurückgesetzt!", }, }, agent: { provider: { title: "Workspace-Agent LLM-Anbieter", description: "Der spezifische LLM-Anbieter und das Modell, das für den @agent-Agenten dieses Workspace verwendet wird.", }, mode: { chat: { title: "Workspace-Agent Chat-Modell", description: "Das spezifische Chat-Modell, das für den @agent-Agenten dieses Workspace verwendet wird.", }, title: "Workspace-Agent-Modell", description: "Das spezifische LLM-Modell, das für den @agent-Agenten dieses Workspace verwendet wird.", wait: "-- warte auf Modelle --", }, skill: { title: "Standard-Agentenfähigkeiten", description: "Verbessern Sie die natürlichen Fähigkeiten des Standard-Agenten mit diesen vorgefertigten Fähigkeiten. Diese Einrichtung gilt für alle Workspaces.", rag: { title: "RAG & Langzeitgedächtnis", description: 'Erlauben Sie dem Agenten, Ihre lokalen Dokumente zu nutzen, um eine Abfrage zu beantworten oder bitten Sie den Agenten, Inhalte für den Langzeitabruf zu "merken".', }, view: { title: "Dokumente anzeigen & zusammenfassen", description: "Erlauben Sie dem Agenten, den Inhalt der aktuell eingebetteten Workspace-Dateien aufzulisten und zusammenzufassen.", }, scrape: { title: "Websites durchsuchen", description: "Erlauben Sie dem Agenten, Websites zu besuchen und deren Inhalt zu extrahieren.", }, generate: { title: "Diagramme generieren", description: "Aktivieren Sie den Standard-Agenten, um verschiedene Arten von Diagrammen aus bereitgestellten oder im Chat gegebenen Daten zu generieren.", }, save: { title: "Dateien generieren & im Browser speichern", description: "Aktivieren Sie den Standard-Agenten, um Dateien zu generieren und zu schreiben, die gespeichert und in Ihrem Browser heruntergeladen werden können.", }, web: { title: "Live-Websuche und -Browsing", "desc-start": "Ermöglichen Sie Ihrem Agenten, das Web zu durchsuchen, um Ihre Fragen zu beantworten, indem Sie eine Verbindung zu einem Websuche-Anbieter (SERP) herstellen.", "desc-end": "Die Websuche während Agentensitzungen funktioniert erst, wenn dies eingerichtet ist.", }, }, "performance-warning": null, }, recorded: { title: "Workspace-Chats", description: "Dies sind alle aufgezeichneten Chats und Nachrichten, die von Benutzern gesendet wurden, geordnet nach ihrem Erstellungsdatum.", export: "Exportieren", table: { id: "Id", by: "Gesendet von", workspace: "Workspace", prompt: "Prompt", response: "Antwort", at: "Gesendet am", }, }, customization: { interface: { title: "UI Einstellungen", description: "Passen Sie die Benutzeroberfläche von AnythingLLM an.", }, branding: { title: "Branding & Whitelabeling", description: "Individualisieren Sie Ihre AnythingLLM-Instanz durch eigenes Branding.", }, chat: { title: "Chat", description: "Passen Sie Ihre Chat-Einstellungen für AnythingLLM an.", auto_submit: { title: "Spracheingaben automatisch senden", description: "Automatische Übermittlung der Spracheingabe nach einer Sprechpause.", }, auto_speak: { title: "Antworten automatisch vorlesen", description: "Antworten der KI automatisch vorlesen lassen", }, spellcheck: { title: "Rechtschreibprüfung aktivieren", description: "Aktivieren oder deaktivieren Sie die Rechtschreibprüfung im Chat-Eingabefeld.", }, }, items: { theme: { title: "Farbschema", description: "Wählen Sie Ihr bevorzugtes Farbschema für die Anwendung.", }, "show-scrollbar": { title: "Scrollbar anzeigen", description: "Aktivieren oder deaktivieren Sie die Scrollbar im Chat-Fenster.", }, "support-email": { title: "Support-E-Mail", description: "Legen Sie die E-Mail-Adresse für den Kundensupport fest.", }, "app-name": { title: "Name", description: "Geben Sie einen Anwendungsnamen ein, der auf der Login-Seite erscheint.", }, "chat-message-alignment": { title: "Nachrichtenanordnung im Chat", description: "Bestimmen Sie den Ausrichtungsmodus der Chat-Nachrichten.", }, "display-language": { title: "Sprache", description: "Wählen Sie die bevorzugte Sprache für die Benutzeroberfläche.", }, logo: { title: "Eigenes Logo", description: "Laden Sie Ihr eigenes Logo hoch, das auf allen Seiten angezeigt wird.", add: "Eigenes Logo hinzufügen", recommended: "Empfohlene Größe: 800 x 200", remove: "Löschen", replace: "Ersetzen", }, "welcome-messages": { title: "Willkommensnachrichten", description: "Individualisieren Sie die angezeigten Willkommensmitteilungen für Ihre Benutzer. Diese Mitteilungen sehen nur Nicht-Administratoren.", new: "Neue Nachricht", system: "System", user: "Benutzer", message: "Nachricht", assistant: "AnythingLLM Chat-Assistent", "double-click": "Zum Bearbeiten doppelklicken", save: "Nachrichten speichern", }, "browser-appearance": { title: "Browser-Ansicht", description: "Individualisieren Sie die Ansicht von Browser-Tab und -Titel, während die App geöffnet ist.", tab: { title: "Titel", description: "Bestimmen Sie einen individuellen Tab-Titel, wenn die App im Browser geöffnet ist.", }, favicon: { title: "Tab-Icon", description: "Nutzen Sie ein eigenes Icon für den Tab im Browser.", }, }, "sidebar-footer": { title: "Fußzeilenelemente der Seitenleiste", description: "Individualisieren Sie die Elemente in der Fußzeile am unteren Ende der Seitenleiste.", icon: "Icon", link: "Link", }, "render-html": { title: null, description: null, }, }, }, api: { title: "API-Schlüssel", description: "API-Schlüssel ermöglichen es dem Besitzer, programmatisch auf diese AnythingLLM-Instanz zuzugreifen und sie zu verwalten.", link: "Lesen Sie die API-Dokumentation", generate: "Neuen API-Schlüssel generieren", table: { key: "API-Schlüssel", by: "Erstellt von", created: "Erstellt", }, }, llm: { title: "LLM-Präferenz", description: "Dies sind die Anmeldeinformationen und Einstellungen für Ihren bevorzugten LLM-Chat- und Einbettungsanbieter. Es ist wichtig, dass diese Schlüssel aktuell und korrekt sind, sonst wird AnythingLLM nicht richtig funktionieren.", provider: "LLM-Anbieter", providers: { azure_openai: { azure_service_endpoint: "Azure-Service-Endpoint", api_key: "API-Schlüssel", chat_deployment_name: "Name der Chat-Deployment", chat_model_token_limit: "Chat-Modell Token-Begrenzung", model_type: "Art des Modells", default: "Standard", reasoning: "Reasoning", model_type_tooltip: null, }, }, }, transcription: { title: "Transkriptionsmodell-Präferenz", description: "Dies sind die Anmeldeinformationen und Einstellungen für Ihren bevorzugten Transkriptionsmodellanbieter. Es ist wichtig, dass diese Schlüssel aktuell und korrekt sind, sonst werden Mediendateien und Audio nicht transkribiert.", provider: "Transkriptionsanbieter", "warn-start": "Die Verwendung des lokalen Whisper-Modells auf Maschinen mit begrenztem RAM oder CPU kann AnythingLLM bei der Verarbeitung von Mediendateien zum Stillstand bringen.", "warn-recommend": "Wir empfehlen mindestens 2 GB RAM und das Hochladen von Dateien <10 MB.", "warn-end": "Das eingebaute Modell wird bei der ersten Verwendung automatisch heruntergeladen.", }, embedding: { title: "Einbettungspräferenz", "desc-start": "Bei der Verwendung eines LLM, das keine native Unterstützung für eine Einbettungs-Engine bietet, müssen Sie möglicherweise zusätzlich Anmeldeinformationen für die Texteinbettung angeben.", "desc-end": "Einbettung ist der Prozess, Text in Vektoren umzuwandeln. Diese Anmeldeinformationen sind erforderlich, um Ihre Dateien und Prompts in ein Format umzuwandeln, das AnythingLLM zur Verarbeitung verwenden kann.", provider: { title: "Einbettungsanbieter", }, }, text: { title: "Textsplitting & Chunking-Präferenzen", "desc-start": "Manchmal möchten Sie vielleicht die Standardmethode ändern, wie neue Dokumente gesplittet und gechunkt werden, bevor sie in Ihre Vektordatenbank eingefügt werden.", "desc-end": "Sie sollten diese Einstellung nur ändern, wenn Sie verstehen, wie Textsplitting funktioniert und welche Nebenwirkungen es hat.", size: { title: "Textchunk-Größe", description: "Dies ist die maximale Länge der Zeichen, die in einem einzelnen Vektor vorhanden sein können.", recommend: "Die maximale Länge des Einbettungsmodells beträgt", }, overlap: { title: "Textchunk-Überlappung", description: "Dies ist die maximale Überlappung von Zeichen, die während des Chunkings zwischen zwei benachbarten Textchunks auftritt.", }, }, vector: { title: "Vektordatenbank", description: "Dies sind die Anmeldeinformationen und Einstellungen für die Funktionsweise Ihrer AnythingLLM-Instanz. Es ist wichtig, dass diese Schlüssel aktuell und korrekt sind.", provider: { title: "Vektordatenbankanbieter", description: "Für LanceDB ist keine Konfiguration erforderlich.", }, }, embeddable: { title: "Einbettbare Chat-Widgets", description: "Einbettbare Chat-Widgets sind öffentlich zugängliche Chat-Schnittstellen, die an einen einzelnen Workspace gebunden sind. Diese ermöglichen es Ihnen, Workspaces zu erstellen, die Sie dann weltweit veröffentlichen können.", create: "Einbettung erstellen", table: { workspace: "Workspace", chats: "Gesendete Chats", active: "Aktive Domains", created: "Erstellt", }, }, "embed-chats": { title: "Eingebettete Chats", export: "Exportieren", description: "Dies sind alle aufgezeichneten Chats und Nachrichten von jeder Einbettung, die Sie veröffentlicht haben.", table: { embed: "Einbettung", sender: "Absender", message: "Nachricht", response: "Antwort", at: "Gesendet am", }, }, event: { title: "Ereignisprotokolle", description: "Sehen Sie alle Aktionen und Ereignisse, die auf dieser Instanz zur Überwachung stattfinden.", clear: "Ereignisprotokolle löschen", table: { type: "Ereignistyp", user: "Benutzer", occurred: "Aufgetreten am", }, }, privacy: { title: "Datenschutz & Datenverarbeitung", description: "Dies ist Ihre Konfiguration dafür, wie verbundene Drittanbieter und AnythingLLM Ihre Daten behandeln.", llm: "LLM-Auswahl", embedding: "Einbettungspräferenz", vector: "Vektordatenbank", anonymous: "Anonyme Telemetrie aktiviert", }, connectors: { "search-placeholder": "Datenverbindungen durchsuchen", "no-connectors": "Keine Datenverbindungen gefunden.", obsidian: { name: "Obsidian", description: "Mit einem Klick Obsidian-Vault importieren.", vault_location: "Ort des Vaults", vault_description: "Ordner des Obsidian-Vaults auswählen, um sämtliche Notizen inkl. Verknüpfungen zu importieren.", selected_files: "{{count}} Markdown-Dateien gefunden", importing: "Vault wird importiert...", import_vault: "Vault importieren", processing_time: "Dies kann je nach Größe Ihres Vaults etwas dauern", vault_warning: "Bitte schließen Sie Ihr Obsidian-Vault, um mögliche Konflikte zu vermeiden.", }, github: { name: "GitHub Repository", description: "Importieren Sie ein öffentliches oder privates GitHub-Repository mit einem einzigen Klick.", URL: "GitHub Repo URL", URL_explained: "URL des GitHub-Repositories, das Sie sammeln möchten.", token: "GitHub Zugriffstoken", optional: "optional", token_explained: "Zugriffstoken um Ratenlimits zu vermeiden.", token_explained_start: "Ohne einen ", token_explained_link1: "persönlichen Zugriffstoken", token_explained_middle: " kann die GitHub-API aufgrund von Ratenlimits die Anzahl der abrufbaren Dateien einschränken. Sie können ", token_explained_link2: "einen temporären Zugriffstoken erstellen", token_explained_end: ", um dieses Problem zu vermeiden.", ignores: "Datei-Ausschlüsse", git_ignore: "Liste im .gitignore-Format, um bestimmte Dateien während der Sammlung zu ignorieren. Drücken Sie Enter nach jedem Eintrag, den Sie speichern möchten.", task_explained: "Sobald der Vorgang abgeschlossen ist, sind alle Dateien im Dokumenten-Picker zur Einbettung in Workspaces verfügbar.", branch: "Branch, von dem Sie Dateien sammeln möchten.", branch_loading: "-- lade verfügbare Branches --", branch_explained: "Branch, von dem Sie Dateien sammeln möchten.", token_information: "Ohne Angabe des <b>GitHub Zugriffstokens</b> kann dieser Datenkonnektor aufgrund der öffentlichen API-Ratenlimits von GitHub nur die <b>Top-Level</b>-Dateien des Repositories sammeln.", token_personal: "Holen Sie sich hier einen kostenlosen persönlichen Zugriffstoken mit einem GitHub-Konto.", }, gitlab: { name: "GitLab Repository", description: "Importieren Sie ein öffentliches oder privates GitLab-Repository mit einem einzigen Klick.", URL: "GitLab Repo URL", URL_explained: "URL des GitLab-Repositories, das Sie sammeln möchten.", token: "GitLab Zugriffstoken", optional: "optional", token_explained: "Zugriffstoken zur Vermeidung von Ratenlimits.", token_description: "Wählen Sie zusätzliche Entitäten aus, die von der GitLab-API abgerufen werden sollen.", token_explained_start: "Ohne einen ", token_explained_link1: "persönlichen Zugriffstoken", token_explained_middle: " kann die GitLab-API aufgrund von Ratenlimits die Anzahl der abrufbaren Dateien einschränken. Sie können ", token_explained_link2: "einen temporären Zugriffstoken erstellen", token_explained_end: ", um dieses Problem zu vermeiden.", fetch_issues: "Issues als Dokumente abrufen", ignores: "Datei-Ausschlüsse", git_ignore: "Liste im .gitignore-Format, um bestimmte Dateien während der Sammlung zu ignorieren. Drücken Sie Enter nach jedem Eintrag, den Sie speichern möchten.", task_explained: "Sobald der Vorgang abgeschlossen ist, sind alle Dateien im Dokumenten-Picker zur Einbettung in Workspaces verfügbar.", branch: "Branch, von dem Sie Dateien sammeln möchten", branch_loading: "-- lade verfügbare Branches --", branch_explained: "Branch, von dem Sie Dateien sammeln möchten.", token_information: "Ohne Angabe des <b>GitLab Zugriffstokens</b> kann dieser Datenkonnektor aufgrund der öffentlichen API-Ratenlimits von GitLab nur die <b>Top-Level</b>-Dateien des Repositories sammeln.", token_personal: "Holen Sie sich hier einen kostenlosen persönlichen Zugriffstoken mit einem GitLab-Konto.", }, youtube: { name: "YouTube Transkript", description: "Importieren Sie die Transkription eines YouTube-Videos über einen Link.", URL: "YouTube Video URL", URL_explained_start: "Geben Sie die URL eines beliebigen YouTube-Videos ein, um dessen Transkript abzurufen. Das Video muss über ", URL_explained_link: "Untertitel", URL_explained_end: " verfügen.", task_explained: "Sobald der Vorgang abgeschlossen ist, ist das Transkript im Dokumenten-Picker zur Einbettung in Workspaces verfügbar.", language: "Transkriptsprache", language_explained: "Wählen Sie die Sprache des Transkripts aus, das Sie sammeln möchten.", loading_languages: "-- lade verfügbare Sprachen --", }, "website-depth": { name: "Massen-Link-Scraper", description: "Durchsuchen Sie eine Website und ihre Unterlinks bis zu einer bestimmten Tiefe.", URL: "Website URL", URL_explained: "Geben Sie die Start-URL der Website ein, die Sie durchsuchen möchten.", depth: "Durchsuchungstiefe", depth_explained: "Das ist die Menge an Unterseiten, die abhängig der originalen URL durchsucht werden sollen.", max_pages: "Maximale Seitenanzahl", max_pages_explained: "Maximale Anzahl der zu durchsuchenden Seiten.", task_explained: "Sobald der Vorgang abgeschlossen ist, sind alle gesammelten Inhalte im Dokumenten-Picker zur Einbettung in Workspaces verfügbar.", }, confluence: { name: "Confluence", description: "Importieren Sie eine komplette Confluence-Seite mit einem einzigen Klick.", deployment_type: "Confluence Bereitstellungstyp", deployment_type_explained: "Bestimmen Sie, ob Ihre Confluence-Instanz in der Atlassian Cloud oder selbst gehostet ist.", base_url: "Confluence Basis-URL", base_url_explained: "Dies ist die Basis-URL Ihres Confluence-Bereichs.", space_key: "Confluence Space-Key", space_key_explained: "Dies ist der Space-Key Ihrer Confluence-Instanz, der verwendet wird. Beginnt normalerweise mit ~", username: "Confluence Benutzername", username_explained: "Ihr Confluence Benutzername.", auth_type: "Confluence Authentifizierungstyp", auth_type_explained: "Wählen Sie den Authentifizierungstyp, den Sie verwenden möchten, um auf Ihre Confluence-Seiten zuzugreifen.", auth_type_username: "Benutzername und Zugriffstoken", auth_type_personal: "Persönliches Zugriffstoken", token: "Confluence API-Token", token_explained_start: "Sie müssen ein Zugriffstoken für die Authentifizierung bereitstellen. Sie können ein Zugriffstoken", token_explained_link: "hier", token_desc: "Zugriffstoken für die Authentifizierung.",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/pt_BR/common.js
frontend/src/locales/pt_BR/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Bem-vindo ao", getStarted: "Começar", }, llm: { title: "Preferência de LLM", description: "AnythingLLM funciona com vários provedores de LLM. Este será o serviço que lidará com os chats.", }, userSetup: { title: "Configuração do Usuário", description: "Configure suas preferências de usuário.", howManyUsers: "Quantos usuários usarão esta instância?", justMe: "Apenas eu", myTeam: "Minha equipe", instancePassword: "Senha da Instância", setPassword: "Deseja configurar uma senha?", passwordReq: "Senhas devem ter pelo menos 8 caracteres.", passwordWarn: "É importante salvar esta senha pois não há método de recuperação.", adminUsername: "Nome de usuário admin", adminUsernameReq: "O nome deve ter pelo menos 6 caracteres e conter apenas letras minúsculas, números, sublinhados e hífens, sem espaços.", adminPassword: "Senha de admin", adminPasswordReq: "Senhas devem ter pelo menos 8 caracteres.", teamHint: "Por padrão, você será o único admin. Após a configuração, você poderá convidar outros usuários ou admins. Não perca sua senha, pois apenas admins podem redefini-la.", }, data: { title: "Privacidade de Dados", description: "Estamos comprometidos com transparência e controle sobre seus dados pessoais.", settingsHint: "Estas configurações podem ser alteradas a qualquer momento.", }, survey: { title: "Bem-vindo ao AnythingLLM", description: "Ajude-nos a melhorar o AnythingLLM. Opcional.", email: "Qual seu email?", useCase: "Como você usará o AnythingLLM?", useCaseWork: "Para trabalho", useCasePersonal: "Uso pessoal", useCaseOther: "Outro", comment: "Como você conheceu o AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. - Conte como nos encontrou!", skip: "Pular Pesquisa", thankYou: "Obrigado pelo seu feedback!", }, workspace: { title: "Crie seu primeiro workspace", description: "Crie seu primeiro workspace e comece a usar o AnythingLLM.", }, }, common: { "workspaces-name": "Nome do Workspace", error: "erro", success: "sucesso", user: "Usuário", selection: "Seleção de Modelo", saving: "Salvando...", save: "Salvar alterações", previous: "Página Anterior", next: "Próxima Página", optional: "Opcional", yes: "Sim", no: "Não", search: "Pesquisar", }, settings: { title: "Configurações da Instância", system: "Configurações Gerais", invites: "Convites", users: "Usuários", workspaces: "Workspaces", "workspace-chats": "Chats do Workspace", customization: "Personalização", interface: "Preferências de UI", branding: "Marca e Etiqueta Branca", chat: "Chat", "api-keys": "API de Desenvolvedor", llm: "LLM", transcription: "Transcrição", embedder: "Vinculador", "text-splitting": "Divisor de Texto", "voice-speech": "Voz e Fala", "vector-database": "Banco de Dados Vetorial", embeds: "Vinculador de Chat", "embed-chats": "Histórico de vínculos", security: "Segurança", "event-logs": "Logs de Eventos", privacy: "Privacidade e Dados", "ai-providers": "Provedores de IA", "agent-skills": "Habilidades de Agente", admin: "Admin", tools: "Ferramentas", "system-prompt-variables": "Variáveis de Prompt", "experimental-features": "Recursos Experimentais", contact: "Suporte", "browser-extension": "Extensão de Navegador", }, login: { "multi-user": { welcome: "Bem-vindo ao", "placeholder-username": "Nome de usuário", "placeholder-password": "Senha", login: "Login", validating: "Validando...", "forgot-pass": "Esqueci a senha", reset: "Redefinir", }, "sign-in": { start: "Acesse sua", end: "conta.", }, "password-reset": { title: "Redefinição de Senha", description: "Forneça as informações necessárias para redefinir sua senha.", "recovery-codes": "Códigos de Recuperação", "recovery-code": "Código de Recuperação {{index}}", "back-to-login": "Voltar ao Login", }, }, "main-page": { noWorkspaceError: "Por favor, crie um workspace antes de iniciar um chat.", checklist: { title: "Primeiros Passos", tasksLeft: "tarefas restantes", completed: "Você está no caminho para se tornar um expert em AnythingLLM!", dismiss: "fechar", tasks: { create_workspace: { title: "Criar workspace", description: "Crie seu primeiro workspace para começar", action: "Criar", }, send_chat: { title: "Enviar chat", description: "Inicie uma conversa com seu assistente de IA", action: "Chat", }, embed_document: { title: "Inserir documento", description: "Adicione seu primeiro documento ao workspace", action: "Inserir", }, setup_system_prompt: { title: "Configurar prompt", description: "Defina o comportamento do seu assistente de IA", action: "Configurar", }, define_slash_command: { title: "Definir comando", description: "Crie comandos personalizados para seu assistente", action: "Definir", }, visit_community: { title: "Visitar Comunidade", description: "Explore recursos e templates da comunidade", action: "Explorar", }, }, }, quickLinks: { title: "Links Rápidos", sendChat: "Enviar Chat", embedDocument: "Vincular Documento", createWorkspace: "Criar Workspace", }, exploreMore: { title: "Explore mais recursos", features: { customAgents: { title: "Agentes Personalizados", description: "Crie agentes de IA poderosos sem código.", primaryAction: "Chat com @agent", secondaryAction: "Criar fluxo de agente", }, slashCommands: { title: "Comandos de Barra", description: "Economize tempo com comandos personalizados de barra.", primaryAction: "Criar Comando", secondaryAction: "Explorar no Hub", }, systemPrompts: { title: "Prompts de Sistema", description: "Modifique o prompt para personalizar as respostas da IA.", primaryAction: "Modificar Prompt", secondaryAction: "Gerenciar variáveis", }, }, }, announcements: { title: "Atualizações e Anúncios", }, resources: { title: "Recursos", links: { docs: "Documentação", star: "Avalie-nos no Github", }, keyboardShortcuts: "Atalhos de Teclado", }, }, "new-workspace": { title: "Novo Workspace", placeholder: "Meu Workspace", }, "workspaces—settings": { general: "Configurações Gerais", chat: "Configurações de Chat", vector: "Banco de Dados Vetorial", members: "Membros", agent: "Configuração de Agente", }, general: { vector: { title: "Contagem de Vetores", description: "Número total de vetores no seu banco de dados.", }, names: { description: "Isso altera apenas o nome exibido do seu workspace.", }, message: { title: "Sugestões de Chat", description: "Personalize as mensagens sugeridas aos usuários do workspace.", add: "Adicionar mensagem", save: "Salvar Mensagens", heading: "Explique para mim", body: "os benefícios do AnythingLLM", }, pfp: { title: "Imagem do Assistente", description: "Personalize a imagem do assistente para este workspace.", image: "Imagem do Workspace", remove: "Remover Imagem", }, delete: { title: "Excluir Workspace", description: "Exclua este workspace e todos seus dados. Isso afetará todos os usuários.", delete: "Excluir Workspace", deleting: "Excluindo Workspace...", "confirm-start": "Você está prestes a excluir todo o", "confirm-end": "workspace. Isso removerá todos os vetores do banco de dados.\n\nOs arquivos originais permanecerão intactos. Esta ação é irreversível.", }, }, chat: { llm: { title: "Provedor de LLM", description: "O provedor e modelo específico que será usado neste workspace. Por padrão, usa as configurações do sistema.", search: "Buscar todos provedores", }, model: { title: "Modelo de Chat", description: "O modelo específico para este workspace. Se vazio, usará a preferência do sistema.", wait: "-- aguardando modelos --", }, mode: { title: "Modo de Chat", chat: { title: "Chat", "desc-start": "fornecerá respostas com conhecimento geral do LLM", and: "e", "desc-end": "contexto dos documentos encontrados.", }, query: { title: "Consulta", "desc-start": "fornecerá respostas", only: "apenas", "desc-end": "se contexto for encontrado nos documentos.", }, }, history: { title: "Histórico de Chat", "desc-start": "Número de chats anteriores que serão incluídos na memória de curto prazo.", recommend: "Recomendado: 20. ", "desc-end": "Valores acima de 45 podem causar falhas dependendo do tamanho das mensagens.", }, prompt: { title: "Prompt de Sistema", description: "O prompt usado neste workspace. Defina o contexto e instruções para a IA gerar respostas relevantes e precisas.", history: { title: "Histórico de Prompts", clearAll: "Limpar Tudo", noHistory: "Nenhum histórico disponível", restore: "Restaurar", delete: "Excluir", deleteConfirm: "Tem certeza que deseja excluir este item?", clearAllConfirm: "Tem certeza que deseja limpar todo o histórico? Esta ação é irreversível.", expand: "Expandir", publish: "Publicar no Hub", }, }, refusal: { title: "Modo Resposta de recusa", "desc-start": "Quando", query: "consulta", "desc-end": "modo, você pode definir uma resposta personalizada quando nenhum contexto for encontrado.", "tooltip-title": "Resposta de Recusa", "tooltip-description": "Configure uma mensagem personalizada quando o sistema não conseguir responder baseado no contexto disponível.", }, temperature: { title: "Temperatura do LLM", "desc-start": 'Controla o nível de "criatividade" das respostas.', "desc-end": "Valores mais altos geram respostas mais criativas, mas para alguns modelos podem se tornar incoerentes.", hint: "Cada modelo LLM tem faixas de valores válidos. Consulte seu provedor.", }, }, "vector-workspace": { identifier: "Identificador do banco de dados", snippets: { title: "Máximo de Trechos", description: "Controla a quantidade máxima de trechos de contexto enviados ao LLM por chat.", recommend: "Recomendado: 4", }, doc: { title: "Limiar de similaridade", description: "Pontuação mínima para uma fonte ser considerada relevante para o chat. Valores mais altos exigem maior similaridade.", zero: "Sem restrição", low: "Baixo (≥ .25)", medium: "Médio (≥ .50)", high: "Alto (≥ .75)", }, reset: { reset: "Resetar Banco de Dados", resetting: "Limpando vetores...", confirm: "Você está prestes a resetar o banco de dados deste workspace. Isso removerá todos os vetores atuais.\n\nOs arquivos originais permanecerão intactos. Esta ação é irreversível.", error: "Falha ao resetar o banco de dados!", success: "Banco de dados resetado com sucesso!", }, }, agent: { "performance-warning": "O desempenho de LLMs sem suporte a tool-calling varia conforme as capacidades do modelo. Algumas funcionalidades podem ser limitadas.", provider: { title: "Provedor LLM de Agente de Workspace", description: "O provedor LLM e modelo específico que será usado por este agente @agent deste workspace.", }, mode: { chat: { title: "Modelo de Chat para Agente de workspace", description: "O modelo de chat específico para o agente @agent deste workspace.", }, title: "Modelo para Agente de workspace", description: "O modelo LLM específico que será usado pelo agente @agent deste workspace.", wait: "-- aguardando modelos --", }, skill: { title: "Habilidades padrão do agente", description: "Melhore as habilidades naturais do agente com estas funções pré-configuradas. Aplica-se a todos os workspaces.", rag: { title: "RAG & memória longa duração", description: 'Permite ao agente usar documentos locais para responder suas perguntas ou perguntar ao agente "lembrar" conteúdos de sua memória de longa duração.', }, view: { title: "Visualizar & resumir", description: "Permite ao agente listar e resumir conteúdos guardados dos arquivos do workspace.", }, scrape: { title: "Extrair sites", description: "Permite ao agente visitar e extrair conteúdo de websites.", }, generate: { title: "Gerar gráficos", description: "Permite ao agente padrão gerar diversos tipos de gráficos a partir de dados armazenados ou informados no chat.", }, save: { title: "Gerar & salvar arquivos", description: "Permite ao agente gerar e salvar arquivos no navegador.", }, web: { title: "Busca na web", "desc-start": "Permite ao agente pesquisar na web para responder perguntas conectando-se a um provedor de busca.", "desc-end": "Buscas na web durante sessões de agente não funcionarão até que isso seja configurado.", }, }, }, recorded: { title: "Chats do Workspace", description: "Todos os chats registrados enviados por usuários, ordenados por data de criação.", export: "Exportar", table: { id: "ID", by: "Enviado Por", workspace: "Workspace", prompt: "Prompt", response: "Resposta", at: "Enviado Em", }, }, customization: { interface: { title: "Preferências de UI", description: "Defina suas preferências de interface.", }, branding: { title: "Marca & Etiqueta Branca", description: "Personalize sua instância do AnythingLLM com sua marca.", }, chat: { title: "Chat", description: "Defina preferências de chat.", auto_submit: { title: "Envio Automático", description: "Envia automaticamente entrada de voz após silêncio.", }, auto_speak: { title: "Falar Respostas", description: "Fala automaticamente as respostas da IA.", }, spellcheck: { title: "Verificação Ortográfica", description: "Ativa/desativa verificação ortográfica no chat.", }, }, items: { theme: { title: "Tema", description: "Selecione seu tema de cores preferido.", }, "show-scrollbar": { title: "Mostrar Barra", description: "Ativa/desativa barra de rolagem no chat.", }, "support-email": { title: "Email de Suporte", description: "Defina o email de suporte acessível aos usuários.", }, "app-name": { title: "Nome", description: "Defina um nome exibido na página de login para todos os usuários.", }, "chat-message-alignment": { title: "Alinhamento de Mensagens", description: "Selecione o alinhamento das mensagens no chat.", }, "display-language": { title: "Idioma", description: "Selecione o idioma preferido para a interface - quando houver traduções.", }, logo: { title: "Logo", description: "Envie seu logo personalizado.", add: "Adicionar logo", recommended: "Tamanho recomendado: 800 x 200", remove: "Remover", replace: "Substituir", }, "welcome-messages": { title: "Mensagens de Boas-vindas", description: "Personalize as mensagens exibidas aos usuários que não são administradores.", new: "Novo", system: "sistema", user: "usuário", message: "mensagem", assistant: "Assistente de Chat", "double-click": "Clique duas vezes para editar...", save: "Salvar Mensagens", }, "browser-appearance": { title: "Aparência no Navegador", description: "Personalize a aparência da aba e título no navegador.", tab: { title: "Título", description: "Defina um título personalizado para a aba.", }, favicon: { title: "Favicon", description: "Use um favicon personalizado.", }, }, "sidebar-footer": { title: "Itens do Rodapé", description: "Personalize os itens exibidos no rodapé da barra lateral.", icon: "Ícone", link: "Link", }, "render-html": { title: null, description: null, }, }, }, api: { title: "Chaves API", description: "Chaves API permitem acesso programático a esta instância.", link: "Leia a documentação da API", generate: "Gerar Nova Chave", table: { key: "Chave API", by: "Criado Por", created: "Criado Em", }, }, llm: { title: "Preferência de LLM", description: "Credenciais e configurações do seu provedor de LLM. Essas chaves devem estar corretas para o funcionamento adequado.", provider: "Provedor de LLM", providers: { azure_openai: { azure_service_endpoint: "Endpoint do Serviço Azure", api_key: "Chave da API", chat_deployment_name: "Nome do Deployment de Chat", chat_model_token_limit: "Limite de Tokens do Modelo de Chat", model_type: "Tipo do Modelo", default: "Padrão", reasoning: "Raciocínio", model_type_tooltip: null, }, }, }, transcription: { title: "Preferência de Transcrição", description: "Credenciais e configurações do seu provedor de transcrição. Essas chaves devem estar corretas para processar arquivos de mídia.", provider: "Provedor de Transcrição", "warn-start": "Usar o modelo local whisper em máquinas com RAM ou CPU limitada pode travar o AnythingLLM.", "warn-recommend": "Recomendamos pelo menos 2GB de RAM e arquivos <10Mb.", "warn-end": "O modelo interno será baixado automaticamente no primeiro uso.", }, embedding: { title: "Preferência de Vínculo", "desc-start": "Ao usar um LLM sem suporte nativo a vínculo, você pode precisar especificar credenciais adicionais.", "desc-end": "Vínculo é o processo de transformar texto em vetores. Essas credenciais são necessárias para processar arquivos e prompts.", provider: { title: "Provedor de Vínculo", }, }, text: { title: "Preferências de Divisão de Texto", "desc-start": "Você pode alterar a forma como novos documentos são divididos antes de serem inseridos no banco de dados vetorial.", "desc-end": "Modifique apenas se entender os efeitos da divisão de texto.", size: { title: "Tamanho dos Trechos", description: "Comprimento máximo de caracteres em um único vetor.", recommend: "Tamanho máximo do modelo de vínculo é", }, overlap: { title: "Sobreposição de Trechos", description: "Sobreposição máxima de caracteres entre dois trechos adjacentes.", }, }, vector: { title: "Banco de Dados Vetorial", description: "Credenciais e configurações do seu banco de dados vetorial. Essas chaves devem estar corretas para o funcionamento adequado.", provider: { title: "Provedor do Banco", description: "Nenhuma configuração necessária para LanceDB.", }, }, embeddable: { title: "Widgets de Chat vinculado", description: "Widgets de chat vinculadas são interfaces de chats públicos ligadas a um único workspace. Isto permite construir workspaces e publicá-los na web.", create: "Criar vínculo", table: { workspace: "Workspace", chats: "Chats Enviados", active: "Domínios Ativos", created: "Criado Em", }, }, "embed-chats": { title: "Chats Vinculados", export: "Exportar", description: "Todos os chats registrados de qualquer vínculo publicado.", table: { embed: "Vínculo", sender: "Remetente", message: "Mensagem", response: "Resposta", at: "Enviado Em", }, }, event: { title: "Logs de Eventos", description: "Visualize todas as ações e eventos nesta instância para monitoramento.", clear: "Limpar Logs de eventos", table: { type: "Tipo de Evento", user: "Usuário", occurred: "Ocorrido Em", }, }, privacy: { title: "Privacidade & Dados", description: "Configurações de como provedores terceiros e o AnythingLLM lidam com seus dados.", llm: "Seleção de LLM", embedding: "Preferência de Vínculo", vector: "Banco de Dados Vetorial", anonymous: "Telemetria Anônima Ativa", }, connectors: { "search-placeholder": "Buscar conectores", "no-connectors": "Nenhum conector encontrado.", obsidian: { name: "Obsidian", description: "Importe um vault do Obsidian com um clique.", vault_location: "Local do Cofre", vault_description: "Selecione sua pasta do Obsidian para importar todas as notas.", selected_files: "Encontrados {{count}} arquivos markdown", importing: "Importando cofre...", import_vault: "Importar Cofre", processing_time: "Pode levar algum tempo dependendo do tamanho do cofre.", vault_warning: "Para evitar conflitos, certifique-se que seu cofre Obsidian não está aberto.", }, github: { name: "Repositório GitHub", description: "Importe um repositório GitHub público ou privado com um clique.", URL: "URL do Repositório", URL_explained: "URL do repositório que deseja coletar.", token: "Token de Acesso", optional: "opcional", token_explained: "Token para evitar limitação de taxa.", token_explained_start: "Sem um ", token_explained_link1: "Token de Acesso Pessoal", token_explained_middle: ", a API do GitHub pode limitar o número de arquivos coletados. Você pode ", token_explained_link2: "criar um Token Temporário", token_explained_end: " para evitar isso.", ignores: "Arquivos Ignorados", git_ignore: "Liste no formato .gitignore para ignorar arquivos específicos. Pressione enter após cada entrada.", task_explained: "Após conclusão, todos os arquivos estarão disponíveis para vínculo.", branch: "Branch", branch_loading: "-- carregando branches --", branch_explained: "Branch para coletar arquivos.", token_information: "Sem preencher o <b>Token de Acesso</b>, este conector só poderá coletar arquivos <b>do nível superior</b> devido a limitações da API pública.", token_personal: "Obtenha um Token de Acesso Pessoal gratuito aqui.", }, gitlab: { name: "Repositório GitLab", description: "Importe um repositório GitLab público ou privado com um clique.", URL: "URL do Repositório", URL_explained: "URL do repositório que deseja coletar.", token: "Token de Acesso", optional: "opcional", token_explained: "Token para evitar limitação de taxa.", token_description: "Selecione entidades adicionais para buscar na API.", token_explained_start: "Sem um ", token_explained_link1: "Token de Acesso Pessoal", token_explained_middle: ", a API do GitLab pode limitar o número de arquivos coletados. Você pode ", token_explained_link2: "criar um Token Temporário", token_explained_end: " para evitar isso.", fetch_issues: "Buscar Issues como Documentos", ignores: "Arquivos Ignorados", git_ignore: "Liste no formato .gitignore para ignorar arquivos específicos. Pressione enter após cada entrada.", task_explained: "Após conclusão, todos os arquivos estarão disponíveis para vínculo.", branch: "Branch", branch_loading: "-- carregando branches --", branch_explained: "Branch para coletar arquivos.", token_information: "Sem preencher o <b>Token de Acesso</b>, este conector só poderá coletar arquivos <b>do nível superior</b> devido a limitações da API pública.", token_personal: "Obtenha um Token de Acesso Pessoal gratuito aqui.", }, youtube: { name: "Transcrição do YouTube", description: "Importe a transcrição de um vídeo do YouTube a partir de um link.", URL: "URL do Vídeo", URL_explained_start: "Insira a URL de qualquer vídeo do YouTube para buscar sua transcrição. O vídeo deve ter ", URL_explained_link: "legendas", URL_explained_end: " disponíveis.", task_explained: "Após conclusão, a transcrição estará disponível para vínculo.", language: "Idioma da Transcrição", language_explained: "Selecione o idioma da transcrição que deseja coletar.", loading_languages: "-- carregando idiomas --", }, "website-depth": { name: "Coletor de Links", description: "Extraia um site e seus sublinks até uma certa profundidade.", URL: "URL do Site", URL_explained: "URL do site que deseja extrair.", depth: "Profundidade", depth_explained: "Número de links filhos que o coletor deve seguir a partir da URL original.", max_pages: "Máximo de Páginas", max_pages_explained: "Número máximo de links para extrair.", task_explained: "Após conclusão, todo o conteúdo estará disponível para vínculo.", }, confluence: { name: "Confluence", description: "Importe uma página do Confluence com um clique.", deployment_type: "Tipo de instalação", deployment_type_explained: "Determine se sua instância é hospedada na nuvem ou auto-hospedada.", base_url: "URL Base", base_url_explained: "URL base do seu espaço no Confluence.", space_key: "Chave do Espaço", space_key_explained: "Chave do espaço no Confluence que será usada. Geralmente começa com ~", username: "Nome de Usuário", username_explained: "Seu nome de usuário no Confluence", auth_type: "Tipo de Autenticação", auth_type_explained: "Selecione o tipo de autenticação para acessar suas páginas.", auth_type_username: "Usuário e Token", auth_type_personal: "Token Pessoal", token: "Token de Acesso", token_explained_start: "Forneça um token de acesso para autenticação. Você pode gerar um token", token_explained_link: "aqui", token_desc: "Token para autenticação", pat_token: "Token Pessoal", pat_token_explained: "Seu token pessoal de acesso.", task_explained: "Após conclusão, o conteúdo da página estará disponível para vínculo.", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "Documentos", "data-connectors": "Conectores de Dados", "desktop-only": "Editar estas configurações só está disponível em dispositivos desktop. Acesse esta página em seu desktop para continuar.", dismiss: "Ignorar", editing: "Editando", }, directory: { "my-documents": "Meus Documentos", "new-folder": "Nova Pasta", "search-document": "Buscar documento", "no-documents": "Nenhum Documento", "move-workspace": "Mover para Workspace", name: "Nome", "delete-confirmation": "Tem certeza que deseja excluir estes arquivos e pastas?\nIsso removerá os arquivos do sistema e de todos os workspaces automaticamente.\nEsta ação é irreversível.", "removing-message": "Removendo {{count}} documentos e {{folderCount}} pastas. Aguarde.", "move-success": "{{count}} documentos movidos com sucesso.", date: "Data", type: "Tipo", no_docs: "Nenhum Documento", select_all: "Selecionar Tudo", deselect_all: "Desmarcar Tudo", remove_selected: "Remover Selecionados", costs: "*Custo único para vínculos", save_embed: "Salvar e Inserir", }, upload: { "processor-offline": "Processador de documentos Indisponível", "processor-offline-desc": "Não é possível enviar arquivos agora. O processador de documentos está offline. Tente mais tarde.", "click-upload": "Clique para enviar ou arraste e solte", "file-types": "suporta textos, csv, planilhas, áudios e mais!", "or-submit-link": "ou envie um link", "placeholder-link": "https://exemplo.com", fetching: "Buscando...", "fetch-website": "Buscar site", "privacy-notice": "Esses arquivos são enviados ao processador local do AnythingLLM. Não são compartilhados com terceiros.", }, pinning: { what_pinning: "O que é fixar documento?", pin_explained_block1: "Ao <b>fixar</b> um documento, o conteúdo será injetado na janela do prompt para o LLM entender.", pin_explained_block2: "Funciona melhor com <b>modelos de contexto grande</b> ou arquivos pequenos e importantes.", pin_explained_block3: "Se não tiver boas respostas, fixar pode melhorar a qualidade com um clique.", accept: "Ok, entendi", }, watching: { what_watching: "O que é monitorar um documento?", watch_explained_block1: "Ao <b>monitorar</b>, o conteúdo será <i>sincronizado</i> com a fonte em intervalos regulares.", watch_explained_block2: "Funciona apenas com conteúdo online, não com uploads manuais.", watch_explained_block3_start: "Você pode gerenciar documentos monitorados no ", watch_explained_block3_link: "Gerenciador de arquivos", watch_explained_block3_end: " na visão de admin.", accept: "Ok, entendi", }, }, chat_window: { welcome: "Bem-vindo ao novo workspace.", get_started: "Para começar,", get_started_default: "Para começar", upload: "envie um documento", or: "ou", attachments_processing: "Anexos em processamento. Aguarde...", send_chat: "envie uma mensagem.", send_message: "Enviar mensagem", attach_file: "Anexar arquivo ao chat", slash: "Veja todos os comandos disponíveis.", agents: "Veja todos os agentes disponíveis.", text_size: "Alterar tamanho do texto.", microphone: "Fale seu prompt.", send: "Enviar prompt para o workspace", tts_speak_message: "Leitura em voz alta da mensagem", copy: "Copiar", regenerate: "Regerar", regenerate_response: "Regerar resposta", good_response: "Resposta satisfatória", more_actions: "Mais ações", hide_citations: "Esconder citações", show_citations: "Exibir citações", pause_tts_speech_message: "Pausar a leitura em voz alta", fork: "Fork", delete: "Excluir", save_submit: "Alterar", cancel: "Cancelar", edit_prompt: "Editar prompt", edit_response: "Editar resposta", at_agent: "@agente", default_agent_description: " - o agente padrão deste workspace.", custom_agents_coming_soon: "mais agentes personalizados em breve!", slash_reset: "/reset", preset_reset_description: "Limpa o histórico do seu chat e inicia um novo",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/tr/common.js
frontend/src/locales/tr/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: null, useCase: null, useCaseWork: null, useCasePersonal: null, useCaseOther: null, comment: null, commentPlaceholder: null, skip: null, thankYou: null, title: null, description: null, }, home: { title: null, getStarted: null, }, llm: { title: null, description: null, }, userSetup: { title: null, description: null, howManyUsers: null, justMe: null, myTeam: null, instancePassword: null, setPassword: null, passwordReq: null, passwordWarn: null, adminUsername: null, adminUsernameReq: null, adminPassword: null, adminPasswordReq: null, teamHint: null, }, data: { title: null, description: null, settingsHint: null, }, workspace: { title: null, description: null, }, }, common: { "workspaces-name": "Çalışma Alanları Adı", error: "hata", success: "başarı", user: "Kullanıcı", selection: "Model Seçimi", saving: "Kaydediliyor...", save: "Değişiklikleri Kaydet", previous: "Önceki Sayfa", next: "Sonraki Sayfa", optional: null, yes: null, no: null, search: null, }, settings: { title: "Instance Ayarları", system: "Genel Ayarlar", invites: "Davetler", users: "Kullanıcılar", workspaces: "Çalışma Alanları", "workspace-chats": "Çalışma Alanı Sohbetleri", customization: "Özelleştirme", "api-keys": "Geliştirici API", llm: "LLM", transcription: "Transkripsiyon", embedder: "Gömme Aracı", "text-splitting": "Metin Bölme & Parçalama", "voice-speech": "Ses & Konuşma", "vector-database": "Vektör Veritabanı", embeds: "Sohbet Gömme", "embed-chats": "Gömme Sohbet Geçmişi", security: "Güvenlik", "event-logs": "Olay Kayıtları", privacy: "Gizlilik & Veri", "ai-providers": "Yapay Zeka Sağlayıcıları", "agent-skills": "Ajan Becerileri", admin: "Yönetici", tools: "Araçlar", "experimental-features": "Deneysel Özellikler", contact: "Destekle İletişime Geçin", "browser-extension": "Tarayıcı Uzantısı", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Hoş geldiniz", "placeholder-username": "Kullanıcı Adı", "placeholder-password": "Şifre", login: "Giriş Yap", validating: "Doğrulanıyor...", "forgot-pass": "Şifremi Unuttum", reset: "Sıfırla", }, "sign-in": { start: "Hesabınıza", end: "giriş yapın.", }, "password-reset": { title: "Şifre Sıfırlama", description: "Şifrenizi sıfırlamak için gerekli bilgileri aşağıya girin.", "recovery-codes": "Kurtarma Kodları", "recovery-code": "Kurtarma Kodu {{index}}", "back-to-login": "Girişe Geri Dön", }, }, "new-workspace": { title: "Yeni Çalışma Alanı", placeholder: "Benim Çalışma Alanım", }, "workspaces—settings": { general: "Genel Ayarlar", chat: "Sohbet Ayarları", vector: "Vektör Veritabanı", members: "Üyeler", agent: "Ajan Yapılandırması", }, general: { vector: { title: "Vektör Sayısı", description: "Vektör veritabanınızdaki toplam vektör sayısı.", }, names: { description: "Bu, yalnızca çalışma alanınızın görüntü adını değiştirecektir.", }, message: { title: "Önerilen Sohbet Mesajları", description: "Çalışma alanı kullanıcılarınıza önerilecek sohbet mesajlarını özelleştirin.", add: "Yeni mesaj ekle", save: "Mesajları Kaydet", heading: "Bana açıkla", body: "AnythingLLM'nin faydalarını", }, pfp: { title: "Asistan Profil Görseli", description: "Bu çalışma alanı için asistanın profil resmini özelleştirin.", image: "Çalışma Alanı Görseli", remove: "Çalışma Alanı Görselini Kaldır", }, delete: { title: "Çalışma Alanını Sil", description: "Bu çalışma alanını ve tüm verilerini silin. Bu işlem, çalışma alanını tüm kullanıcılar için silecektir.", delete: "Çalışma Alanını Sil", deleting: "Çalışma Alanı Siliniyor...", "confirm-start": "Tüm çalışma alanınızı silmek üzeresiniz", "confirm-end": ". Bu, vektör veritabanınızdaki tüm vektör gömme verilerini kaldıracaktır.\n\nOrijinal kaynak dosyalar etkilenmeyecektir. Bu işlem geri alınamaz.", }, }, chat: { llm: { title: "Çalışma Alanı LLM Sağlayıcısı", description: "Bu çalışma alanı için kullanılacak belirli LLM sağlayıcısı ve modeli. Varsayılan olarak sistem LLM sağlayıcısı ve ayarları kullanılır.", search: "Tüm LLM sağlayıcılarını ara", }, model: { title: "Çalışma Alanı Sohbet Modeli", description: "Bu çalışma alanı için kullanılacak belirli sohbet modeli. Boş bırakılırsa, sistem LLM tercihi kullanılacaktır.", wait: "-- modeller bekleniyor --", }, mode: { title: "Sohbet Modu", chat: { title: "Sohbet", "desc-start": "LLM'nin genel bilgisiyle yanıtlar sunar", and: "ve", "desc-end": "bulunan belge bağlamını ekler.", }, query: { title: "Sorgu", "desc-start": "yanıtları", only: "sadece", "desc-end": "belge bağlamı bulunduğunda sunar.", }, }, history: { title: "Sohbet Geçmişi", "desc-start": "Yanıta dahil edilecek önceki sohbetlerin sayısı (kısa süreli hafıza).", recommend: "20 önerilir. ", "desc-end": "45'ten fazlası, mesaj boyutuna göre sürekli sohbet hatalarına yol açabilir.", }, prompt: { title: "Komut (Prompt)", description: "Bu çalışma alanında kullanılacak komut. Yapay zekanın yanıt üretmesi için bağlam ve talimatları tanımlayın. Uygun ve doğru yanıtlar almak için özenle hazırlanmış bir komut sağlamalısınız.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Sorgu Modu Ret Yanıtı", "desc-start": "Eğer", query: "sorgu", "desc-end": "modunda bağlam bulunamazsa, özel bir ret yanıtı döndürmek isteyebilirsiniz.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM Sıcaklığı", "desc-start": 'Bu ayar, LLM yanıtlarının ne kadar "yaratıcı" olacağını kontrol eder.', "desc-end": "Sayı yükseldikçe yaratıcı yanıtlar artar. Bazı modeller için bu değer çok yüksek ayarlandığında anlamsız yanıtlar ortaya çıkabilir.", hint: "Çoğu LLM'in farklı kabul edilebilir değer aralıkları vardır. Ayrıntılar için LLM sağlayıcınıza danışın.", }, }, "vector-workspace": { identifier: "Vektör veritabanı tanımlayıcısı", snippets: { title: "Maksimum Bağlam Parçacıkları", description: "Bu ayar, sohbet veya sorgu başına LLM'e gönderilecek maksimum bağlam parçacığı sayısını kontrol eder.", recommend: "Önerilen: 4", }, doc: { title: "Belge benzerlik eşiği", description: "Bir kaynağın sohbetle ilişkili sayılabilmesi için gereken minimum benzerlik puanı. Sayı yükseldikçe, kaynağın sohbete benzerliği de o kadar yüksek olmalıdır.", zero: "Kısıtlama yok", low: "Düşük (benzerlik puanı ≥ .25)", medium: "Orta (benzerlik puanı ≥ .50)", high: "Yüksek (benzerlik puanı ≥ .75)", }, reset: { reset: "Vektör veritabanını sıfırla", resetting: "Vektörler temizleniyor...", confirm: "Bu çalışma alanının vektör veritabanını sıfırlamak üzeresiniz. Bu işlem, hâlihazırda gömülü olan tüm vektör verilerini kaldıracaktır.\n\nOrijinal kaynak dosyalar etkilenmeyecektir. Bu işlem geri alınamaz.", error: "Çalışma alanının vektör veritabanı sıfırlanamadı!", success: "Çalışma alanının vektör veritabanı sıfırlandı!", }, }, agent: { "performance-warning": "Araç çağırmayı açıkça desteklemeyen LLM'lerin performansı, modelin yetenekleri ve doğruluğuna büyük ölçüde bağlıdır. Bazı beceriler kısıtlı veya işlevsiz olabilir.", provider: { title: "Çalışma Alanı Ajan LLM Sağlayıcısı", description: "Bu çalışma alanındaki @agent ajanı için kullanılacak spesifik LLM sağlayıcısı ve modeli.", }, mode: { chat: { title: "Çalışma Alanı Ajan Sohbet Modeli", description: "Bu çalışma alanındaki @agent ajanı için kullanılacak spesifik sohbet modeli.", }, title: "Çalışma Alanı Ajan Modeli", description: "Bu çalışma alanındaki @agent ajanı için kullanılacak spesifik LLM modeli.", wait: "-- modeller bekleniyor --", }, skill: { title: "Varsayılan ajan becerileri", description: "Varsayılan ajanın doğal yeteneklerini, hazır oluşturulmuş bu becerilerle geliştirin. Bu yapılandırma tüm çalışma alanları için geçerlidir.", rag: { title: "RAG ve uzun vadeli hafıza", description: 'Ajana, yerel belgelerinizi kullanarak soruları yanıtlatma veya bazı içerikleri "hatırlaması" için uzun vadeli hafıza kullanma izni verin.', }, view: { title: "Belgeleri görüntüleme & özetleme", description: "Ajana, çalışma alanında hâlihazırda gömülü olan dosyaları listeleyip özetleme izni verin.", }, scrape: { title: "Web sitelerini tarama", description: "Ajana, web sitelerini ziyaret edip içeriklerini tarama izni verin.", }, generate: { title: "Grafik oluşturma", description: "Varsayılan ajanın, sağlanan veya sohbette yer alan verilere göre çeşitli grafik türleri oluşturmasına izin verin.", }, save: { title: "Tarayıcıya dosya oluştur & kaydet", description: "Varsayılan ajanın, oluşturduğu dosyaları kaydetmesine ve tarayıcıda indirilebilir hale getirmesine izin verin.", }, web: { title: "Canlı web araması ve gezinme", "desc-start": "Ajanınızın, bir web arama (SERP) sağlayıcısına bağlanarak sorularınızı yanıtlamak için web üzerinde arama yapmasına izin verin.", "desc-end": "Ajan oturumlarında web araması, bu ayar etkinleştirilene kadar çalışmayacaktır.", }, }, }, recorded: { title: "Çalışma Alanı Sohbetleri", description: "Bunlar, kullanıcılar tarafından gönderilen ve oluşturulma tarihlerine göre sıralanan tüm kayıtlı sohbetler ve mesajlardır.", export: "Dışa Aktar", table: { id: "Id", by: "Gönderen", workspace: "Çalışma Alanı", prompt: "Komut (Prompt)", response: "Yanıt", at: "Gönderilme Zamanı", }, }, api: { title: "API Anahtarları", description: "API anahtarları, bu AnythingLLM örneğine programatik olarak erişmeye ve yönetmeye olanak tanır.", link: "API dokümantasyonunu okuyun", generate: "Yeni API Anahtarı Oluştur", table: { key: "API Anahtarı", by: "Oluşturan", created: "Oluşturulma Tarihi", }, }, llm: { title: "LLM Tercihi", description: "Bu, tercih ettiğiniz LLM sohbet ve gömme sağlayıcısının kimlik bilgileri ile ayarlarıdır. Bu anahtarların güncel ve doğru olması önemlidir; aksi takdirde AnythingLLM doğru çalışmayacaktır.", provider: "LLM Sağlayıcısı", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Transkripsiyon Model Tercihi", description: "Bu, tercih ettiğiniz transkripsiyon modeli sağlayıcısının kimlik bilgileri ve ayarlarıdır. Anahtarların güncel ve doğru olması önemlidir; aksi takdirde medya dosyaları ve sesler transkribe edilemez.", provider: "Transkripsiyon Sağlayıcısı", "warn-start": "Sınırlı RAM veya CPU'ya sahip makinelerde yerel Whisper modelini kullanmak, medya dosyalarını işlerken AnythingLLM'nin duraksamasına neden olabilir.", "warn-recommend": "En az 2GB RAM öneriyoruz ve 10MB üzerinde dosya yüklememeye dikkat edin.", "warn-end": "Yerleşik model, ilk kullanımda otomatik olarak indirilecektir.", }, embedding: { title: "Gömme (Embedding) Tercihi", "desc-start": "Yerel olarak gömme mekanizmasını desteklemeyen bir LLM kullanıyorsanız, metinleri gömmek için ek kimlik bilgileri girmeniz gerekebilir.", "desc-end": "Gömme, metni vektörlere dönüştürme sürecidir. Dosyalarınızın ve komutlarınızın işlenebilmesi için AnythingLLM, bu kimlik bilgilerine ihtiyaç duyar.", provider: { title: "Embedding Sağlayıcısı", }, }, text: { title: "Metin Bölme & Parçalama Tercihleri", "desc-start": "Bazı durumlarda, yeni belgelerin vektör veritabanınıza eklenmeden önce hangi varsayılan yöntemle bölünüp parçalanacağını değiştirmek isteyebilirsiniz.", "desc-end": "Metin bölmenin nasıl çalıştığını ve olası yan etkilerini tam olarak bilmiyorsanız bu ayarı değiştirmemelisiniz.", size: { title: "Metin Parça Boyutu", description: "Tek bir vektörde bulunabilecek maksimum karakter uzunluğunu ifade eder.", recommend: "Gömme modelinin maksimum karakter uzunluğu", }, overlap: { title: "Metin Parçalama Örtüşmesi", description: "İki bitişik metin parçası arasındaki, parçalama sırasında oluşabilecek maksimum karakter örtüşme miktarını belirtir.", }, }, vector: { title: "Vektör Veritabanı", description: "AnythingLLM örneğinizin nasıl çalışacağını belirleyen kimlik bilgileri ve ayarları burada bulunur. Bu anahtarların güncel ve doğru olması önemlidir.", provider: { title: "Vektör Veritabanı Sağlayıcısı", description: "LanceDB için ek bir yapılandırma gerekmez.", }, }, embeddable: { title: "Gömülebilir Sohbet Widget'ları", description: "Gömülebilir sohbet widget'ları, herkese açık olan ve tek bir çalışma alanına bağlı sohbet arayüzleridir. Bu sayede oluşturduğunuz çalışma alanlarını dünyaya açık hâle getirebilirsiniz.", create: "Gömme oluştur", table: { workspace: "Çalışma Alanı", chats: "Gönderilen Sohbetler", active: "Aktif Alan Adları", created: null, }, }, "embed-chats": { title: "Gömme Sohbetler", export: "Dışa Aktar", description: "Yayımladığınız herhangi bir gömme sohbetten gelen tüm kayıtlı sohbetler ve mesajlar burada bulunur.", table: { embed: "Gömme", sender: "Gönderen", message: "Mesaj", response: "Yanıt", at: "Gönderilme Zamanı", }, }, event: { title: "Olay Kayıtları", description: "Bu örnek üzerinde gerçekleşen tüm eylem ve olayları izlemek için görüntüleyin.", clear: "Olay Kayıtlarını Temizle", table: { type: "Olay Türü", user: "Kullanıcı", occurred: "Gerçekleşme Zamanı", }, }, privacy: { title: "Gizlilik & Veri İşleme", description: "Bağlantılı üçüncü taraf sağlayıcılarla ve AnythingLLM ile verilerinizin nasıl ele alındığını burada yapılandırabilirsiniz.", llm: "LLM Seçimi", embedding: "Gömme Tercihi", vector: "Vektör Veritabanı", anonymous: "Anonim Telemetri Etkin", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, }, visit_community: { title: null, description: null, action: null, }, }, }, quickLinks: { title: null, sendChat: null, embedDocument: null, createWorkspace: null, }, exploreMore: { title: null, features: { customAgents: { title: null, description: null, primaryAction: null, secondaryAction: null, }, slashCommands: { title: null, description: null, primaryAction: null, secondaryAction: null, }, systemPrompts: { title: null, description: null, primaryAction: null, secondaryAction: null, }, }, }, announcements: { title: null, }, resources: { title: null, links: { docs: null, star: null, }, keyboardShortcuts: null, }, }, "keyboard-shortcuts": { title: null, shortcuts: { settings: null, workspaceSettings: null, home: null, workspaces: null, apiKeys: null, llmPreferences: null, chatSettings: null, help: null, showLLMSelector: null, }, }, community_hub: { publish: { system_prompt: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, submit: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, agent_flow: { public_description: null, private_description: null, success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, publish_button: null, submitting: null, submit: null, privacy_note: null, }, generic: { unauthenticated: { title: null, description: null, button: null, }, }, slash_command: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, command_label: null, command_description: null, command_placeholder: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, }, }, security: { title: "Güvenlik", multiuser: { title: "Çoklu Kullanıcı Modu", description: "Takımınızı desteklemek için örneğinizi yapılandırın ve Çoklu Kullanıcı Modunu etkinleştirin.", enable: { "is-enable": "Çoklu Kullanıcı Modu Etkin", enable: "Çoklu Kullanıcı Modunu Etkinleştir", description: "Varsayılan olarak tek yönetici sizsiniz. Yönetici olarak yeni kullanıcılar veya yöneticiler için hesap oluşturmanız gerekir. Şifrenizi kaybetmeyin çünkü yalnızca bir Yönetici kullanıcı şifreleri sıfırlayabilir.", username: "Yönetici hesap kullanıcı adı", password: "Yönetici hesap şifresi", }, }, password: { title: "Şifre Koruması", description: "AnythingLLM örneğinizi bir şifre ile koruyun. Bu şifreyi unutmanız hâlinde kurtarma yöntemi yoktur, bu yüzden mutlaka güvende saklayın.", "password-label": "Örnek şifresi", }, }, home: { welcome: "Hoşgeldiniz", chooseWorkspace: "Bir çalışma alanı seçerek sohbete başlayın!", notAssigned: "Şu anda hiçbir çalışma alanına atanmamışsınız.\nBir çalışma alanına erişmek için yöneticinize başvurun.", goToWorkspace: 'Çalışma alanına git "{{workspace}}"', }, }; export default TRANSLATIONS;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/he/common.js
frontend/src/locales/he/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "ברוכים הבאים ל", getStarted: "להתחלה", }, llm: { title: "העדפות מודל שפה (LLM)", description: "AnythingLLM יכול לעבוד עם ספקי מודלי שפה (LLM) רבים. זה יהיה השירות שיטפל בצ'אט.", }, userSetup: { title: "הגדרת משתמש", description: "הגדר את הגדרות המשתמש שלך.", howManyUsers: "כמה משתמשים ישתמשו במופע זה?", justMe: "רק אני", myTeam: "הצוות שלי", instancePassword: "סיסמת מופע", setPassword: "האם תרצה להגדיר סיסמה?", passwordReq: "סיסמאות חייבות להכיל לפחות 8 תווים.", passwordWarn: "חשוב לשמור סיסמה זו מכיוון שאין שיטת שחזור.", adminUsername: "שם משתמש של חשבון מנהל", adminUsernameReq: "שם המשתמש חייב להכיל לפחות 6 תווים ויכול לכלול רק אותיות קטנות, מספרים, קווים תחתונים ומקפים, ללא רווחים.", adminPassword: "סיסמת חשבון מנהל", adminPasswordReq: "סיסמאות חייבות להכיל לפחות 8 תווים.", teamHint: "כברירת מחדל, אתה תהיה המנהל היחיד. לאחר סיום ההצטרפות תוכל ליצור ולהזמין אחרים להיות משתמשים או מנהלים. אל תאבד את סיסמתך, מכיוון שרק מנהלים יכולים לאפס סיסמאות.", }, data: { title: "טיפול בנתונים ופרטיות", description: "אנו מחויבים לשקיפות ושליטה בכל הנוגע לנתונים האישיים שלך.", settingsHint: "ניתן להגדיר מחדש הגדרות אלה בכל עת בהגדרות.", }, survey: { title: "ברוכים הבאים ל-AnythingLLM", description: "עזרו לנו לבנות את AnythingLLM כך שיתאים לצרכים שלכם. אופציונלי.", email: "מה האימייל שלך?", useCase: "לאיזו מטרה תשתמש ב-AnythingLLM?", useCaseWork: "לעבודה", useCasePersonal: "לשימוש אישי", useCaseOther: "אחר", comment: "איך שמעת על AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, וכו' - ספר לנו איך מצאת אותנו!", skip: "דלג על הסקר", thankYou: "תודה על המשוב!", }, workspace: { title: "צור את סביבת העבודה הראשונה שלך", description: "צור את סביבת העבודה הראשונה שלך והתחל לעבוד עם AnythingLLM.", }, }, common: { "workspaces-name": "שם סביבת העבודה", error: "שגיאה", success: "הצלחה", user: "משתמש", selection: "בחירת מודל", saving: "שומר...", save: "שמור שינויים", previous: "עמוד קודם", next: "עמוד הבא", optional: "אופציונלי", yes: "כן", no: "לא", search: "חיפוש", }, settings: { title: "הגדרות מופע", system: "הגדרות כלליות", invites: "הזמנות", users: "משתמשים", workspaces: "סביבות עבודה", "workspace-chats": "צ'אטים של סביבות עבודה", customization: "התאמה אישית", interface: "העדפות ממשק משתמש", branding: "מיתוג והתאמה אישית (Whitelabeling)", chat: "צ'אט", "api-keys": "מפתחות API למפתחים", llm: "מודל שפה (LLM)", transcription: "תמלול", embedder: "מטמיע (Embedder)", "text-splitting": "פיצול טקסט וחלוקה למקטעים (Chunking)", "voice-speech": "קול ודיבור", "vector-database": "מסד נתונים וקטורי", embeds: "הטמעות צ'אט (Embeds)", "embed-chats": "היסטוריית הטמעות צ'אט", security: "אבטחה", "event-logs": "יומני אירועים", privacy: "פרטיות ונתונים", "ai-providers": "ספקי בינה מלאכותית", "agent-skills": "כישורי סוכן", admin: "מנהל", tools: "כלים", "system-prompt-variables": "משתני הנחיית מערכת", "experimental-features": "תכונות ניסיוניות", contact: "צור קשר עם התמיכה", "browser-extension": "תוסף דפדפן", }, login: { "multi-user": { welcome: "ברוכים הבאים ל", "placeholder-username": "שם משתמש", "placeholder-password": "סיסמה", login: "התחברות", validating: "מאמת...", "forgot-pass": "שכחת סיסמה", reset: "איפוס", }, "sign-in": { start: "התחבר ל", end: "חשבונך.", }, "password-reset": { title: "איפוס סיסמה", description: "ספק את המידע הדרוש למטה כדי לאפס את סיסמתך.", "recovery-codes": "קודיי שחזור", "recovery-code": "קוד שחזור {{index}}", "back-to-login": "חזרה להתחברות", }, }, "main-page": { noWorkspaceError: "אנא צור סביבת עבודה לפני התחלת צ'אט.", checklist: { title: "תחילת עבודה", tasksLeft: "משימות נותרו", completed: "אתה בדרך להפוך למומחה AnythingLLM!", dismiss: "סגור", tasks: { create_workspace: { title: "צור סביבת עבודה", description: "צור את סביבת העבודה הראשונה שלך כדי להתחיל", action: "צור", }, send_chat: { title: "שלח צ'אט", description: "התחל שיחה עם עוזר ה-AI שלך", action: "צ'אט", }, embed_document: { title: "הטמע מסמך", description: "הוסף את המסמך הראשון שלך לסביבת העבודה", action: "הטמע", }, setup_system_prompt: { title: "הגדר הנחיית מערכת", description: "הגדר את התנהגות עוזר ה-AI שלך", action: "הגדר", }, define_slash_command: { title: "הגדר פקודת סלאש", description: "צור פקודות מותאמות אישית עבור העוזר שלך", action: "הגדר", }, visit_community: { title: "בקר במרכז הקהילה", description: "גלה משאבים ותבניות מהקהילה", action: "עיין", }, }, }, quickLinks: { title: "קישורים מהירים", sendChat: "שלח צ'אט", embedDocument: "הטמע מסמך", createWorkspace: "צור סביבת עבודה", }, exploreMore: { title: "גלה תכונות נוספות", features: { customAgents: { title: "סוכני AI מותאמים אישית", description: "בנה סוכני AI ואוטומציות חזקות ללא קוד.", primaryAction: "צ'אט באמצעות @agent", secondaryAction: "בנה זרימת סוכן", }, slashCommands: { title: "פקודות סלאש", description: "חסוך זמן והזרק הנחיות באמצעות פקודות סלאש מותאמות אישית.", primaryAction: "צור פקודת סלאש", secondaryAction: "גלה במרכז הקהילה", }, systemPrompts: { title: "הנחיות מערכת", description: "שנה את הנחיית המערכת כדי להתאים אישית את תשובות ה-AI של סביבת עבודה.", primaryAction: "שנה הנחיית מערכת", secondaryAction: "נהל משתני הנחיה", }, }, }, announcements: { title: "עדכונים והודעות", }, resources: { title: "משאבים", links: { docs: "תיעוד", star: "סמן בכוכב ב-Github", }, keyboardShortcuts: "קיצורי מקלדת", }, }, "new-workspace": { title: "סביבת עבודה חדשה", placeholder: "סביבת העבודה שלי", }, "workspaces—settings": { general: "הגדרות כלליות", chat: "הגדרות צ'אט", vector: "מסד נתונים וקטורי", members: "חברים", agent: "תצורת סוכן", }, general: { vector: { title: "ספירת וקטורים", description: "המספר הכולל של וקטורים במסד הנתונים הווקטורי שלך.", }, names: { description: "זה ישנה רק את שם התצוגה של סביבת העבודה שלך.", }, message: { title: "הודעות צ'אט מוצעות", description: "התאם אישית את ההודעות שיוצעו למשתמשי סביבת העבודה שלך.", add: "הוסף הודעה חדשה", save: "שמור הודעות", heading: "הסבר לי", body: "את היתרונות של AnythingLLM", }, pfp: { title: "תמונת פרופיל של העוזר", description: "התאם אישית את תמונת הפרופיל של העוזר עבור סביבת עבודה זו.", image: "תמונת סביבת עבודה", remove: "הסר תמונת סביבת עבודה", }, delete: { title: "מחק סביבת עבודה", description: "מחק סביבת עבודה זו ואת כל הנתונים שלה. פעולה זו תמחק את סביבת העבודה עבור כל המשתמשים.", delete: "מחק סביבת עבודה", deleting: "מוחק סביבת עבודה...", "confirm-start": "אתה עומד למחוק את כל", "confirm-end": "סביבת העבודה שלך. פעולה זו תסיר את כל הטמעות הווקטורים ממסד הנתונים הווקטורי שלך.\n\nקבצי המקור המקוריים יישארו ללא שינוי. פעולה זו אינה הפיכה.", }, }, chat: { llm: { title: "ספק מודל שפה (LLM) של סביבת העבודה", description: "ספק ומודל ה-LLM הספציפיים שישמשו עבור סביבת עבודה זו. כברירת מחדל, הוא משתמש בספק ובהגדרות ה-LLM של המערכת.", search: "חפש בכל ספקי ה-LLM", }, model: { title: "מודל צ'אט של סביבת העבודה", description: "מודל הצ'אט הספציפי שישמש עבור סביבת עבודה זו. אם ריק, ישתמש בהעדפת ה-LLM של המערכת.", wait: "-- ממתין למודלים --", }, mode: { title: "מצב צ'אט", chat: { title: "צ'אט", "desc-start": "יספק תשובות עם הידע הכללי של מודל השפה", and: "וכן", "desc-end": "מהקשר המסמכים שנמצא.", }, query: { title: "שאילתה", "desc-start": "יספק תשובות", only: "רק", "desc-end": "אם נמצא הקשר במסמכים.", }, }, history: { title: "היסטוריית צ'אט", "desc-start": "מספר הצ'אטים הקודמים שייכללו בזיכרון לטווח קצר של התגובה.", recommend: "מומלץ 20. ", "desc-end": "יותר מ-45 צפוי להוביל לכשלים רציפים בצ'אט, תלוי בגודל ההודעה.", }, prompt: { title: "הנחיית מערכת", description: "ההנחיה שתשמש בסביבת עבודה זו. הגדר את ההקשר וההוראות לבינה המלאכותית כדי ליצור תגובה. עליך לספק הנחיה מנוסחת בקפידה כדי שה-AI יוכל ליצור תגובה רלוונטית ומדויקת.", history: { title: "היסטוריית הנחיות מערכת", clearAll: "נקה הכל", noHistory: "אין היסטוריית הנחיות מערכת זמינה", restore: "שחזר", delete: "מחק", publish: "פרסם במרכז הקהילה", deleteConfirm: "האם אתה בטוח שברצונך למחוק פריט היסטוריה זה?", clearAllConfirm: "האם אתה בטוח שברצונך לנקות את כל ההיסטוריה? לא ניתן לבטל פעולה זו.", expand: "הרחב", }, }, refusal: { title: "תגובת סירוב במצב שאילתה", "desc-start": "כאשר במצב", query: "שאילתה", "desc-end": ", ייתכן שתרצה להחזיר תגובת סירוב מותאמת אישית כאשר לא נמצא הקשר.", "tooltip-title": "למה אני רואה את זה?", "tooltip-description": "אתה נמצא במצב שאילתה, אשר משתמש רק במידע מהמסמכים שלך. עבור למצב צ'אט לשיחות גמישות יותר, או לחץ כאן כדי לבקר בתיעוד שלנו וללמוד עוד על מצבי צ'אט.", }, temperature: { title: "טמפרטורת LLM", "desc-start": 'הגדרה זו שולטת במידת ה"יצירתיות" של תגובות מודל השפה שלך.', "desc-end": "ככל שהמספר גבוה יותר, כך התגובה יצירתית יותר. עבור מודלים מסוימים, הדבר עלול להוביל לתגובות לא קוהרנטיות כאשר הערך גבוה מדי.", hint: "לרוב מודלי ה-LLM יש טווחי ערכים קבילים שונים. עיין במידע של ספק ה-LLM שלך.", }, }, "vector-workspace": { identifier: "מזהה מסד נתונים וקטורי", snippets: { title: "מקטעי הקשר מרביים", description: "הגדרה זו שולטת בכמות המרבית של מקטעי הקשר שיישלחו למודל השפה עבור כל צ'אט או שאילתה.", recommend: "מומלץ: 4", }, doc: { title: "סף דמיון מסמכים", description: "ציון הדמיון המינימלי הנדרש כדי שמקור ייחשב קשור לצ'אט. ככל שהמספר גבוה יותר, כך המקור חייב להיות דומה יותר לצ'אט.", zero: "ללא הגבלה", low: "נמוך (ציון דמיון ≥ 0.25)", medium: "בינוני (ציון דמיון ≥ 0.50)", high: "גבוה (ציון דמיון ≥ 0.75)", }, reset: { reset: "אפס מסד נתונים וקטורי", resetting: "מנקה וקטורים...", confirm: "אתה עומד לאפס את מסד הנתונים הווקטורי של סביבת עבודה זו. פעולה זו תסיר את כל הטמעות הווקטורים הקיימות.\n\nקבצי המקור המקוריים יישארו ללא שינוי. פעולה זו אינה הפיכה.", error: "לא ניתן היה לאפס את מסד הנתונים הווקטורי של סביבת העבודה!", success: "מסד הנתונים הווקטורי של סביבת העבודה אופס!", }, }, agent: { "performance-warning": "הביצועים של מודלי שפה שאינם תומכים במפורש בקריאת כלים (tool-calling) תלויים מאוד ביכולות ובדיוק של המודל. ייתכן שיכולות מסוימות יהיו מוגבלות או לא פונקציונליות.", provider: { title: "ספק מודל שפה (LLM) של סוכן סביבת העבודה", description: "ספק ומודל ה-LLM הספציפיים שישמשו עבור סוכן ה-@agent של סביבת עבודה זו.", }, mode: { chat: { title: "מודל צ'אט של סוכן סביבת העבודה", description: "מודל הצ'אט הספציפי שישמש עבור סוכן ה-@agent של סביבת עבודה זו.", }, title: "מודל סוכן של סביבת העבודה", description: "מודל ה-LLM הספציפי שישמש עבור סוכן ה-@agent של סביבת עבודה זו.", wait: "-- ממתין למודלים --", }, skill: { title: "כישורי סוכן ברירת מחדל", description: "שפר את היכולות הטבעיות של סוכן ברירת המחדל עם כישורים מובנים אלה. הגדרה זו חלה על כל סביבות העבודה.", rag: { title: "RAG וזיכרון לטווח ארוך", description: 'אפשר לסוכן למנף את המסמכים המקומיים שלך כדי לענות על שאילתות או בקש מהסוכן "לזכור" חלקי תוכן לאחזור זיכרון לטווח ארוך.', }, view: { title: "צפייה וסיכום מסמכים", description: "אפשר לסוכן לרשום ולסכם את התוכן של קבצי סביבת העבודה המוטמעים כעת.", }, scrape: { title: "גירוד אתרי אינטרנט", description: "אפשר לסוכן לבקר ולגרד את התוכן של אתרי אינטרנט.", }, generate: { title: "יצירת תרשימים", description: "אפשר לסוכן ברירת המחדל ליצור סוגים שונים של תרשימים מנתונים שסופקו או ניתנו בצ'אט.", }, save: { title: "יצירה ושמירה של קבצים לדפדפן", description: "אפשר לסוכן ברירת המחדל ליצור ולכתוב לקבצים שנשמרים וניתנים להורדה בדפדפן שלך.", }, web: { title: "חיפוש וגלישה באינטרנט בזמן אמת", "desc-start": "אפשר לסוכן שלך לחפש באינטרנט כדי לענות על שאלותיך על ידי התחברות לספק חיפוש אינטרנטי (SERP).", "desc-end": "חיפוש אינטרנטי במהלך סשנים של סוכן לא יעבוד עד שהגדרה זו תבוצע.", }, }, }, recorded: { title: "צ'אטים של סביבת עבודה", description: "אלה כל הצ'אטים וההודעות המוקלטים שנשלחו על ידי משתמשים, מסודרים לפי תאריך יצירתם.", export: "יצא", table: { id: "מזהה", by: "נשלח על ידי", workspace: "סביבת עבודה", prompt: "הנחיה", response: "תגובה", at: "נשלח ב", }, }, customization: { interface: { title: "העדפות ממשק משתמש", description: "הגדר את העדפות ממשק המשתמש שלך עבור AnythingLLM.", }, branding: { title: "מיתוג והתאמה אישית (Whitelabeling)", description: "התאם אישית את מופע ה-AnythingLLM שלך עם מיתוג מותאם אישית.", }, chat: { title: "צ'אט", description: "הגדר את העדפות הצ'אט שלך עבור AnythingLLM.", auto_submit: { title: "שליחה אוטומטית של קלט קולי", description: "שלח אוטומטית קלט קולי לאחר פרק זמן של שקט", }, auto_speak: { title: "הקראה אוטומטית של תגובות", description: "הקרא אוטומטית תגובות מה-AI", }, spellcheck: { title: "הפעל בדיקת איות", description: "הפעל או השבת בדיקת איות בשדה הקלט של הצ'אט", }, }, items: { theme: { title: "ערכת נושא", description: "בחר את ערכת הצבעים המועדפת עליך ליישום.", }, "show-scrollbar": { title: "הצג פס גלילה", description: "הפעל או השבת את פס הגלילה בחלון הצ'אט.", }, "support-email": { title: "אימייל תמיכה", description: "הגדר את כתובת האימייל לתמיכה שתהיה נגישה למשתמשים כאשר הם זקוקים לעזרה.", }, "app-name": { title: "שם", description: "הגדר שם שיוצג בדף ההתחברות לכל המשתמשים.", }, "chat-message-alignment": { title: "יישור הודעות צ'אט", description: "בחר את מצב יישור ההודעות בעת שימוש בממשק הצ'אט.", }, "display-language": { title: "שפת תצוגה", description: "בחר את השפה המועדפת להצגת ממשק המשתמש של AnythingLLM - כאשר תרגומים זמינים.", }, logo: { title: "לוגו מותג", description: "העלה את הלוגו המותאם אישית שלך להצגה בכל העמודים.", add: "הוסף לוגו מותאם אישית", recommended: "גודל מומלץ: 800x200", remove: "הסר", replace: "החלף", }, "welcome-messages": { title: "הודעות פתיחה", description: "התאם אישית את הודעות הפתיחה המוצגות למשתמשים שלך. רק משתמשים שאינם מנהלים יראו הודעות אלה.", new: "חדש", system: "מערכת", user: "משתמש", message: "הודעה", assistant: "עוזר הצ'אט של AnythingLLM", "double-click": "לחץ פעמיים לעריכה...", save: "שמור הודעות", }, "browser-appearance": { title: "מראה הדפדפן", description: "התאם אישית את מראה לשונית הדפדפן והכותרת כשהאפליקציה פתוחה.", tab: { title: "כותרת", description: "הגדר כותרת לשונית מותאמת אישית כשהאפליקציה פתוחה בדפדפן.", }, favicon: { title: "סמל אתר (Favicon)", description: "השתמש בסמל אתר מותאם אישית עבור לשונית הדפדפן.", }, }, "sidebar-footer": { title: "פריטי כותרת תחתונה בסרגל הצד", description: "התאם אישית את פריטי הכותרת התחתונה המוצגים בתחתית סרגל הצד.", icon: "סמל", link: "קישור", }, "render-html": { title: null, description: null, }, }, }, api: { title: "מפתחות API", description: "מפתחות API מאפשרים למחזיק בהם לגשת ולנהל באופן תכנותי את מופע AnythingLLM זה.", link: "קרא את תיעוד ה-API", generate: "צור מפתח API חדש", table: { key: "מפתח API", by: "נוצר על ידי", created: "נוצר", }, }, llm: { title: "העדפות מודל שפה (LLM)", description: "אלה האישורים וההגדרות עבור ספק הצ'אט וההטמעה המועדף עליך. חשוב שמפתחות אלה יהיו עדכניים ונכונים, אחרת AnythingLLM לא יפעל כראוי.", provider: "ספק LLM", providers: { azure_openai: { azure_service_endpoint: "נקודת קצה של שירות Azure", api_key: "מפתח API", chat_deployment_name: "שם פריסת צ'אט", chat_model_token_limit: "מגבלת אסימוני מודל צ'אט", model_type: "סוג מודל", default: "ברירת מחדל", reasoning: "היגיון", model_type_tooltip: null, }, }, }, transcription: { title: "העדפות מודל תמלול", description: "אלה האישורים וההגדרות עבור ספק מודל התמלול המועדף עליך. חשוב שמפתחות אלה יהיו עדכניים ונכונים, אחרת קובצי מדיה ושמע לא יתומללו.", provider: "ספק תמלול", "warn-start": "שימוש במודל ה-whisper המקומי על מכונות עם זיכרון RAM או מעבד מוגבלים עלול לגרום להאטה של AnythingLLM בעת עיבוד קובצי מדיה.", "warn-recommend": "אנו ממליצים על לפחות 2GB של זיכרון RAM והעלאת קבצים קטנים מ-10Mb.", "warn-end": "המודל המובנה יורד אוטומטית בשימוש הראשון.", }, embedding: { title: "העדפות הטמעה (Embedding)", "desc-start": "בעת שימוש במודל שפה שאינו תומך באופן מובנה במנוע הטמעה - ייתכן שתצטרך לציין בנוסף אישורים להטמעת טקסט.", "desc-end": "הטמעה היא תהליך של הפיכת טקסט לווקטורים. אישורים אלה נדרשים כדי להפוך את הקבצים וההנחיות שלך לפורמט ש-AnythingLLM יכול להשתמש בו לעיבוד.", provider: { title: "ספק הטמעה", }, }, text: { title: "העדפות פיצול טקסט וחלוקה למקטעים (Chunking)", "desc-start": "לפעמים, ייתכן שתרצה לשנות את הדרך ברירת המחדל שבה מסמכים חדשים מפוצלים ומחולקים למקטעים לפני הכנסתם למסד הנתונים הווקטורי שלך.", "desc-end": "עליך לשנות הגדרה זו רק אם אתה מבין כיצד פועל פיצול טקסט ואת תופעות הלוואי שלו.", size: { title: "גודל מקטע טקסט", description: "זוהי הכמות המרבית של תווים שיכולה להיות בווקטור יחיד.", recommend: "אורך מרבי של מודל הטמעה הוא", }, overlap: { title: "חפיפת מקטעי טקסט", description: "זוהי החפיפה המרבית של תווים המתרחשת במהלך חלוקה למקטעים בין שני מקטעי טקסט סמוכים.", }, }, vector: { title: "מסד נתונים וקטורי", description: "אלה האישורים וההגדרות לאופן פעולת מופע ה-AnythingLLM שלך. חשוב שמפתחות אלה יהיו עדכניים ונכונים.", provider: { title: "ספק מסד נתונים וקטורי", description: "אין צורך בתצורה עבור LanceDB.", }, }, embeddable: { title: "ווידג'טים של צ'אט להטמעה", description: "ווידג'טים של צ'אט להטמעה הם ממשקי צ'אט ציבוריים הקשורים לסביבת עבודה אחת. הם מאפשרים לך לבנות סביבות עבודה שתוכל לפרסם לעולם.", create: "צור הטמעה", table: { workspace: "סביבת עבודה", chats: "צ'אטים שנשלחו", active: "דומיינים פעילים", created: "נוצר", }, }, "embed-chats": { title: "היסטוריית צ'אט מוטמע", export: "יצא", description: "אלה כל הצ'אטים וההודעות המוקלטים מכל הטמעה שפרסמת.", table: { embed: "הטמעה", sender: "שולח", message: "הודעה", response: "תגובה", at: "נשלח ב", }, }, event: { title: "יומני אירועים", description: "צפה בכל הפעולות והאירועים המתרחשים במופע זה לצורך ניטור.", clear: "נקה יומני אירועים", table: { type: "סוג אירוע", user: "משתמש", occurred: "התרחש ב", }, }, privacy: { title: "פרטיות וטיפול בנתונים", description: "זוהי התצורה שלך לאופן שבו ספקים צד שלישי מחוברים ו-AnythingLLM מטפלים בנתונים שלך.", llm: "בחירת מודל שפה (LLM)", embedding: "העדפות הטמעה", vector: "מסד נתונים וקטורי", anonymous: "טלמטריה אנונימית מופעלת", }, connectors: { "search-placeholder": "חפש מחברי נתונים", "no-connectors": "לא נמצאו מחברי נתונים.", obsidian: { name: "Obsidian", description: "ייבא כספת Obsidian בלחיצה אחת.", vault_location: "מיקום כספת", vault_description: "בחר את תיקיית כספת ה-Obsidian שלך כדי לייבא את כל ההערות והחיבורים ביניהן.", selected_files: "נמצאו {{count}} קבצי markdown", importing: "מייבא כספת...", import_vault: "ייבא כספת", processing_time: "זה עשוי לקחת זמן מה, תלוי בגודל הכספת שלך.", vault_warning: "כדי למנוע התנגשויות, ודא שכספת ה-Obsidian שלך אינה פתוחה כעת.", }, github: { name: "מאגר GitHub", description: "ייבא מאגר GitHub ציבורי או פרטי שלם בלחיצה אחת.", URL: "כתובת URL של מאגר GitHub", URL_explained: "כתובת ה-URL של מאגר ה-GitHub שברצונך לאסוף.", token: "אסימון גישה של GitHub", optional: "אופציונלי", token_explained: "אסימון גישה למניעת הגבלת קצב.", token_explained_start: "ללא ", token_explained_link1: "אסימון גישה אישי", token_explained_middle: ", ה-API של GitHub עשוי להגביל את מספר הקבצים שניתן לאסוף עקב הגבלות קצב. תוכל ", token_explained_link2: "ליצור אסימון גישה זמני", token_explained_end: " כדי למנוע בעיה זו.", ignores: "התעלמות מקבצים", git_ignore: "רשום בפורמט .gitignore כדי להתעלם מקבצים ספציפיים במהלך האיסוף. הקש אנטר לאחר כל ערך שברצונך לשמור.", task_explained: "לאחר השלמה, כל הקבצים יהיו זמינים להטמעה בסביבות עבודה בבורר המסמכים.", branch: "ענף שממנו ברצונך לאסוף קבצים.", branch_loading: "-- טוען ענפים זמינים --", branch_explained: "ענף שממנו ברצונך לאסוף קבצים.", token_information: "ללא מילוי <b>אסימון הגישה של GitHub</b>, מחבר נתונים זה יוכל לאסוף רק את הקבצים ב<b>רמה העליונה</b> של המאגר עקב הגבלות הקצב של ה-API הציבורי של GitHub.", token_personal: "קבל אסימון גישה אישי בחינם עם חשבון GitHub כאן.", }, gitlab: { name: "מאגר GitLab", description: "ייבא מאגר GitLab ציבורי או פרטי שלם בלחיצה אחת.", URL: "כתובת URL של מאגר GitLab", URL_explained: "כתובת ה-URL של מאגר ה-GitLab שברצונך לאסוף.", token: "אסימון גישה של GitLab", optional: "אופציונלי", token_explained: "אסימון גישה למניעת הגבלת קצב.", token_description: "בחר ישויות נוספות לאחזור מה-API של GitLab.", token_explained_start: "ללא ", token_explained_link1: "אסימון גישה אישי", token_explained_middle:
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/vn/common.js
frontend/src/locales/vn/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: null, useCase: null, useCaseWork: null, useCasePersonal: null, useCaseOther: null, comment: null, commentPlaceholder: null, skip: null, thankYou: null, title: null, description: null, }, home: { title: null, getStarted: null, }, llm: { title: null, description: null, }, userSetup: { title: null, description: null, howManyUsers: null, justMe: null, myTeam: null, instancePassword: null, setPassword: null, passwordReq: null, passwordWarn: null, adminUsername: null, adminUsernameReq: null, adminPassword: null, adminPasswordReq: null, teamHint: null, }, data: { title: null, description: null, settingsHint: null, }, workspace: { title: null, description: null, }, }, common: { "workspaces-name": "Tên không gian làm việc", error: "Lỗi", success: "Thành công", user: "Người dùng", selection: "Lựa chọn mô hình", saving: "Đang lưu...", save: "Lưu thay đổi", previous: "Trang trước", next: "Trang tiếp theo", optional: null, yes: null, no: null, search: null, }, settings: { title: "Cài đặt hệ thống", system: "Cài đặt chung", invites: "Lời mời", users: "Người dùngs", workspaces: "Không gian làm việc", "workspace-chats": "Hội thoại không gian làm việc", customization: "Tùy chỉnh", "api-keys": "API nhà phát triển", llm: "LLM", transcription: "Chuyển đổi giọng nói", embedder: "Nhúng dữ liệu", "text-splitting": "Chia nhỏ & Tách văn bản", "voice-speech": "Giọng nói & Phát âm", "vector-database": "Cơ sở dữ liệu Vector", embeds: "Nhúng hội thoại", "embed-chats": "Nhúng hội thoại History", security: "Bảo mật", "event-logs": "Nhật ký sự kiện", privacy: "Quyền riêng tư & Dữ liệu", "ai-providers": "Nhà cung cấp AI", "agent-skills": "Kỹ năng của Agent", admin: "Quản trị viên", tools: "Công cụ", "experimental-features": "Tính năng thử nghiệm", contact: "Liên hệ hỗ trợ", "browser-extension": "Tiện ích trình duyệt", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Chào mừng đến với", "placeholder-username": "Người dùngname", "placeholder-password": "Mật khẩu", login: "Đăng nhập", validating: "Đang xác thực...", "forgot-pass": "Quên mật khẩu", reset: "Đặt lại", }, "sign-in": { start: "Đăng nhập vào", end: "tài khoản của bạn.", }, "password-reset": { title: "Mật khẩu Đặt lại", description: "Cung cấp thông tin cần thiết dưới đây để đặt lại mật khẩu.", "recovery-codes": "Mã khôi phục", "recovery-code": "Mã khôi phục {{index}}", "back-to-login": "Back to Đăng nhập", }, }, "new-workspace": { title: "Không gian làm việc mới", placeholder: "Không gian làm việc của tôi", }, "workspaces—settings": { general: "Cài đặt chung", chat: "Chat Settings", vector: "Cơ sở dữ liệu Vector", members: "Members", agent: "Agent Configuration", }, general: { vector: { title: "Vector Count", description: "Total number of vectors in your vector database.", }, names: { description: "This will only change the display name of your workspace.", }, message: { title: "Tin nhắn trò chuyện được gợi ý", description: "Customize the messages that will be suggested to your workspace users.", add: "Add new message", save: "Save Messages", heading: "Explain to me", body: "the benefits of AnythingLLM", }, pfp: { title: "Hình đại diện trợ lý", description: "Customize the profile image of the assistant for this workspace.", image: "Workspace Image", remove: "Remove Workspace Image", }, delete: { title: "Xóa không gian làm việc", description: "Delete this workspace and all of its data. This will delete the workspace for all users.", delete: "Xóa không gian làm việc", deleting: "Deleting Workspace...", "confirm-start": "You are about to delete your entire", "confirm-end": "workspace. This will remove all vector embeddings in your vector database.\n\nThe original source files will remain untouched. This action is irreversible.", }, }, chat: { llm: { title: "Workspace LLM Provider", description: "The specific LLM provider & model that will be used for this workspace. By default, it uses the system LLM provider and settings.", search: "Search all LLM providers", }, model: { title: "Workspace Chat model", description: "The specific chat model that will be used for this workspace. If empty, will use the system LLM preference.", wait: "-- waiting for models --", }, mode: { title: "Chat mode", chat: { title: "Chat", "desc-start": "will provide answers with the LLM's general knowledge", and: "and", "desc-end": "document context that is found.", }, query: { title: "Query", "desc-start": "will provide answers", only: "only", "desc-end": "if document context is found.", }, }, history: { title: "Chat History", "desc-start": "The number of previous chats that will be included in the response's short-term memory.", recommend: "Recommend 20. ", "desc-end": "Anything more than 45 is likely to lead to continuous chat failures depending on message size.", }, prompt: { title: "Prompt", description: "Nhập vào đây prompt cho không gian làm việc này. Định nghĩa ngữ cảnh và hướng dẫn cho AI để tạo ra một phản hồi liên quan và chính xác.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Query mode refusal response", "desc-start": "When in", query: "query", "desc-end": "mode, you may want to return a custom refusal response when no context is found.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM Temperature", "desc-start": 'This setting controls how "creative" your LLM responses will be.', "desc-end": "The higher the number the more creative. For some models this can lead to incoherent responses when set too high.", hint: "Most LLMs have various acceptable ranges of valid values. Consult your LLM provider for that information.", }, }, "vector-workspace": { identifier: "Vector database identifier", snippets: { title: "Max Context Snippets", description: "This setting controls the maximum amount of context snippets that will be sent to the LLM for per chat or query.", recommend: "Recommended: 4", }, doc: { title: "Document similarity threshold", description: "The minimum similarity score required for a source to be considered related to the chat. The higher the number, the more similar the source must be to the chat.", zero: "No restriction", low: "Low (similarity score ≥ .25)", medium: "Medium (similarity score ≥ .50)", high: "High (similarity score ≥ .75)", }, reset: { reset: "Đặt lại Cơ sở dữ liệu Vector", resetting: "Clearing vectors...", confirm: "You are about to reset this workspace's vector database. This will remove all vector embeddings currently embedded.\n\nThe original source files will remain untouched. This action is irreversible.", error: "Workspace vector database could not be reset!", success: "Workspace vector database was reset!", }, }, agent: { "performance-warning": "Hiệu suất của các LLM không hỗ trợ rõ ràng việc gọi công cụ phụ thuộc rất nhiều vào khả năng và độ chính xác của mô hình. Một số khả năng có thể bị hạn chế hoặc không hoạt động.", provider: { title: "Nhà cung cấp LLM cho Agent Workspace", description: "Nhà cung cấp LLM & mô hình cụ thể sẽ được sử dụng cho @agent agent của workspace này.", }, mode: { chat: { title: "Mô hình Chat cho Agent Workspace", description: "Mô hình chat cụ thể sẽ được sử dụng cho @agent agent của workspace này.", }, title: "Mô hình Agent Workspace", description: "Mô hình LLM cụ thể sẽ được sử dụng cho @agent agent của workspace này.", wait: "-- đang chờ mô hình --", }, skill: { title: "Kỹ năng agent mặc định", description: "Cải thiện khả năng tự nhiên của agent mặc định với những kỹ năng được xây dựng sẵn này. Thiết lập này áp dụng cho tất cả workspace.", rag: { title: "RAG & bộ nhớ dài hạn", description: 'Cho phép agent sử dụng tài liệu cục bộ của bạn để trả lời truy vấn hoặc yêu cầu agent "ghi nhớ" các phần nội dung để truy xuất bộ nhớ dài hạn.', }, view: { title: "Xem & tóm tắt tài liệu", description: "Cho phép agent liệt kê và tóm tắt nội dung của các tệp workspace hiện đang được nhúng.", }, scrape: { title: "Thu thập dữ liệu website", description: "Cho phép agent truy cập và thu thập nội dung của các website.", }, generate: { title: "Tạo biểu đồ", description: "Cho phép agent mặc định tạo các loại biểu đồ khác nhau từ dữ liệu được cung cấp hoặc đưa ra trong chat.", }, save: { title: "Tạo & lưu tệp", description: "Cho phép agent mặc định tạo và ghi vào các tệp có thể lưu vào máy tính của bạn.", }, web: { title: "Tìm kiếm web trực tiếp và duyệt web", "desc-start": "Cho phép agent của bạn tìm kiếm web để trả lời câu hỏi bằng cách kết nối với nhà cung cấp tìm kiếm web (SERP).", "desc-end": "Tìm kiếm web trong phiên agent sẽ không hoạt động cho đến khi được thiết lập.", }, }, }, recorded: { title: "Hội thoại không gian làm việc", description: "These are all the recorded chats and messages that have been sent by users ordered by their creation date.", export: "Export", table: { id: "Id", by: "Sent By", workspace: "Workspace", prompt: "Prompt", response: "Response", at: "Sent At", }, }, api: { title: "Khóa API", description: "API keys allow the holder to programmatically access and manage this AnythingLLM instance.", link: "Read the API documentation", generate: "Generate New API Key", table: { key: "API Key", by: "Created By", created: "Created", }, }, llm: { title: "LLM Preference", description: "These are the credentials and settings for your preferred LLM chat & embedding provider. Its important these keys are current and correct or else AnythingLLM will not function properly.", provider: "LLM Provider", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Chuyển đổi giọng nói Model Preference", description: "These are the credentials and settings for your preferred transcription model provider. Its important these keys are current and correct or else media files and audio will not transcribe.", provider: "Chuyển đổi giọng nói Provider", "warn-start": "Using the local whisper model on machines with limited RAM or CPU can stall AnythingLLM when processing media files.", "warn-recommend": "We recommend at least 2GB of RAM and upload files <10Mb.", "warn-end": "The built-in model will automatically download on the first use.", }, embedding: { title: "Tùy chọn nhúng", "desc-start": "When using an LLM that does not natively support an embedding engine - you may need to additionally specify credentials for embedding text.", "desc-end": "Embedding is the process of turning text into vectors. These credentials are required to turn your files and prompts into a format which AnythingLLM can use to process.", provider: { title: "Embedding Provider", }, }, text: { title: "Tùy chọn chia nhỏ và tách văn bản", "desc-start": "Sometimes, you may want to change the default way that new documents are split and chunked before being inserted into your vector database.", "desc-end": "You should only modify this setting if you understand how text splitting works and it's side effects.", size: { title: "Text Chunk Size", description: "This is the maximum length of characters that can be present in a single vector.", recommend: "Embed model maximum length is", }, overlap: { title: "Text Chunk Overlap", description: "This is the maximum overlap of characters that occurs during chunking between two adjacent text chunks.", }, }, vector: { title: "Cơ sở dữ liệu Vector", description: "These are the credentials and settings for how your AnythingLLM instance will function. It's important these keys are current and correct.", provider: { title: "Cơ sở dữ liệu Vector Provider", description: "There is no configuration needed for LanceDB.", }, }, embeddable: { title: "Tiện ích hội thoại nhúng", description: "Embeddable chat widgets are public facing chat interfaces that are tied to a single workspace. These allow you to build workspaces that then you can publish to the world.", create: "Tạo nhúng", table: { workspace: "Workspace", chats: "Sent Chats", active: "Active Domains", created: null, }, }, "embed-chats": { title: "Embed Chats", export: "Export", description: "These are all the recorded chats and messages from any embed that you have published.", table: { embed: "Embed", sender: "Sender", message: "Message", response: "Response", at: "Sent At", }, }, event: { title: "Nhật ký sự kiện", description: "View all actions and events happening on this instance for monitoring.", clear: "Clear Nhật ký sự kiện", table: { type: "Event Type", user: "Người dùng", occurred: "Occurred At", }, }, privacy: { title: "Quyền riêng tư & Dữ liệu-Handling", description: "This is your configuration for how connected third party providers and AnythingLLM handle your data.", llm: "LLM Selection", embedding: "Tùy chọn nhúng", vector: "Cơ sở dữ liệu Vector", anonymous: "Anonymous Telemetry Enabled", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, }, visit_community: { title: null, description: null, action: null, }, }, }, quickLinks: { title: null, sendChat: null, embedDocument: null, createWorkspace: null, }, exploreMore: { title: null, features: { customAgents: { title: null, description: null, primaryAction: null, secondaryAction: null, }, slashCommands: { title: null, description: null, primaryAction: null, secondaryAction: null, }, systemPrompts: { title: null, description: null, primaryAction: null, secondaryAction: null, }, }, }, announcements: { title: null, }, resources: { title: null, links: { docs: null, star: null, }, keyboardShortcuts: null, }, }, "keyboard-shortcuts": { title: null, shortcuts: { settings: null, workspaceSettings: null, home: null, workspaces: null, apiKeys: null, llmPreferences: null, chatSettings: null, help: null, showLLMSelector: null, }, }, community_hub: { publish: { system_prompt: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, submit: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, agent_flow: { public_description: null, private_description: null, success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, publish_button: null, submitting: null, submit: null, privacy_note: null, }, generic: { unauthenticated: { title: null, description: null, button: null, }, }, slash_command: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, command_label: null, command_description: null, command_placeholder: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, }, }, security: { title: "Bảo mật", multiuser: { title: "Multi-Người dùng Mode", description: "Set up your instance to support your team by activating Multi-Người dùng Mode.", enable: { "is-enable": "Multi-Người dùng Mode is Enabled", enable: "Enable Multi-Người dùng Mode", description: "By default, you will be the only admin. As an admin you will need to create accounts for all new users or admins. Do not lose your password as only an Quản trị viên user can reset passwords.", username: "Quản trị viên account username", password: "Quản trị viên account password", }, }, password: { title: "Mật khẩu Protection", description: "Protect your AnythingLLM instance with a password. If you forget this there is no recovery method so ensure you save this password.", "password-label": "Mật khẩu của instance", }, }, home: { welcome: "Chào mừng bạn", chooseWorkspace: "Chọn một khu vực làm việc để bắt đầu trò chuyện!", notAssigned: "Bạn hiện không được giao việc nào.\nLiên hệ với quản trị viên của bạn để yêu cầu truy cập vào khu vực làm việc.", goToWorkspace: 'Chuyển đến khu vực làm việc "{{workspace}}"', }, }; export default TRANSLATIONS;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/zh/common.js
frontend/src/locales/zh/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "欢迎使用", getStarted: "开始", }, llm: { title: "LLM 偏好", description: "AnythingLLM 可以与多家 LLM 提供商合作。这将是处理聊天的服务。", }, userSetup: { title: "用户设置", description: "配置你的用户设置。", howManyUsers: "将有多少用户使用此实例?", justMe: "只有我", myTeam: "我的团队", instancePassword: "实例密码", setPassword: "你想要设置密码吗?", passwordReq: "密码必须至少包含 8 个字符。", passwordWarn: "保存此密码很重要,因为没有恢复方法。", adminUsername: "管理员账户用户名", adminUsernameReq: "用户名必须至少为 6 个字符,并且只能包含小写字母、数字、下划线和连字符,不含空格。", adminPassword: "管理员账户密码", adminPasswordReq: "密码必须至少包含 8 个字符。", teamHint: "默认情况下,你将是唯一的管理员。完成初始设置后,你可以创建和邀请其他人成为用户或管理员。不要丢失你的密码,因为只有管理员可以重置密码。", }, data: { title: "数据处理与隐私", description: "我们致力于在涉及你的个人数据时提供透明度和控制权。", settingsHint: "这些设置可以随时在设置中重新配置。", }, survey: { title: "欢迎使用 AnythingLLM", description: "帮助我们为你的需求打造 AnythingLLM。可选。", email: "你的电子邮件是什么?", useCase: "你将如何使用 AnythingLLM?", useCaseWork: "用于工作", useCasePersonal: "用于个人使用", useCaseOther: "其他", comment: "你是如何听说 AnythingLLM 的?", commentPlaceholder: "Reddit,Twitter,GitHub,YouTube 等 - 让我们知道你是如何找到我们的!", skip: "跳过调查", thankYou: "感谢你的反馈!", }, workspace: { title: "创建你的第一个工作区", description: "创建你的第一个工作区并开始使用 AnythingLLM。", }, }, common: { "workspaces-name": "工作区名称", error: "错误", success: "成功", user: "用户", selection: "模型选择", save: "保存更改", saving: "保存中...", previous: "上一页", next: "下一页", optional: "可选", yes: "是", no: "否", search: "搜索", }, settings: { title: "设置", system: "系统", invites: "邀请", users: "用户", workspaces: "工作区", "workspace-chats": "对话历史记录", customization: "外观", interface: "界面偏好", branding: "品牌与白标签化", chat: "聊天", "api-keys": "开发者API", llm: "大语言模型(LLM)", transcription: "转录模型", embedder: "嵌入器(Embedder)", "text-splitting": "文本分割", "voice-speech": "语音和讲话", "vector-database": "向量数据库", embeds: "嵌入式对话", "embed-chats": "嵌入式对话历史记录", security: "用户与安全", "event-logs": "事件日志", privacy: "隐私与数据", "ai-providers": "人工智能提供商", "agent-skills": "代理技能", admin: "管理员", tools: "工具", "experimental-features": "实验功能", contact: "联系支持", "browser-extension": "浏览器扩展", "system-prompt-variables": "系统提示变量", }, login: { "multi-user": { welcome: "欢迎!", "placeholder-username": "请输入用户名", "placeholder-password": "请输入密码", login: "登录", validating: "正在验证...", "forgot-pass": "忘记密码", reset: "重置", }, "sign-in": { start: "登录你的", end: "账户", }, "password-reset": { title: "重置密码", description: "请提供以下必要信息以重置你的密码。", "recovery-codes": "恢复代码", "recovery-code": "恢复代码 {{index}}", "back-to-login": "返回登录", }, }, "main-page": { noWorkspaceError: "请在开始聊天前创建一个工作区。", checklist: { title: "入门指南", tasksLeft: "剩余任务", completed: "你正在成为AnythingLLM专家的路上!", dismiss: "关闭", tasks: { create_workspace: { title: "创建工作区", description: "创建你的第一个工作区以开始使用", action: "创建", }, send_chat: { title: "发送聊天", description: "开始与你的AI助手对话", action: "聊天", }, embed_document: { title: "嵌入文档", description: "添加你的第一个文档到工作区", action: "嵌入", }, setup_system_prompt: { title: "设置系统提示", description: "配置你的AI助手的行为", action: "设置", }, define_slash_command: { title: "定义斜杠命令", description: "为你的助手创建自定义命令", action: "定义", }, visit_community: { title: "访问社区中心", description: "探索社区资源和模板", action: "浏览", }, }, }, quickLinks: { title: "快捷链接", sendChat: "发送聊天", embedDocument: "嵌入文档", createWorkspace: "创建工作区", }, exploreMore: { title: "探索更多功能", features: { customAgents: { title: "自定义AI代理", description: "无需编程即可构建强大的AI代理和自动化流程。", primaryAction: "使用@agent聊天", secondaryAction: "构建代理流程", }, slashCommands: { title: "斜杠命令", description: "使用自定义斜杠命令节省时间并注入提示。", primaryAction: "创建斜杠命令", secondaryAction: "在中心探索", }, systemPrompts: { title: "系统提示", description: "修改系统提示以自定义工作区的AI回复。", primaryAction: "修改系统提示", secondaryAction: "管理提示变量", }, }, }, announcements: { title: "更新与公告", }, resources: { title: "资源", links: { docs: "文档", star: "在Github上加星标", }, keyboardShortcuts: "键盘快捷键", }, }, "new-workspace": { title: "新工作区", placeholder: "我的工作区", }, "workspaces—settings": { general: "通用设置", chat: "聊天设置", vector: "向量数据库", members: "成员", agent: "代理配置", }, general: { vector: { title: "向量数量", description: "向量数据库中的总向量数。", }, names: { description: "这只会更改工作区的显示名称。", }, message: { title: "建议的聊天消息", description: "自定义将向你的工作区用户建议的消息。", add: "添加新消息", save: "保存消息", heading: "向我解释", body: "AnythingLLM 的好处", }, pfp: { title: "助理头像", description: "为此工作区自定义助手的个人资料图像。", image: "工作区图像", remove: "移除工作区图像", }, delete: { title: "删除工作区", description: "删除此工作区及其所有数据。这将删除所有用户的工作区。", delete: "删除工作区", deleting: "正在删除工作区...", "confirm-start": "你即将删除整个", "confirm-end": "工作区。这将删除矢量数据库中的所有矢量嵌入。\n\n原始源文件将保持不变。此操作是不可逆转的。", }, }, chat: { llm: { title: "工作区 LLM 提供者", description: "将用于此工作区的特定 LLM 提供商和模型。默认情况下,它使用系统 LLM 提供程序和设置。", search: "搜索所有 LLM 提供商", }, model: { title: "工作区聊天模型", description: "将用于此工作区的特定聊天模型。如果为空,将使用系统 LLM 首选项。", wait: "-- 等待模型 --", }, mode: { title: "聊天模式", chat: { title: "聊天", "desc-start": "将提供 LLM 的一般知识", and: "和", "desc-end": "找到的文档上下文的答案。", }, query: { title: "查询", "desc-start": "将会提供答案", only: "仅当", "desc-end": "找到文档上下文时。", }, }, history: { title: "聊天历史记录", "desc-start": "将包含在响应的短期记忆中的先前聊天的数量。", recommend: "推荐 20。", "desc-end": "任何超过 45 的值都可能导致连续聊天失败,具体取决于消息大小。", }, prompt: { title: "系统提示词", description: "将在此工作区上使用的提示词。定义 AI 生成响应的上下文和指令。你应该提供精心设计的提示,以便人工智能可以生成相关且准确的响应。", history: { title: "系统提示词历史", clearAll: "全部清除", noHistory: "没有可用的系统提示词历史记录", restore: "恢复", delete: "删除", deleteConfirm: "您确定要删除此历史记录吗?", clearAllConfirm: "您确定要清除所有历史记录吗?此操作无法撤消。", expand: "展开", publish: "发布到社区中心", }, }, refusal: { title: "查询模式拒绝响应", "desc-start": "当处于", query: "查询", "desc-end": "模式时,当未找到上下文时,你可能希望返回自定义拒绝响应。", "tooltip-title": "我为什麽会看到这个?", "tooltip-description": "您处于查询模式,此模式仅使用您文件中的信息。切换到聊天模式以进行更灵活的对话,或点击此处访问我们的文件以了解更多关于聊天模式的信息。", }, temperature: { title: "LLM 温度", "desc-start": "此设置控制你的 LLM 回答的“创意”程度", "desc-end": "数字越高越有创意。对于某些模型,如果设置得太高,可能会导致响应不一致。", hint: "大多数 LLM 都有各种可接受的有效值范围。请咨询你的LLM提供商以获取该信息。", }, }, "vector-workspace": { identifier: "向量数据库标识符", snippets: { title: "最大上下文片段", description: "此设置控制每次聊天或查询将发送到 LLM 的上下文片段的最大数量。", recommend: "推荐: 4", }, doc: { title: "文档相似性阈值", description: "源被视为与聊天相关所需的最低相似度分数。数字越高,来源与聊天就越相似。", zero: "无限制", low: "低(相似度分数 ≥ .25)", medium: "中(相似度分数 ≥ .50)", high: "高(相似度分数 ≥ .75)", }, reset: { reset: "重置向量数据库", resetting: "清除向量...", confirm: "你将重置此工作区的矢量数据库。这将删除当前嵌入的所有矢量嵌入。\n\n原始源文件将保持不变。此操作是不可逆转的。", success: "向量数据库已重置。", error: "无法重置工作区向量数据库!", }, }, agent: { "performance-warning": "不明确支持工具调用的 LLMs 的性能高度依赖于模型的功能和准确性。有些能力可能受到限制或不起作用。", provider: { title: "工作区代理 LLM 提供商", description: "将用于此工作区的 @agent 代理的特定 LLM 提供商和模型。", }, mode: { chat: { title: "工作区代理聊天模型", description: "将用于此工作区的 @agent 代理的特定聊天模型。", }, title: "工作区代理模型", description: "将用于此工作区的 @agent 代理的特定 LLM 模型。", wait: "-- 等待模型 --", }, skill: { title: "默认代理技能", description: "使用这些预构建的技能提高默认代理的自然能力。此设置适用于所有工作区。", rag: { title: "检索增强生成和长期记忆", description: '允许代理利用你的本地文档来回答查询,或要求代理"记住"长期记忆检索的内容片段。', }, view: { title: "查看和总结文档", description: "允许代理列出和总结当前嵌入的工作区文件的内容。", }, scrape: { title: "抓取网站", description: "允许代理访问和抓取网站的内容。", }, generate: { title: "生成图表", description: "使默认代理能够从提供的数据或聊天中生成各种类型的图表。", }, save: { title: "生成并保存文件到浏览器", description: "使默认代理能够生成并写入文件,这些文件可以保存并在你的浏览器中下载。", }, web: { title: "实时网络搜索和浏览", "desc-start": "通过连接到网络搜索(搜索结果页)提供者,使你的代理能够搜索网络以回答你的问题。", "desc-end": "在代理会话期间,网络搜索将不起作用,直到此设置完成。", }, }, }, recorded: { title: "工作区聊天历史记录", description: "这些是用户发送的所有聊天记录和消息,按创建日期排序。", export: "导出", table: { id: "编号", by: "发送者", workspace: "工作区", prompt: "提示词", response: "响应", at: "发送时间", }, }, customization: { interface: { title: "界面偏好设置", description: "设置您的 AnythingLLM 界面偏好。", }, branding: { title: "品牌与白标设置", description: "使用自定义品牌对白标您的 AnythingLLM 实例。", }, chat: { title: "聊天", description: "设置您的 AnythingLLM 聊天偏好。", auto_submit: { title: "自动提交语音输入", description: "在静音一段时间后自动提交语音输入", }, auto_speak: { title: "自动语音回复", description: "自动朗读 AI 的回复内容", }, spellcheck: { title: "启用拼写检查", description: "在聊天输入框中启用或禁用拼写检查", }, }, items: { theme: { title: "主题", description: "选择您偏好的应用配色主题。", }, "show-scrollbar": { title: "显示滚动条", description: "启用或禁用聊天窗口中的滚动条。", }, "support-email": { title: "客服邮箱", description: "设置用户在需要帮助时可联系的客服邮箱地址。", }, "app-name": { title: "名称", description: "设置所有用户在登录页面看到的名称。", }, "chat-message-alignment": { title: "聊天消息对齐方式", description: "选择在聊天界面中使用的消息对齐模式。", }, "display-language": { title: "显示语言", description: "选择显示 AnythingLLM 界面所用的语言(若有翻译可用)。", }, logo: { title: "品牌标志", description: "上传您的自定义标志以在所有页面展示。", add: "添加自定义标志", recommended: "推荐尺寸:800 x 200", remove: "移除", replace: "替换", }, "welcome-messages": { title: "欢迎信息", description: "自定义显示给用户的欢迎信息。仅非管理员用户可见这些信息。", new: "新建", system: "系统", user: "用户", message: "信息", assistant: "AnythingLLM 聊天助手", "double-click": "双击进行编辑...", save: "保存信息", }, "browser-appearance": { title: "浏览器外观", description: "自定义应用打开时浏览器标签和标题的外观。", tab: { title: "标题", description: "设置应用在浏览器中打开时的自定义标签标题。", }, favicon: { title: "网站图标", description: "为浏览器标签使用自定义网站图标。", }, }, "sidebar-footer": { title: "侧边栏底部项目", description: "自定义显示在侧边栏底部的项目。", icon: "图标", link: "链接", }, "render-html": { title: null, description: null, }, }, }, api: { title: "API 密钥", description: "API 密钥允许持有者以编程方式访问和管理此 AnythingLLM 实例。", link: "阅读 API 文档", generate: "生成新的 API 密钥", table: { key: "API 密钥", by: "创建者", created: "创建时间", }, }, llm: { title: "LLM 首选项", description: "这些是你首选的 LLM 聊天和嵌入提供商的凭据和设置。重要的是,确保这些密钥是最新的和正确的,否则 AnythingLLM 将无法正常运行。", provider: "LLM 提供商", providers: { azure_openai: { azure_service_endpoint: "Azure 服务端点", api_key: "API 密钥", chat_deployment_name: "聊天部署名称", chat_model_token_limit: "聊天模型令牌限制", model_type: "模型类型", default: "预设", reasoning: "推理", model_type_tooltip: null, }, }, }, transcription: { title: "转录模型首选项", description: "这些是你的首选转录模型提供商的凭据和设置。重要的是这些密钥是最新且正确的,否则媒体文件和音频将无法转录。", provider: "转录提供商", "warn-start": "在 RAM 或 CPU 有限的计算机上使用本地耳语模型可能会在处理媒体文件时停止 AnythingLLM。", "warn-recommend": "我们建议至少 2GB RAM 并上传 <10Mb 的文件。", "warn-end": "内置模型将在首次使用时自动下载。", }, embedding: { title: "嵌入首选项", "desc-start": "当使用本身不支持嵌入引擎的 LLM 时,你可能需要额外指定用于嵌入文本的凭据。", "desc-end": "嵌入是将文本转换为矢量的过程。需要这些凭据才能将你的文件和提示转换为 AnythingLLM 可以用来处理的格式。", provider: { title: "嵌入引擎提供商", }, }, text: { title: "文本拆分和分块首选项", "desc-start": "有时,你可能希望更改新文档在插入到矢量数据库之前拆分和分块的默认方式。", "desc-end": "只有在了解文本拆分的工作原理及其副作用时,才应修改此设置。", size: { title: "文本块大小", description: "这是单个向量中可以存在的字符的最大长度。", recommend: "嵌入模型的最大长度为", }, overlap: { title: "文本块重叠", description: "这是在两个相邻文本块之间分块期间发生的最大字符重叠。", }, }, vector: { title: "向量数据库", description: "这些是 AnythingLLM 实例如何运行的凭据和设置。重要的是,这些密钥是最新的和正确的。", provider: { title: "向量数据库提供商", description: "LanceDB 不需要任何配置。", }, }, embeddable: { title: "可嵌入的聊天小部件", description: "可嵌入的聊天小部件是与单个工作区绑定的面向公众的聊天界面。这些允许你构建工作区,然后你可以将其发布到全世界。", create: "创建嵌入式对话", table: { workspace: "工作区", chats: "已发送聊天", active: "活动域", created: "建立", }, }, "embed-chats": { title: "嵌入的聊天历史纪录", export: "导出", description: "这些是你发布的任何嵌入的所有记录的聊天和消息。", table: { embed: "嵌入", sender: "发送者", message: "消息", response: "响应", at: "发送时间", }, }, event: { title: "事件日志", description: "查看此实例上发生的所有操作和事件以进行监控。", clear: "清除事件日志", table: { type: "事件类型", user: "用户", occurred: "发生时间", }, }, privacy: { title: "隐私和数据处理", description: "这是你对如何处理连接的第三方提供商和AnythingLLM的数据的配置。", llm: "LLM 选择", embedding: "嵌入首选项", vector: "向量数据库", anonymous: "启用匿名遥测", }, connectors: { "search-placeholder": "搜索数据连接器", "no-connectors": "未找到数据连接器。", github: { name: "GitHub 仓库", description: "一键导入整个公共或私有的 GitHub 仓库。", URL: "GitHub 仓库链接", URL_explained: "您希望收集的 GitHub 仓库链接。", token: "GitHub 访问令牌", optional: "可选", token_explained: "用于避免速率限制的访问令牌。", token_explained_start: "如果没有 ", token_explained_link1: "个人访问令牌", token_explained_middle: ",由于 GitHub API 的速率限制,可能无法收集所有文件。您可以 ", token_explained_link2: "创建临时访问令牌", token_explained_end: " 来避免此问题。", ignores: "文件忽略列表", git_ignore: ".gitignore 格式的列表,用于在收集过程中忽略特定文件。输入后按回车保存每一项。", task_explained: "完成后,所有文件将可用于在文档选择器中嵌入至工作区。", branch: "您希望收集文件的分支。", branch_loading: "-- 正在加载可用分支 --", branch_explained: "您希望收集文件的分支。", token_information: "如果未填写 <b>GitHub 访问令牌</b>,由于 GitHub 的公共 API 限制,此数据连接器将只能收集仓库的 <b>顶层</b> 文件。", token_personal: "在此处使用 GitHub 账户获取免费的个人访问令牌。", }, gitlab: { name: "GitLab 仓库", description: "一键导入整个公共或私有的 GitLab 仓库。", URL: "GitLab 仓库链接", URL_explained: "您希望收集的 GitLab 仓库链接。", token: "GitLab 访问令牌", optional: "可选", token_explained: "用于避免速率限制的访问令牌。", token_description: "选择要从 GitLab API 获取的额外实体。", token_explained_start: "如果没有 ", token_explained_link1: "个人访问令牌", token_explained_middle: ",由于 GitLab API 的速率限制,可能无法收集所有文件。您可以 ", token_explained_link2: "创建临时访问令牌", token_explained_end: " 来避免此问题。", fetch_issues: "将问题作为文档获取", ignores: "文件忽略列表", git_ignore: ".gitignore 格式的列表,用于在收集过程中忽略特定文件。输入后按回车保存每一项。", task_explained: "完成后,所有文件将可用于在文档选择器中嵌入至工作区。", branch: "您希望收集文件的分支", branch_loading: "-- 正在加载可用分支 --", branch_explained: "您希望收集文件的分支。", token_information: "如果未填写 <b>GitLab 访问令牌</b>,由于 GitLab 的公共 API 限制,此数据连接器将只能收集仓库的 <b>顶层</b> 文件。", token_personal: "在此处使用 GitLab 账户获取免费的个人访问令牌。", }, youtube: { name: "YouTube 字幕", description: "通过链接导入整个 YouTube 视频的转录内容。", URL: "YouTube 视频链接", URL_explained_start: "输入任何 YouTube 视频的链接以获取其转录内容。视频必须启用 ", URL_explained_link: "隐藏字幕", URL_explained_end: " 功能。", task_explained: "完成后,转录内容将可用于在文档选择器中嵌入至工作区。", language: "字幕语言", language_explained: "选择您希望收集的字幕语言。", loading_languages: "-- 正在加载可用语言 --", }, "website-depth": { name: "批量链接爬虫", description: "爬取一个网站及其指定深度的子链接。", URL: "网站链接", URL_explained: "您希望爬取的网站链接。", depth: "爬取深度", depth_explained: "这是爬虫从起始链接向下跟踪的子链接层级数量。", max_pages: "最大页面数", max_pages_explained: "要爬取的最大链接数。", task_explained: "完成后,所有抓取的内容将可用于在文档选择器中嵌入至工作区。", }, confluence: { name: "Confluence", description: "一键导入整个 Confluence 页面。", deployment_type: "Confluence 部署类型", deployment_type_explained: "判断您的 Confluence 实例是部署在 Atlassian 云端还是自托管。", base_url: "Confluence 基础链接", base_url_explained: "这是您 Confluence 空间的基础链接。", space_key: "Confluence 空间标识", space_key_explained: "您将使用的 Confluence 实例空间标识,通常以 ~ 开头。", username: "Confluence 用户名", username_explained: "您的 Confluence 用户名", auth_type: "Confluence 认证方式", auth_type_explained: "选择您希望用于访问 Confluence 页面内容的认证方式。", auth_type_username: "用户名和访问令牌", auth_type_personal: "个人访问令牌", token: "Confluence 访问令牌", token_explained_start: "您需要提供访问令牌用于认证。您可以在此生成访问令牌", token_explained_link: "此处", token_desc: "用于认证的访问令牌", pat_token: "Confluence 个人访问令牌", pat_token_explained: "您的 Confluence 个人访问令牌。", task_explained: "完成后,页面内容将可用于在文档选择器中嵌入至工作区。", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "文档", "data-connectors": "数据连接器", "desktop-only": "这些设置只能在桌面设备上编辑。请使用桌面访问此页面以继续操作。", dismiss: "关闭", editing: "正在编辑", }, directory: { "my-documents": "我的文档", "new-folder": "新建文件夹", "search-document": "搜索文档", "no-documents": "暂无文档", "move-workspace": "移动到工作区", name: "名称", "delete-confirmation": "您确定要删除这些文件和文件夹吗?\n这将从系统中移除这些文件,并自动将其从所有关联工作区中移除。\n此操作无法撤销。", "removing-message": "正在删除 {{count}} 个文档和 {{folderCount}} 个文件夹,请稍候。", "move-success": "成功移动了 {{count}} 个文档。", date: "日期", type: "类型", no_docs: "暂无文档", select_all: "全选", deselect_all: "取消全选", remove_selected: "移除所选", costs: "*嵌入时一次性费用", save_embed: "保存并嵌入", }, upload: { "processor-offline": "文档处理器不可用", "processor-offline-desc": "当前文档处理器离线,无法上传文件。请稍后再试。", "click-upload": "点击上传或拖放文件", "file-types": "支持文本文件、CSV、电子表格、音频文件等!", "or-submit-link": "或提交链接", "placeholder-link": "https://example.com", fetching: "正在获取...", "fetch-website": "获取网站", "privacy-notice": "这些文件将被上传到此 AnythingLLM 实例上的文档处理器。这些文件不会发送或共享给第三方。", }, pinning: { what_pinning: "什么是文档固定?", pin_explained_block1: "当您在 AnythingLLM 中<b>固定</b>一个文档时,我们会将整个文档内容注入到您的提示窗口中,让 LLM 能够完全理解它。", pin_explained_block2: "这在 <b>大上下文模型</b> 或关键的小文件中效果最佳。", pin_explained_block3: "如果默认情况下无法从 AnythingLLM 获取满意的答案,固定文档是提高答案质量的好方法。", accept: "好的,知道了", }, watching: { what_watching: "什么是监控文档?", watch_explained_block1: "当您在 AnythingLLM 中<b>监控</b>一个文档时,我们会<i>自动</i>按定期间隔从其原始来源同步文档内容。系统会自动更新在所有使用该文档的工作区中的内容。", watch_explained_block2: "此功能当前仅支持在线内容,不适用于手动上传的文档。", watch_explained_block3_start: "您可以在 ", watch_explained_block3_link: "文件管理器", watch_explained_block3_end: " 管理视图中管理被监控的文档。", accept: "好的,知道了", }, obsidian: { name: "Obsidian", description: "一键导入 Obsidian 仓库。", vault_location: "仓库位置", vault_description: "选择你的 Obsidian 仓库文件夹,以导入所有笔记及其关联。", selected_files: "找到 {{count}} 个 Markdown 文件", importing: "正在导入保险库…", import_vault: "导入保险库", processing_time: "根据你的仓库大小,这可能需要一些时间。", vault_warning: "为避免冲突,请确保你的 Obsidian 仓库当前未被打开。", }, }, chat_window: { welcome: "欢迎来到你的新工作区。", get_started: "开始使用,请先", get_started_default: "开始使用", upload: "上传文档", or: "或", send_chat: "发送一条对话。", send_message: "发送消息", attach_file: "向此对话附加文件", slash: "查看所有可用的聊天斜杠命令。", agents: "查看所有可用的聊天助手。", text_size: "更改文字大小。", microphone: "语音输入你的提示。", send: "将提示消息发送到工作区", attachments_processing: "附件正在处理,请稍候……", tts_speak_message: "TTS 播报消息", copy: "复制", regenerate: "重新", regenerate_response: "重新回应", good_response: "反应良好", more_actions: "更多操作", hide_citations: "隐藏引文", show_citations: "显示引文", pause_tts_speech_message: "暂停 TTS 语音播报", fork: "分叉", delete: "删除", save_submit: "提交保存", cancel: "取消", edit_prompt: "编辑问题", edit_response: "编辑回应", at_agent: "代理", default_agent_description: " - 此工作区的预设代理。", custom_agents_coming_soon: "自定义代理功能即将推出!", slash_reset: "/reset", preset_reset_description: "清除聊天纪录并开始新的聊天", add_new_preset: "新增预设", command: "指令", your_command: "你的指令", placeholder_prompt: "提示范例", description: "描述", placeholder_description: "描述范例", save: "保存", small: "小", normal: "一般", large: "大",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/en/common.js
frontend/src/locales/en/common.js
const TRANSLATIONS = { onboarding: { home: { title: "Welcome to", getStarted: "Get Started", }, llm: { title: "LLM Preference", description: "AnythingLLM can work with many LLM providers. This will be the service which handles chatting.", }, userSetup: { title: "User Setup", description: "Configure your user settings.", howManyUsers: "How many users will be using this instance?", justMe: "Just me", myTeam: "My team", instancePassword: "Instance Password", setPassword: "Would you like to set up a password?", passwordReq: "Passwords must be at least 8 characters.", passwordWarn: "It's important to save this password because there is no recovery method.", adminUsername: "Admin account username", adminUsernameReq: "Username must be at least 6 characters long and only contain lowercase letters, numbers, underscores, and hyphens with no spaces.", adminPassword: "Admin account password", adminPasswordReq: "Passwords must be at least 8 characters.", teamHint: "By default, you will be the only admin. Once onboarding is completed you can create and invite others to be users or admins. Do not lose your password as only admins can reset passwords.", }, data: { title: "Data Handling & Privacy", description: "We are committed to transparency and control when it comes to your personal data.", settingsHint: "These settings can be reconfigured at any time in the settings.", }, survey: { title: "Welcome to AnythingLLM", description: "Help us make AnythingLLM built for your needs. Optional.", email: "What's your email?", useCase: "What will you use AnythingLLM for?", useCaseWork: "For work", useCasePersonal: "For personal use", useCaseOther: "Other", comment: "How did you hear about AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. - Let us know how you found us!", skip: "Skip Survey", thankYou: "Thank you for your feedback!", }, workspace: { title: "Create your first workspace", description: "Create your first workspace and get started with AnythingLLM.", }, }, common: { "workspaces-name": "Workspace Name", error: "error", success: "success", user: "User", selection: "Model Selection", saving: "Saving...", save: "Save changes", previous: "Previous Page", next: "Next Page", optional: "Optional", yes: "Yes", no: "No", search: "Search", }, home: { welcome: "Welcome", chooseWorkspace: "Choose a workspace to start chatting!", notAssigned: "You currently aren't assigned to any workspaces.\nPlease contact your administrator to request access to a workspace.", goToWorkspace: 'Go to "{{workspace}}"', }, // Setting Sidebar menu items. settings: { title: "Instance Settings", system: "General Settings", invites: "Invites", users: "Users", workspaces: "Workspaces", "workspace-chats": "Workspace Chats", customization: "Customization", interface: "UI Preferences", branding: "Branding & Whitelabeling", chat: "Chat", "api-keys": "Developer API", llm: "LLM", transcription: "Transcription", embedder: "Embedder", "text-splitting": "Text Splitter & Chunking", "voice-speech": "Voice & Speech", "vector-database": "Vector Database", embeds: "Chat Embed", "embed-chats": "Chat Embed History", security: "Security", "event-logs": "Event Logs", privacy: "Privacy & Data", "ai-providers": "AI Providers", "agent-skills": "Agent Skills", admin: "Admin", tools: "Tools", "system-prompt-variables": "System Prompt Variables", "experimental-features": "Experimental Features", contact: "Contact Support", "browser-extension": "Browser Extension", }, // Page Definitions login: { "multi-user": { welcome: "Welcome to", "placeholder-username": "Username", "placeholder-password": "Password", login: "Login", validating: "Validating...", "forgot-pass": "Forgot password", reset: "Reset", }, "sign-in": { start: "Sign in to your", end: "account.", }, "password-reset": { title: "Password Reset", description: "Provide the necessary information below to reset your password.", "recovery-codes": "Recovery Codes", "recovery-code": "Recovery Code {{index}}", "back-to-login": "Back to Login", }, }, "main-page": { noWorkspaceError: "Please create a workspace before starting a chat.", checklist: { title: "Getting Started", tasksLeft: "tasks left", completed: "You're on your way to becoming an AnythingLLM expert!", dismiss: "close", tasks: { create_workspace: { title: "Create a workspace", description: "Create your first workspace to get started", action: "Create", }, send_chat: { title: "Send a chat", description: "Start a conversation with your AI assistant", action: "Chat", }, embed_document: { title: "Embed a document", description: "Add your first document to your workspace", action: "Embed", }, setup_system_prompt: { title: "Set up a system prompt", description: "Configure your AI assistant's behavior", action: "Set Up", }, define_slash_command: { title: "Define a slash command", description: "Create custom commands for your assistant", action: "Define", }, visit_community: { title: "Visit Community Hub", description: "Explore community resources and templates", action: "Browse", }, }, }, quickLinks: { title: "Quick Links", sendChat: "Send Chat", embedDocument: "Embed a Document", createWorkspace: "Create Workspace", }, exploreMore: { title: "Explore more features", features: { customAgents: { title: "Custom AI Agents", description: "Build powerful AI Agents and automations with no code.", primaryAction: "Chat using @agent", secondaryAction: "Build an agent flow", }, slashCommands: { title: "Slash Commands", description: "Save time and inject prompts using custom slash commands.", primaryAction: "Create a Slash Command", secondaryAction: "Explore on Hub", }, systemPrompts: { title: "System Prompts", description: "Modify the system prompt to customize the AI replies of a workspace.", primaryAction: "Modify a System Prompt", secondaryAction: "Manage prompt variables", }, }, }, announcements: { title: "Updates & Announcements", }, resources: { title: "Resources", links: { docs: "Docs", star: "Star on Github", }, keyboardShortcuts: "Keyboard Shortcuts", }, }, "new-workspace": { title: "New Workspace", placeholder: "My Workspace", }, // Workspace Settings menu items "workspaces—settings": { general: "General Settings", chat: "Chat Settings", vector: "Vector Database", members: "Members", agent: "Agent Configuration", }, // General Appearance general: { vector: { title: "Vector Count", description: "Total number of vectors in your vector database.", }, names: { description: "This will only change the display name of your workspace.", }, message: { title: "Suggested Chat Messages", description: "Customize the messages that will be suggested to your workspace users.", add: "Add new message", save: "Save Messages", heading: "Explain to me", body: "the benefits of AnythingLLM", }, pfp: { title: "Assistant Profile Image", description: "Customize the profile image of the assistant for this workspace.", image: "Workspace Image", remove: "Remove Workspace Image", }, delete: { title: "Delete Workspace", description: "Delete this workspace and all of its data. This will delete the workspace for all users.", delete: "Delete Workspace", deleting: "Deleting Workspace...", "confirm-start": "You are about to delete your entire", "confirm-end": "workspace. This will remove all vector embeddings in your vector database.\n\nThe original source files will remain untouched. This action is irreversible.", }, }, // Chat Settings chat: { llm: { title: "Workspace LLM Provider", description: "The specific LLM provider & model that will be used for this workspace. By default, it uses the system LLM provider and settings.", search: "Search all LLM providers", }, model: { title: "Workspace Chat model", description: "The specific chat model that will be used for this workspace. If empty, will use the system LLM preference.", wait: "-- waiting for models --", }, mode: { title: "Chat mode", chat: { title: "Chat", "desc-start": "will provide answers with the LLM's general knowledge", and: "and", "desc-end": "document context that is found.", }, query: { title: "Query", "desc-start": "will provide answers", only: "only", "desc-end": "if document context is found.", }, }, history: { title: "Chat History", "desc-start": "The number of previous chats that will be included in the response's short-term memory.", recommend: "Recommend 20. ", "desc-end": "Anything more than 45 is likely to lead to continuous chat failures depending on message size.", }, prompt: { title: "System Prompt", description: "The prompt that will be used on this workspace. Define the context and instructions for the AI to generate a response. You should provide a carefully crafted prompt so the AI can generate a relevant and accurate response.", history: { title: "System Prompt History", clearAll: "Clear All", noHistory: "No system prompt history available", restore: "Restore", delete: "Delete", publish: "Publish to Community Hub", deleteConfirm: "Are you sure you want to delete this history item?", clearAllConfirm: "Are you sure you want to clear all history? This action cannot be undone.", expand: "Expand", }, }, refusal: { title: "Query mode refusal response", "desc-start": "When in", query: "query", "desc-end": "mode, you may want to return a custom refusal response when no context is found.", "tooltip-title": "Why am I seeing this?", "tooltip-description": "You are in query mode, which only uses information from your documents. Switch to chat mode for more flexible conversations, or click here to visit our documentation to learn more about chat modes.", }, temperature: { title: "LLM Temperature", "desc-start": 'This setting controls how "creative" your LLM responses will be.', "desc-end": "The higher the number the more creative. For some models this can lead to incoherent responses when set too high.", hint: "Most LLMs have various acceptable ranges of valid values. Consult your LLM provider for that information.", }, }, // Vector Database "vector-workspace": { identifier: "Vector database identifier", snippets: { title: "Max Context Snippets", description: "This setting controls the maximum amount of context snippets that will be sent to the LLM for per chat or query.", recommend: "Recommended: 4", }, doc: { title: "Document similarity threshold", description: "The minimum similarity score required for a source to be considered related to the chat. The higher the number, the more similar the source must be to the chat.", zero: "No restriction", low: "Low (similarity score ≥ .25)", medium: "Medium (similarity score ≥ .50)", high: "High (similarity score ≥ .75)", }, reset: { reset: "Reset Vector Database", resetting: "Clearing vectors...", confirm: "You are about to reset this workspace's vector database. This will remove all vector embeddings currently embedded.\n\nThe original source files will remain untouched. This action is irreversible.", error: "Workspace vector database could not be reset!", success: "Workspace vector database was reset!", }, }, // Agent Configuration agent: { "performance-warning": "Performance of LLMs that do not explicitly support tool-calling is highly dependent on the model's capabilities and accuracy. Some abilities may be limited or non-functional.", provider: { title: "Workspace Agent LLM Provider", description: "The specific LLM provider & model that will be used for this workspace's @agent agent.", }, mode: { chat: { title: "Workspace Agent Chat model", description: "The specific chat model that will be used for this workspace's @agent agent.", }, title: "Workspace Agent model", description: "The specific LLM model that will be used for this workspace's @agent agent.", wait: "-- waiting for models --", }, skill: { title: "Default agent skills", description: "Improve the natural abilities of the default agent with these pre-built skills. This set up applies to all workspaces.", rag: { title: "RAG & long-term memory", description: 'Allow the agent to leverage your local documents to answer a query or ask the agent to "remember" pieces of content for long-term memory retrieval.', }, view: { title: "View & summarize documents", description: "Allow the agent to list and summarize the content of workspace files currently embedded.", }, scrape: { title: "Scrape websites", description: "Allow the agent to visit and scrape the content of websites.", }, generate: { title: "Generate charts", description: "Enable the default agent to generate various types of charts from data provided or given in chat.", }, save: { title: "Generate & save files", description: "Enable the default agent to generate and write to files that can be saved to your computer.", }, web: { title: "Live web search and browsing", "desc-start": "Enable your agent to search the web to answer your questions by connecting to a web-search (SERP) provider.", "desc-end": "Web search during agent sessions will not work until this is set up.", }, }, }, // Workspace Chats recorded: { title: "Workspace Chats", description: "These are all the recorded chats and messages that have been sent by users ordered by their creation date.", export: "Export", table: { id: "ID", by: "Sent By", workspace: "Workspace", prompt: "Prompt", response: "Response", at: "Sent At", }, }, customization: { interface: { title: "UI Preferences", description: "Set your UI preferences for AnythingLLM.", }, branding: { title: "Branding & Whitelabeling", description: "White-label your AnythingLLM instance with custom branding.", }, chat: { title: "Chat", description: "Set your chat preferences for AnythingLLM.", auto_submit: { title: "Auto-Submit Speech Input", description: "Automatically submit speech input after a period of silence", }, auto_speak: { title: "Auto-Speak Responses", description: "Automatically speak responses from the AI", }, spellcheck: { title: "Enable Spellcheck", description: "Enable or disable spellcheck in the chat input field", }, }, items: { theme: { title: "Theme", description: "Select your preferred color theme for the application.", }, "show-scrollbar": { title: "Show Scrollbar", description: "Enable or disable the scrollbar in the chat window.", }, "support-email": { title: "Support Email", description: "Set the support email address that should be accessible by users when they need help.", }, "app-name": { title: "Name", description: "Set a name that is displayed on the login page to all users.", }, "chat-message-alignment": { title: "Chat Message Alignment", description: "Select the message alignment mode when using the chat interface.", }, "display-language": { title: "Display Language", description: "Select the preferred language to render AnythingLLM's UI in - when translations are available.", }, logo: { title: "Brand Logo", description: "Upload your custom logo to showcase on all pages.", add: "Add a custom logo", recommended: "Recommended size: 800 x 200", remove: "Remove", replace: "Replace", }, "welcome-messages": { title: "Welcome Messages", description: "Customize the welcome messages displayed to your users. Only non-admin users will see these messages.", new: "New", system: "system", user: "user", message: "message", assistant: "AnythingLLM Chat Assistant", "double-click": "Double click to edit...", save: "Save Messages", }, "browser-appearance": { title: "Browser Appearance", description: "Customize the appearance of the browser tab and title when the app is open.", tab: { title: "Title", description: "Set a custom tab title when the app is open in a browser.", }, favicon: { title: "Favicon", description: "Use a custom favicon for the browser tab.", }, }, "sidebar-footer": { title: "Sidebar Footer Items", description: "Customize the footer items displayed on the bottom of the sidebar.", icon: "Icon", link: "Link", }, "render-html": { title: "Render HTML in chat", description: "Render HTML responses in assistant responses.\nThis can result in a much higher fidelity of response quality, but can also lead to potential security risks.", }, }, }, // API Keys api: { title: "API Keys", description: "API keys allow the holder to programmatically access and manage this AnythingLLM instance.", link: "Read the API documentation", generate: "Generate New API Key", table: { key: "API Key", by: "Created By", created: "Created", }, }, llm: { title: "LLM Preference", description: "These are the credentials and settings for your preferred LLM chat & embedding provider. It is important that these keys are current and correct, or else AnythingLLM will not function properly.", provider: "LLM Provider", providers: { azure_openai: { azure_service_endpoint: "Azure Service Endpoint", api_key: "API Key", chat_deployment_name: "Chat Deployment Name", chat_model_token_limit: "Chat Model Token Limit", model_type: "Model Type", model_type_tooltip: "If your deployment uses a reasoning model (o1, o1-mini, o3-mini, etc.), set this to “Reasoning”. Otherwise, your chat requests may fail.", default: "Default", reasoning: "Reasoning", }, }, }, transcription: { title: "Transcription Model Preference", description: "These are the credentials and settings for your preferred transcription model provider. Its important these keys are current and correct or else media files and audio will not transcribe.", provider: "Transcription Provider", "warn-start": "Using the local whisper model on machines with limited RAM or CPU can stall AnythingLLM when processing media files.", "warn-recommend": "We recommend at least 2GB of RAM and upload files <10Mb.", "warn-end": "The built-in model will automatically download on the first use.", }, embedding: { title: "Embedding Preference", "desc-start": "When using an LLM that does not natively support an embedding engine - you may need to additionally specify credentials for embedding text.", "desc-end": "Embedding is the process of turning text into vectors. These credentials are required to turn your files and prompts into a format which AnythingLLM can use to process.", provider: { title: "Embedding Provider", }, }, text: { title: "Text splitting & Chunking Preferences", "desc-start": "Sometimes, you may want to change the default way that new documents are split and chunked before being inserted into your vector database.", "desc-end": "You should only modify this setting if you understand how text splitting works and it's side effects.", size: { title: "Text Chunk Size", description: "This is the maximum length of characters that can be present in a single vector.", recommend: "Embed model maximum length is", }, overlap: { title: "Text Chunk Overlap", description: "This is the maximum overlap of characters that occurs during chunking between two adjacent text chunks.", }, }, // Vector Database vector: { title: "Vector Database", description: "These are the credentials and settings for how your AnythingLLM instance will function. It's important these keys are current and correct.", provider: { title: "Vector Database Provider", description: "There is no configuration needed for LanceDB.", }, }, // Embeddable Chat Widgets embeddable: { title: "Embeddable Chat Widgets", description: "Embeddable chat widgets are public facing chat interfaces that are tied to a single workspace. These allow you to build workspaces that then you can publish to the world.", create: "Create embed", table: { workspace: "Workspace", chats: "Sent Chats", active: "Active Domains", created: "Created", }, }, "embed-chats": { title: "Embed Chat History", export: "Export", description: "These are all the recorded chats and messages from any embed that you have published.", table: { embed: "Embed", sender: "Sender", message: "Message", response: "Response", at: "Sent At", }, }, security: { title: "Security", multiuser: { title: "Multi-User Mode", description: "Set up your instance to support your team by activating Multi-User Mode.", enable: { "is-enable": "Multi-User Mode is Enabled", enable: "Enable Multi-User Mode", description: "By default, you will be the only admin. As an admin you will need to create accounts for all new users or admins. Do not lose your password as only an Admin user can reset passwords.", username: "Admin account username", password: "Admin account password", }, }, password: { title: "Password Protection", description: "Protect your AnythingLLM instance with a password. If you forget this there is no recovery method so ensure you save this password.", "password-label": "Instance Password", }, }, // Event Logs event: { title: "Event Logs", description: "View all actions and events happening on this instance for monitoring.", clear: "Clear Event Logs", table: { type: "Event Type", user: "User", occurred: "Occurred At", }, }, // Privacy & Data-Handling privacy: { title: "Privacy & Data-Handling", description: "This is your configuration for how connected third party providers and AnythingLLM handle your data.", llm: "LLM Provider", embedding: "Embedding Preference", vector: "Vector Database", anonymous: "Anonymous Telemetry Enabled", }, connectors: { "search-placeholder": "Search data connectors", "no-connectors": "No data connectors found.", obsidian: { name: "Obsidian", description: "Import Obsidian vault in a single click.", vault_location: "Vault Location", vault_description: "Select your Obsidian vault folder to import all notes and their connections.", selected_files: "Found {{count}} markdown files", importing: "Importing vault...", import_vault: "Import Vault", processing_time: "This may take a while depending on the size of your vault.", vault_warning: "To avoid any conflicts, make sure your Obsidian vault is not currently open.", }, github: { name: "GitHub Repo", description: "Import an entire public or private GitHub repository in a single click.", URL: "GitHub Repo URL", URL_explained: "Url of the GitHub repo you wish to collect.", token: "GitHub Access Token", optional: "optional", token_explained: "Access Token to prevent rate limiting.", token_explained_start: "Without a ", token_explained_link1: "Personal Access Token", token_explained_middle: ", the GitHub API may limit the number of files that can be collected due to rate limits. You can ", token_explained_link2: "create a temporary Access Token", token_explained_end: " to avoid this issue.", ignores: "File Ignores", git_ignore: "List in .gitignore format to ignore specific files during collection. Press enter after each entry you want to save.", task_explained: "Once complete, all files will be available for embedding into workspaces in the document picker.", branch: "Branch you wish to collect files from.", branch_loading: "-- loading available branches --", branch_explained: "Branch you wish to collect files from.", token_information: "Without filling out the <b>GitHub Access Token</b> this data connector will only be able to collect the <b>top-level</b> files of the repo due to GitHub's public API rate-limits.", token_personal: "Get a free Personal Access Token with a GitHub account here.", }, gitlab: { name: "GitLab Repo", description: "Import an entire public or private GitLab repository in a single click.", URL: "GitLab Repo URL", URL_explained: "URL of the GitLab repo you wish to collect.", token: "GitLab Access Token", optional: "optional", token_explained: "Access Token to prevent rate limiting.", token_description: "Select additional entities to fetch from the GitLab API.", token_explained_start: "Without a ", token_explained_link1: "Personal Access Token", token_explained_middle: ", the GitLab API may limit the number of files that can be collected due to rate limits. You can ", token_explained_link2: "create a temporary Access Token", token_explained_end: " to avoid this issue.", fetch_issues: "Fetch Issues as Documents", ignores: "File Ignores", git_ignore: "List in .gitignore format to ignore specific files during collection. Press enter after each entry you want to save.", task_explained: "Once complete, all files will be available for embedding into workspaces in the document picker.", branch: "Branch you wish to collect files from", branch_loading: "-- loading available branches --", branch_explained: "Branch you wish to collect files from.", token_information: "Without filling out the <b>GitLab Access Token</b> this data connector will only be able to collect the <b>top-level</b> files of the repo due to GitLab's public API rate-limits.", token_personal: "Get a free Personal Access Token with a GitLab account here.", }, youtube: { name: "YouTube Transcript", description: "Import the transcription of an entire YouTube video from a link.", URL: "YouTube Video URL", URL_explained_start: "Enter the URL of any YouTube video to fetch its transcript. The video must have ", URL_explained_link: "closed captions", URL_explained_end: " available.", task_explained: "Once complete, the transcript will be available for embedding into workspaces in the document picker.", language: "Transcript Language", language_explained: "Select the language of the transcript you want to collect.", loading_languages: "-- loading available languages --", }, "website-depth": { name: "Bulk Link Scraper", description: "Scrape a website and its sub-links up to a certain depth.", URL: "Website URL", URL_explained: "URL of the website you want to scrape.", depth: "Crawl Depth", depth_explained: "This is the number of child-links that the worker should follow from the origin URL.", max_pages: "Maximum Pages", max_pages_explained: "Maximum number of links to scrape.", task_explained: "Once complete, all scraped content will be available for embedding into workspaces in the document picker.", }, confluence: { name: "Confluence", description: "Import an entire Confluence page in a single click.", deployment_type: "Confluence deployment type", deployment_type_explained: "Determine if your Confluence instance is hosted on Atlassian cloud or self-hosted.", base_url: "Confluence base URL", base_url_explained: "This is the base URL of your Confluence space.", space_key: "Confluence space key", space_key_explained: "This is the spaces key of your confluence instance that will be used. Usually begins with ~", username: "Confluence Username", username_explained: "Your Confluence username", auth_type: "Confluence Auth Type", auth_type_explained: "Select the authentication type you want to use to access your Confluence pages.", auth_type_username: "Username and Access Token", auth_type_personal: "Personal Access Token", token: "Confluence Access Token", token_explained_start: "You need to provide an access token for authentication. You can generate an access token", token_explained_link: "here", token_desc: "Access token for authentication", pat_token: "Confluence Personal Access Token", pat_token_explained: "Your Confluence personal access token.", bypass_ssl: "Bypass SSL Certificate Validation", bypass_ssl_explained: "Enable this option to bypass SSL certificate validation for self-hosted confluence instances with self-signed certificate", task_explained: "Once complete, the page content will be available for embedding into workspaces in the document picker.", }, manage: { documents: "Documents", "data-connectors": "Data Connectors", "desktop-only": "Editing these settings are only available on a desktop device. Please access this page on your desktop to continue.", dismiss: "Dismiss", editing: "Editing", }, directory: { "my-documents": "My Documents", "new-folder": "New Folder", "search-document": "Search for document", "no-documents": "No Documents", "move-workspace": "Move to Workspace", name: "Name", "delete-confirmation": "Are you sure you want to delete these files and folders?\nThis will remove the files from the system and remove them from any existing workspaces automatically.\nThis action is not reversible.", "removing-message":
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/ja/common.js
frontend/src/locales/ja/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "ようこそ", getStarted: "はじめる", }, llm: { title: "LLMの設定", description: "AnythingLLMは多くのLLMプロバイダーと連携できます。これがチャットを処理するサービスになります。", }, userSetup: { title: "ユーザー設定", description: "ユーザー設定を構成します。", howManyUsers: "このインスタンスを使用するユーザー数は?", justMe: "自分だけ", myTeam: "チーム", instancePassword: "インスタンスパスワード", setPassword: "パスワードを設定しますか?", passwordReq: "パスワードは8文字以上である必要があります。", passwordWarn: "このパスワードを保存することが重要です。回復方法はありません。", adminUsername: "管理者アカウントのユーザー名", adminUsernameReq: "ユーザー名は6文字以上で、小文字の英字、数字、アンダースコア、ハイフンのみを含む必要があります。スペースは使用できません。", adminPassword: "管理者アカウントのパスワード", adminPasswordReq: "パスワードは8文字以上である必要があります。", teamHint: "デフォルトでは、あなたが唯一の管理者になります。オンボーディングが完了した後、他のユーザーや管理者を作成して招待できます。パスワードを紛失しないでください。管理者のみがパスワードをリセットできます。", }, data: { title: "データ処理とプライバシー", description: "個人データに関して透明性とコントロールを提供することをお約束します。", settingsHint: "これらの設定は、設定画面でいつでも再構成できます。", }, survey: { title: "AnythingLLMへようこそ", description: "AnythingLLMをあなたのニーズに合わせて構築するためにご協力ください。任意です。", email: "メールアドレスは何ですか?", useCase: "AnythingLLMを何に使用しますか?", useCaseWork: "仕事用", useCasePersonal: "個人用", useCaseOther: "その他", comment: "AnythingLLMをどのように知りましたか?", commentPlaceholder: "Reddit、Twitter、GitHub、YouTubeなど - どのように見つけたか教えてください!", skip: "アンケートをスキップ", thankYou: "フィードバックありがとうございます!", }, workspace: { title: "最初のワークスペースを作成する", description: "最初のワークスペースを作成して、AnythingLLMを始めましょう。", }, }, common: { "workspaces-name": "ワークスペース名", error: "エラー", success: "成功", user: "ユーザー", selection: "モデル選択", saving: "保存中...", save: "変更を保存", previous: "前のページ", next: "次のページ", optional: "任意", yes: "はい", no: "いいえ", search: null, }, settings: { title: "インスタンス設定", system: "一般設定", invites: "招待", users: "ユーザー", workspaces: "ワークスペース", "workspace-chats": "ワークスペースチャット", customization: "カスタマイズ", "api-keys": "開発者API", llm: "LLM", transcription: "文字起こし", embedder: "埋め込みエンジン", "text-splitting": "テキスト分割とチャンク化", "voice-speech": "音声とスピーチ", "vector-database": "ベクターデータベース", embeds: "チャット埋め込み", "embed-chats": "チャット埋め込み履歴", security: "セキュリティ", "event-logs": "イベントログ", privacy: "プライバシーとデータ", "ai-providers": "AIプロバイダー", "agent-skills": "エージェントスキル", admin: "管理者", tools: "ツール", "system-prompt-variables": "システムプロンプト変数", "experimental-features": "実験的機能", contact: "サポートに連絡", "browser-extension": "ブラウザ拡張", interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "ようこそ", "placeholder-username": "ユーザー名", "placeholder-password": "パスワード", login: "ログイン", validating: "検証中...", "forgot-pass": "パスワードを忘れた", reset: "リセット", }, "sign-in": { start: "サインインして", end: "アカウントにアクセスします。", }, "password-reset": { title: "パスワードリセット", description: "以下に必要な情報を入力してパスワードをリセットしてください。", "recovery-codes": "回復コード", "recovery-code": "回復コード {{index}}", "back-to-login": "ログイン画面に戻る", }, }, "new-workspace": { title: "新しいワークスペース", placeholder: "マイワークスペース", }, "workspaces—settings": { general: "一般設定", chat: "チャット設定", vector: "ベクターデータベース", members: "メンバー", agent: "エージェント構成", }, general: { vector: { title: "ベクター数", description: "ベクターデータベース内のベクターの総数。", }, names: { description: "これはワークスペースの表示名のみを変更します。", }, message: { title: "提案されたチャットメッセージ", description: "ワークスペースユーザーに提案されるメッセージをカスタマイズします。", add: "新しいメッセージを追加", save: "メッセージを保存", heading: "説明してください", body: "AnythingLLMの利点", }, pfp: { title: "アシスタントのプロフィール画像", description: "このワークスペースのアシスタントのプロフィール画像をカスタマイズします。", image: "ワークスペース画像", remove: "ワークスペース画像を削除", }, delete: { title: "ワークスペースを削除", description: "このワークスペースとそのすべてのデータを削除します。これにより、すべてのユーザーのワークスペースが削除されます。", delete: "ワークスペースを削除", deleting: "ワークスペースを削除中...", "confirm-start": "ワークスペース全体を削除しようとしています", "confirm-end": "ワークスペース。この操作により、ベクターデータベース内のすべてのベクター埋め込みが削除されます。\n\n元のソースファイルはそのまま残ります。この操作は元に戻せません。", }, }, chat: { llm: { title: "ワークスペースLLMプロバイダー", description: "このワークスペースで使用するLLMプロバイダーとモデルを指定します。デフォルトではシステムのLLMプロバイダーと設定が使用されます。", search: "すべてのLLMプロバイダーを検索", }, model: { title: "ワークスペースチャットモデル", description: "このワークスペースで使用するチャットモデルを指定します。空の場合はシステムのLLM設定が使用されます。", wait: "-- waiting for models --", }, mode: { title: "チャットモード", chat: { title: "チャット", "desc-start": "LLMの一般知識で回答します", and: "および", "desc-end": "見つかったドキュメントコンテキストを使用します。", }, query: { title: "クエリ", "desc-start": "回答を提供します", only: "のみ", "desc-end": "ドキュメントコンテキストが見つかった場合のみ。", }, }, history: { title: "チャット履歴", "desc-start": "応答の短期記憶に含まれる過去のチャット数。", recommend: "推奨値: 20", "desc-end": "45以上にすると、メッセージサイズによっては継続的なチャット失敗が発生する可能性があります。", }, prompt: { title: "プロンプト", description: "このワークスペースで使用するプロンプトです。AIが適切な応答を生成できるよう、コンテキストや指示を定義してください。", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "クエリモード拒否応答", "desc-start": "モードが", query: "クエリ", "desc-end": "の場合、コンテキストが見つからないときにカスタム拒否応答を返すことができます。", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM温度", "desc-start": "この設定はLLMの応答の創造性を制御します。", "desc-end": "数値が高いほど創造的になりますが、高すぎると一部のモデルでは一貫性のない応答になる場合があります。", hint: "多くのLLMには有効な値の範囲があります。詳細はLLMプロバイダーの情報を参照してください。", }, }, "vector-workspace": { identifier: "ベクターデータベース識別子", snippets: { title: "最大コンテキストスニペット数", description: "この設定は、チャットやクエリごとにLLMへ送信される最大コンテキストスニペット数を制御します。", recommend: "推奨値: 4", }, doc: { title: "ドキュメント類似度しきい値", description: "チャットに関連すると見なされるために必要な最小類似度スコアです。数値が高いほど、より類似したソースのみが対象となります。", zero: "制限なし", low: "低(類似度スコア ≥ 0.25)", medium: "中(類似度スコア ≥ 0.50)", high: "高(類似度スコア ≥ 0.75)", }, reset: { reset: "ベクターデータベースをリセット", resetting: "ベクターをクリア中...", confirm: "このワークスペースのベクターデータベースをリセットしようとしています。これにより、現在埋め込まれているすべてのベクターが削除されます。\n\n元のソースファイルはそのまま残ります。この操作は元に戻せません。", error: "ワークスペースのベクターデータベースをリセットできませんでした!", success: "ワークスペースのベクターデータベースがリセットされました!", }, }, agent: { "performance-warning": "ツール呼び出しに対応していないLLMの性能は、モデルの能力や精度に大きく依存します。一部の機能が制限されたり、正しく動作しない場合があります。", provider: { title: "ワークスペースエージェントのLLMプロバイダー", description: "このワークスペースの@agentで使用するLLMプロバイダーとモデルを指定します。", }, mode: { chat: { title: "ワークスペースエージェントのチャットモデル", description: "このワークスペースの@agentで使用するチャットモデルを指定します。", }, title: "ワークスペースエージェントのモデル", description: "このワークスペースの@agentで使用するLLMモデルを指定します。", wait: "-- モデルを読み込み中 --", }, skill: { title: "デフォルトエージェントのスキル", description: "これらのスキルでデフォルトエージェントの能力を強化できます。設定はすべてのワークスペースに適用されます。", rag: { title: "RAGと長期記憶", description: "エージェントがローカルドキュメントを活用して質問に答えたり、内容を「記憶」して長期的に参照できるようにします。", }, view: { title: "ドキュメントの閲覧と要約", description: "エージェントがワークスペース内のファイルを一覧表示し、内容を要約できるようにします。", }, scrape: { title: "ウェブサイトの取得", description: "エージェントがウェブサイトを訪問し、内容を取得できるようにします。", }, generate: { title: "チャートの生成", description: "デフォルトエージェントがチャットやデータからさまざまなチャートを作成できるようにします。", }, save: { title: "ファイルの生成と保存", description: "デフォルトエージェントがファイルを生成し、ブラウザからダウンロードできるようにします。", }, web: { title: "ウェブ検索と閲覧", "desc-start": "エージェントがウェブ検索プロバイダーに接続し、質問に答えるためにウェブ検索できるようにします。", "desc-end": "この設定を行うまで、エージェントセッション中のウェブ検索は利用できません。", }, }, }, recorded: { title: "ワークスペースチャット履歴", description: "ユーザーが送信したすべてのチャットとメッセージの履歴です。作成日時順に表示されます。", export: "エクスポート", table: { id: "ID", by: "送信者", workspace: "ワークスペース", prompt: "プロンプト", response: "応答", at: "送信日時", }, }, api: { title: "APIキー", description: "APIキーにより、プログラム経由でこのAnythingLLMインスタンスにアクセスおよび管理できます。", link: "APIドキュメントを読む", generate: "新しいAPIキーを生成", table: { key: "APIキー", by: "作成者", created: "作成日", }, }, llm: { title: "LLMの設定", description: "これは、お好みのLLMチャットおよび埋め込みプロバイダー用の認証情報と設定です。これらのキーが最新かつ正確でない場合、AnythingLLMは正しく動作しません。", provider: "LLMプロバイダー", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "文字起こしモデルの設定", description: "これは、お好みの文字起こしモデルプロバイダー用の認証情報と設定です。これらのキーが最新かつ正確でない場合、メディアファイルや音声が正しく文字起こしされません。", provider: "文字起こしプロバイダー", "warn-start": "RAMやCPUが限られたマシンでローカルのWhisperモデルを使用すると、メディアファイルの処理中にAnythingLLMが停止する可能性があります。", "warn-recommend": "少なくとも2GBのRAMが推奨され、ファイルサイズは10Mb未満であることをお勧めします。", "warn-end": "組み込みモデルは初回使用時に自動的にダウンロードされます。", }, embedding: { title: "埋め込み設定", "desc-start": "LLMがネイティブに埋め込みエンジンをサポートしていない場合、テキストの埋め込み用に追加の認証情報を指定する必要がある場合があります。", "desc-end": "埋め込みとは、テキストをベクトルに変換するプロセスです。これらの認証情報は、ファイルやプロンプトをAnythingLLMが処理できるフォーマットに変換するために必要です。", provider: { title: "埋め込みプロバイダー", }, }, text: { title: "テキスト分割とチャンク化の設定", "desc-start": "新しいドキュメントがベクトルデータベースに挿入される前に、どのように分割およびチャンク化されるかのデフォルトの方法を変更する場合があります。", "desc-end": "テキスト分割の仕組みとその副作用を理解している場合にのみ、この設定を変更するべきです。", size: { title: "テキストチャンクサイズ", description: "1つのベクトルに含まれる最大の文字数です。", recommend: "埋め込みモデルの最大長は", }, overlap: { title: "テキストチャンクの重複", description: "隣接するテキストチャンク間に発生する最大の重複文字数です。", }, }, vector: { title: "ベクターデータベース設定", description: "これは、AnythingLLMインスタンスの動作方法用の認証情報と設定です。これらのキーが最新で正確であることが重要です。", provider: { title: "ベクターデータベースプロバイダー", description: "LanceDBの場合、特に設定は必要ありません。", }, }, embeddable: { title: "埋め込みチャットウィジェット", description: "埋め込みチャットウィジェットは、特定のワークスペースに紐付けられた公開用チャットインターフェースです。これにより、ワークスペースを構築し、そのチャットを外部に公開できます。", create: "埋め込みチャットウィジェットを作成", table: { workspace: "ワークスペース", chats: "送信済みチャット", active: "有効なドメイン", created: null, }, }, "embed-chats": { title: "埋め込みチャット履歴", export: "エクスポート", description: "これは、公開された埋め込みウィジェットから送信された全てのチャットとメッセージの記録です。", table: { embed: "埋め込み", sender: "送信者", message: "メッセージ", response: "応答", at: "送信日時", }, }, event: { title: "イベントログ", description: "監視のために、このインスタンスで発生しているすべてのアクションとイベントを表示します。", clear: "イベントログをクリア", table: { type: "イベントタイプ", user: "ユーザー", occurred: "発生日時", }, }, privacy: { title: "プライバシーとデータ処理", description: "これは、接続されているサードパーティプロバイダーとAnythingLLMがデータをどのように処理するかの設定です。", llm: "LLM選択", embedding: "埋め込み設定", vector: "ベクターデータベース", anonymous: "匿名テレメトリが有効", }, connectors: { "search-placeholder": "データコネクタを検索", "no-connectors": "データコネクタが見つかりません。", github: { name: "GitHubリポジトリ", description: "ワンクリックで公開・非公開のGitHubリポジトリ全体をインポートできます。", URL: "GitHubリポジトリURL", URL_explained: "収集したいGitHubリポジトリのURLです。", token: "GitHubアクセストークン", optional: "任意", token_explained: "レート制限を回避するためのアクセストークンです。", token_explained_start: "アクセストークンがない場合、", token_explained_link1: "パーソナルアクセストークン", token_explained_middle: "がないと、GitHub APIのレート制限により収集できるファイル数が制限される場合があります。 ", token_explained_link2: "一時的なアクセストークンを作成", token_explained_end: "してこの問題を回避できます。", ignores: "無視するファイル", git_ignore: ".gitignore形式で収集時に無視したいファイルをリストしてください。エンターキーで各エントリを保存します。", task_explained: "完了後、すべてのファイルがドキュメントピッカーからワークスペースに埋め込めるようになります。", branch: "収集したいブランチ", branch_loading: "-- 利用可能なブランチを読み込み中 --", branch_explained: "収集したいブランチを指定します。", token_information: "<b>GitHubアクセストークン</b>を入力しない場合、GitHubの公開APIのレート制限により<b>トップレベル</b>のファイルのみ収集可能です。", token_personal: "無料のパーソナルアクセストークンはこちらから取得できます。", }, gitlab: { name: "GitLabリポジトリ", description: "ワンクリックで公開・非公開のGitLabリポジトリ全体をインポートできます。", URL: "GitLabリポジトリURL", URL_explained: "収集したいGitLabリポジトリのURLです。", token: "GitLabアクセストークン", optional: "任意", token_explained: "レート制限を回避するためのアクセストークンです。", token_description: "GitLab APIから取得する追加エンティティを選択します。", token_explained_start: "アクセストークンがない場合、", token_explained_link1: "パーソナルアクセストークン", token_explained_middle: "がないと、GitLab APIのレート制限により収集できるファイル数が制限される場合があります。 ", token_explained_link2: "一時的なアクセストークンを作成", token_explained_end: "してこの問題を回避できます。", fetch_issues: "Issueをドキュメントとして取得", ignores: "無視するファイル", git_ignore: ".gitignore形式で収集時に無視したいファイルをリストしてください。エンターキーで各エントリを保存します。", task_explained: "完了後、すべてのファイルがドキュメントピッカーからワークスペースに埋め込めるようになります。", branch: "収集したいブランチ", branch_loading: "-- 利用可能なブランチを読み込み中 --", branch_explained: "収集したいブランチを指定します。", token_information: "<b>GitLabアクセストークン</b>を入力しない場合、GitLabの公開APIのレート制限により<b>トップレベル</b>のファイルのみ収集可能です。", token_personal: "無料のパーソナルアクセストークンはこちらから取得できます。", }, youtube: { name: "YouTube文字起こし", description: "YouTube動画の文字起こしをリンクからインポートできます。", URL: "YouTube動画URL", URL_explained_start: "文字起こしを取得したいYouTube動画のURLを入力してください。動画には", URL_explained_link: "クローズドキャプション", URL_explained_end: "が必要です。", task_explained: "完了後、文字起こしがドキュメントピッカーからワークスペースに埋め込めるようになります。", language: "文字起こしの言語", language_explained: "取得したい文字起こしの言語を選択してください。", loading_languages: "-- 利用可能な言語を読み込み中 --", }, "website-depth": { name: "ウェブサイト一括スクレイパー", description: "ウェブサイトとその下層リンクを指定した深さまで取得します。", URL: "ウェブサイトURL", URL_explained: "取得したいウェブサイトのURLです。", depth: "クロール深度", depth_explained: "元のURLからたどる子リンクの数です。", max_pages: "最大ページ数", max_pages_explained: "取得する最大リンク数です。", task_explained: "完了後、すべての取得内容がドキュメントピッカーからワークスペースに埋め込めるようになります。", }, confluence: { name: "Confluence", description: "ワンクリックでConfluenceページ全体をインポートできます。", deployment_type: "Confluenceデプロイタイプ", deployment_type_explained: "ConfluenceインスタンスがAtlassianクラウドかセルフホストかを選択します。", base_url: "ConfluenceベースURL", base_url_explained: "ConfluenceスペースのベースURLです。", space_key: "Confluenceスペースキー", space_key_explained: "使用するConfluenceインスタンスのスペースキーです。通常は~で始まります。", username: "Confluenceユーザー名", username_explained: "Confluenceのユーザー名です。", auth_type: "Confluence認証タイプ", auth_type_explained: "Confluenceページへアクセスするための認証タイプを選択してください。", auth_type_username: "ユーザー名とアクセストークン", auth_type_personal: "パーソナルアクセストークン", token: "Confluenceアクセストークン", token_explained_start: "認証用のアクセストークンを入力してください。アクセストークンは", token_explained_link: "こちら", token_desc: "認証用アクセストークン", pat_token: "Confluenceパーソナルアクセストークン", pat_token_explained: "Confluenceのパーソナルアクセストークンです。", task_explained: "完了後、ページ内容がドキュメントピッカーからワークスペースに埋め込めるようになります。", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "ドキュメント", "data-connectors": "データコネクタ", "desktop-only": "これらの設定の編集はデスクトップ端末のみ対応しています。デスクトップでこのページにアクセスしてください。", dismiss: "閉じる", editing: "編集中", }, directory: { "my-documents": "マイドキュメント", "new-folder": "新しいフォルダー", "search-document": "ドキュメントを検索", "no-documents": "ドキュメントがありません", "move-workspace": "ワークスペースへ移動", name: "名前", "delete-confirmation": "これらのファイルやフォルダーを削除してもよろしいですか?\nシステムから削除され、既存のワークスペースからも自動的に削除されます。\nこの操作は元に戻せません。", "removing-message": "{{count}}件のドキュメントと{{folderCount}}件のフォルダーを削除中です。しばらくお待ちください。", "move-success": "{{count}}件のドキュメントを移動しました。", date: "日付", type: "種類", no_docs: "ドキュメントがありません", select_all: "すべて選択", deselect_all: "すべて選択解除", remove_selected: "選択したものを削除", costs: "※埋め込みには一度だけ費用がかかります", save_embed: "保存して埋め込む", }, upload: { "processor-offline": "ドキュメント処理機能が利用できません", "processor-offline-desc": "ドキュメント処理機能がオフラインのため、ファイルをアップロードできません。後でもう一度お試しください。", "click-upload": "クリックしてアップロード、またはドラッグ&ドロップしてください", "file-types": "テキストファイル、CSV、スプレッドシート、音声ファイルなどに対応しています!", "or-submit-link": "またはリンクを入力", "placeholder-link": "https://example.com", fetching: "取得中...", "fetch-website": "ウェブサイトを取得", "privacy-notice": "これらのファイルは、このAnythingLLMインスタンス上のドキュメント処理機能にアップロードされます。第三者に送信・共有されることはありません。", }, pinning: { what_pinning: "ドキュメントのピン留めとは?", pin_explained_block1: "AnythingLLMでドキュメントを<b>ピン留め</b>すると、その内容全体がプロンプトウィンドウに挿入され、LLMがしっかり理解できるようになります。", pin_explained_block2: "<b>大きなコンテキストを持つモデル</b>や、重要な小さなファイルで特に効果的です。", pin_explained_block3: "デフォルトのままでは満足できる回答が得られない場合、ピン留めを活用するとより高品質な回答が得られます。", accept: "わかりました", }, watching: { what_watching: "ドキュメントのウォッチとは?", watch_explained_block1: "AnythingLLMでドキュメントを<b>ウォッチ</b>すると、元のソースから定期的に内容が<i>自動的に</i>同期されます。管理しているすべてのワークスペースで内容が自動更新されます。", watch_explained_block2: "この機能は現在オンラインベースのコンテンツのみ対応しており、手動アップロードしたドキュメントには利用できません。", watch_explained_block3_start: "ウォッチしているドキュメントの管理は", watch_explained_block3_link: "ファイルマネージャー", watch_explained_block3_end: "管理画面から行えます。", accept: "わかりました", }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: "新しいワークスペースへようこそ。", get_started: "まずはじめに、", get_started_default: "はじめに", upload: "ドキュメントをアップロード", or: "または", send_chat: "チャットを送信", send_message: "メッセージを送信", attach_file: "このチャットにファイルを添付", slash: "チャットで使えるスラッシュコマンドをすべて表示", agents: "利用可能なエージェントをすべて表示",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/pl/common.js
frontend/src/locales/pl/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Witamy w", getStarted: "Rozpocznij", }, llm: { title: "Preferencje modeli językowych", description: "AnythingLLM może współpracować z wieloma dostawcami modeli językowych", }, userSetup: { title: "Konfiguracja użytkownika", description: "Skonfiguruj ustawienia użytkownika.", howManyUsers: "Ilu użytkowników będzie korzystać z tej instancji?", justMe: "Tylko ja", myTeam: "Mój zespół", instancePassword: "Hasło instancji", setPassword: "Czy chcesz ustawić hasło?", passwordReq: "Hasła muszą składać się z co najmniej 8 znaków.", passwordWarn: "Ważne jest, aby zapisać to hasło, ponieważ nie ma metody jego odzyskania.", adminUsername: "Nazwa użytkownika konta administratora", adminUsernameReq: "Nazwa użytkownika musi składać się z co najmniej 6 znaków i zawierać wyłącznie małe litery, cyfry, podkreślenia i myślniki bez spacji.", adminPassword: "Hasło konta administratora", adminPasswordReq: "Hasła muszą składać się z co najmniej 8 znaków.", teamHint: "Domyślnie będziesz jedynym administratorem. Po zakończeniu wdrażania możesz tworzyć i zapraszać innych użytkowników lub administratorów. Nie zgub hasła, ponieważ tylko administratorzy mogą je resetować.", }, data: { title: "Obsługa danych i prywatność", description: "Dbamy o przejrzystość i kontrolę danych osobowych użytkowników.", settingsHint: "Ustawienia te można zmienić w dowolnym momencie w ustawieniach.", }, survey: { title: "Witamy w AnythingLLM", description: "Pomóż nam stworzyć AnythingLLM dostosowany do Twoich potrzeb. Opcjonalnie.", email: "Jaki jest Twój adres e-mail?", useCase: "Do czego będziesz używać AnythingLLM?", useCaseWork: "Do pracy", useCasePersonal: "Do użytku osobistego", useCaseOther: "Inne", comment: "Skąd dowiedziałeś się o AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube itp. - Daj nam znać, jak nas znalazłeś!", skip: "Pomiń ankietę", thankYou: "Dziękujemy za opinię!", }, workspace: { title: "Utwórz swój pierwszy obszar roboczy", description: "Stwórz swój pierwszy obszar roboczy i zacznij korzystać z AnythingLLM.", }, }, common: { "workspaces-name": "Nazwa obszaru roboczego", error: "błąd", success: "sukces", user: "Użytkownik", selection: "Wybór modelu", saving: "Zapisywanie...", save: "Zapisz zmiany", previous: "Poprzednia strona", next: "Następna strona", optional: "Opcjonalnie", yes: "Tak", no: "Nie", search: null, }, settings: { title: "Ustawienia instancji", system: "Ustawienia ogólne", invites: "Zaproszenia", users: "Użytkownicy", workspaces: "Obszary robocze", "workspace-chats": "Czaty w obszarach roboczych", customization: "Personalizacja", interface: "Preferencje interfejsu użytkownika", branding: "Branding i white-labeling", chat: "Czat", "api-keys": "Interfejs API dla programistów", llm: "LLM", transcription: "Transkrypcja", embedder: "Embeddings", "text-splitting": "Dzielenie tekstu", "voice-speech": "Głos i mowa", "vector-database": "Wektorowa baza danych", embeds: "Osadzone czaty", "embed-chats": "Historia osadzonych czatów", security: "Bezpieczeństwo", "event-logs": "Dzienniki zdarzeń", privacy: "Prywatność i dane", "ai-providers": "Dostawcy AI", "agent-skills": "Umiejętności agenta", admin: "Administrator", tools: "Narzędzia", "system-prompt-variables": "Zmienne instrukcji systemowej", "experimental-features": "Funkcje eksperymentalne", contact: "Kontakt z pomocą techniczną", "browser-extension": "Rozszerzenie przeglądarki", }, login: { "multi-user": { welcome: "Witamy w", "placeholder-username": "Nazwa użytkownika", "placeholder-password": "Hasło", login: "Logowanie", validating: "Weryfikacja...", "forgot-pass": "Nie pamiętam hasła", reset: "Reset", }, "sign-in": { start: "Zaloguj się do", end: "", }, "password-reset": { title: "Resetowanie hasła", description: "Podaj poniżej niezbędne informacje, aby zresetować hasło.", "recovery-codes": "Kody odzyskiwania", "recovery-code": "Kod odzyskiwania {{index}}", "back-to-login": "Powrót do logowania", }, }, "main-page": { noWorkspaceError: "Przed rozpoczęciem czatu należy utworzyć obszar roboczy.", checklist: { title: "Pierwsze kroki", tasksLeft: "- zadania do wykonania", completed: "Jesteś na najlepszej drodze do zostania ekspertem AnythingLLM!", dismiss: "zamknij", tasks: { create_workspace: { title: "Utwórz obszar roboczy", description: "Utwórz swój pierwszy obszar roboczy, aby rozpocząć", action: "Utwórz", }, send_chat: { title: "Wyślij wiadomość", description: "Rozpocznij rozmowę z asystentem AI", action: "Czat", }, embed_document: { title: "Dodaj źródło danych", description: "Dodaj swoje pierwsze dane", action: "Dodaj", }, setup_system_prompt: { title: "Konfiguracja instrukcji systemowej", description: "Konfiguracja zachowania asystenta AI", action: "Konfiguruj", }, define_slash_command: { title: "Stwórz polecenie slash", description: "Tworzenie niestandardowych poleceń dla asystenta", action: "Stwórz", }, visit_community: { title: "Odwiedź Community Hub", description: "Przeglądaj zasoby i szablony społeczności", action: "Przeglądaj", }, }, }, quickLinks: { title: "Szybkie akcje", sendChat: "Wyślij wiadomość", embedDocument: "Dodaj swoje dane", createWorkspace: "Utwórz obszar roboczy", }, exploreMore: { title: "Poznaj więcej funkcji", features: { customAgents: { title: "Niestandardowi agenci AI", description: "Twórz potężnych agentów AI i automatyzacje bez użycia kodu.", primaryAction: "Czat przy użyciu @agent", secondaryAction: "Zbuduj Agents Flow", }, slashCommands: { title: "Polecenia slash", description: "Oszczędzaj czas i dodawaj prompty dzięki niestandardowym poleceniom slash.", primaryAction: "Utwórz polecenie slash", secondaryAction: "Przeglądaj Community Hub", }, systemPrompts: { title: "Instrukcje systemowe", description: "Zmodyfikuj instrukcję systemową, aby dostosować odpowiedzi AI.", primaryAction: "Modyfikuj instrukcję systemową", secondaryAction: "Zarządzaj zmiennymi", }, }, }, announcements: { title: "Aktualizacje i ogłoszenia", }, resources: { title: "Zasoby", links: { docs: "Dokumenty", star: "Star on GitHub", }, keyboardShortcuts: "Skróty klawiaturowe", }, }, "new-workspace": { title: "Nowy obszar roboczy", placeholder: "Mój obszar roboczy", }, "workspaces—settings": { general: "Ustawienia ogólne", chat: "Ustawienia czatu", vector: "Wektorowa baza danych", members: "Członkowie", agent: "Konfiguracja agenta", }, general: { vector: { title: "Liczba wektorów", description: "Całkowita liczba wektorów w bazie danych wektorów.", }, names: { description: "Spowoduje to jedynie zmianę wyświetlanej nazwy obszaru roboczego.", }, message: { title: "Sugerowane wiadomości na czacie", description: "Dostosuj wiadomości, które będą sugerowane użytkownikom.", add: "Dodaj nową wiadomość", save: "Zapisz wiadomości", heading: "Wyjaśnij mi", body: "Korzyści z AnythingLLM", }, pfp: { title: "Logo obszaru roboczego", description: "Dostosuj logo asystenta dla tego obszaru roboczego.", image: "Logo obszaru roboczego", remove: "Usuń logo obszaru roboczego", }, delete: { title: "Usuń obszar roboczy", description: "Usuń ten obszar roboczy i wszystkie jego dane. Spowoduje to usunięcie obszaru roboczego dla wszystkich użytkowników.", delete: "Usuń obszar roboczy", deleting: "Usuwanie obszaru roboczego...", "confirm-start": "Zamierzasz usunąć cały swój", "confirm-end": "obszar roboczy. Spowoduje to usunięcie wszystkich danych z wektorowej bazy danych. Oryginalne pliki źródłowe pozostaną nietknięte. Działanie to jest nieodwracalne.", }, }, chat: { llm: { title: "Dostawca modeli językowych dla obszaru roboczego", description: "Konkretny dostawca i model LLM, który będzie używany dla tego obszaru roboczego. Domyślnie używany jest dostawca i model z preferencji systemowych.", search: "Wyszukaj wszystkich dostawców LLM", }, model: { title: "Model językowy dla obszaru roboczego", description: "Określony model, który będzie używany w tym obszarze roboczym. Jeśli pole jest puste, użyty zostanie model z preferencji systemowych.", wait: "-- oczekiwanie na modele", }, mode: { title: "Tryb czatu", chat: { title: "Czat", "desc-start": "dostarczy odpowiedzi na podstawie wiedzy ogólnej LLM", and: "oraz", "desc-end": " znalezionym kontekście (dokumenty, źródła danych)", }, query: { title: "Zapytanie (wyszukiwanie)", "desc-start": "dostarczy odpowiedzi", only: "tylko", "desc-end": "na podstawie znalezionego kontekstu (dokumenty, źródła danych) - w przeciwnym razie odmówi odpowiedzi.", }, }, history: { title: "Historia czatu", "desc-start": "Liczba poprzednich wiadomości, które zostaną uwzględnione w pamięci krótkotrwałej", recommend: "Zalecane: 20.", "desc-end": "Więcej niż 45 może prowadzić do problemów z działaniem czatu.", }, prompt: { title: "Instrukcja systemowa", description: "Instrukcja, która będzie używana w tym obszarze roboczym. Zdefiniuj kontekst i instrukcje dla AI. Powinieneś dostarczyć starannie opracowaną instrukcję, aby AI mogło wygenerować odpowiednią i dokładną odpowiedź.", history: { title: "Historia instrukcji systemowych", clearAll: "Wyczyść wszystko", noHistory: "Historia instrukcji systemowych nie jest dostępna", restore: "Przywróć", delete: "Usuń", publish: "Opublikuj w Community Hub", deleteConfirm: "Czy na pewno chcesz usunąć ten element historii?", clearAllConfirm: "Czy na pewno chcesz wyczyścić całą historię? Tej czynności nie można cofnąć.", expand: "Rozwiń", }, }, refusal: { title: "Tryb zapytania - odpowiedź odmowna", "desc-start": "W trybie", query: "zapytania (wyszukiwanie)", "desc-end": "istnieje możliwość zwrócenia niestandardowej odpowiedzi odmownej, w sytuacji gdy nie znaleziono odpowiedniego kontekstu.", "tooltip-title": "Dlaczego to widzę?", "tooltip-description": "Jesteś w trybie zapytań, który wykorzystuje tylko informacje z Twoich dokumentów. Przełącz się do trybu czatu, aby uzyskać bardziej elastyczne rozmowy, lub kliknij tutaj, aby odwiedzić naszą dokumentację i dowiedzieć się więcej o trybach czatu.", }, temperature: { title: "Temperatura modelu", "desc-start": 'To ustawienie kontroluje, jak "kreatywne" będą odpowiedzi modelu językowego.', "desc-end": "Im wyższa liczba, tym większa kreatywność. W przypadku niektórych modeli może to prowadzić do niespójnych odpowiedzi przy zbyt wysokich ustawieniach.", hint: "Większość modeli językowych ma różne dopuszczalne zakresy wartości. Informacje na ten temat można uzyskać u dostawcy modelu językowego.", }, }, "vector-workspace": { identifier: "Identyfikator wektorowej bazy danych", snippets: { title: "Maksymalna liczba fragmentów", description: "To ustawienie kontroluje maksymalną ilość fragmentów kontekstu, które zostaną wysłane do modelu językowego.", recommend: "Zalecane: 4", }, doc: { title: "Próg podobieństwa dokumentów", description: "Minimalny wynik podobieństwa wymagany do uznania źródła za powiązane z czatem. Im wyższa liczba, tym bardziej źródło musi być powiązane z czatem.", zero: "Brak ograniczeń", low: "Niski (wynik podobieństwa ≥ .25)", medium: "Średni (wynik podobieństwa ≥ .50)", high: "Wysoki (wynik podobieństwa ≥ .75)", }, reset: { reset: "Resetuj bazę wektorową", resetting: "Czyszczenie wektorów...", confirm: "Baza danych wektorów tego obszaru roboczego zostanie zresetowana. Spowoduje to usunięcie wszystkich aktualnie osadzonych wektorów. Oryginalne pliki źródłowe pozostaną nietknięte. Ta czynność jest nieodwracalna.", error: "Nie można zresetować bazy danych wektorów obszaru roboczego!", success: "Baza danych wektorów obszaru roboczego została zresetowana!", }, }, agent: { "performance-warning": "Wydajność modeli LLM, które nie obsługują bezpośrednio wywoływania narzędzi, zależy w dużym stopniu od możliwości i dokładności modelu. Niektóre możliwości mogą być ograniczone lub niefunkcjonalne.", provider: { title: "Dostawca LLM dla agenta", description: "Konkretny dostawca i model LLM, który będzie używany dla agenta @agent, w tym obszarze roboczym.", }, mode: { chat: { title: "Model czatu agenta", description: "Konkretny model czatu, który będzie używany dla agenta @agent tego obszaru roboczego.", }, title: "Model agenta", description: "Konkretny model LLM, który będzie używany dla agenta @agent tego obszaru roboczego.", wait: "-- oczekiwanie na modele", }, skill: { title: "Domyślne umiejętności agenta", description: "Ulepsz naturalne zdolności domyślnego agenta za pomocą tych gotowych umiejętności. Ta konfiguracja dotyczy wszystkich obszarów roboczych.", rag: { title: "RAG i pamięć długotrwała", description: 'Pozwól agentowi wykorzystać twoje lokalne dokumenty, aby odpowiedzieć na zapytanie lub poproś agenta o "zapamiętanie" fragmentów treści w celu odzyskania pamięci długoterminowej.', }, view: { title: "Wyświetlanie i podsumowywanie dokumentów", description: "Umożliwienie agentowi wyświetlenia listy i podsumowania zawartości aktualnie osadzonych plików obszaru roboczego.", }, scrape: { title: "Pobieranie treści stron internetowych", description: "Zezwalaj agentowi na odwiedzanie i pobieranie zawartości stron internetowych.", }, generate: { title: "Generowanie wykresów", description: "Pozwól domyślnemu agentowi generować różne typy wykresów na podstawie danych dostarczonych lub podanych na czacie.", }, save: { title: "Generowanie i zapisywanie plików w przeglądarce", description: "Pozwól domyślnemu agentowi generować i zapisywać pliki, które można zapisać i pobrać w przeglądarce.", }, web: { title: "Wyszukiwanie i przeglądanie stron internetowych na żywo", "desc-start": "Pozwól swojemu agentowi przeszukiwać Internet w celu uzyskania odpowiedzi na pytania, łącząc się z dostawcą wyszukiwania internetowego (SERP).", "desc-end": "Wyszukiwanie w sieci podczas sesji agenta nie będzie działać, dopóki nie zostanie to skonfigurowane.", }, }, }, recorded: { title: "Czaty w obszarach roboczych", description: "Są to wszystkie czaty i wiadomości wysłane przez użytkowników uporządkowane według daty utworzenia.", export: "Eksport", table: { id: "ID", by: "Wysłane przez", workspace: "Obszar roboczy", prompt: "Prompt", response: "Odpowiedź", at: "Wysłane o", }, }, customization: { interface: { title: "Preferencje interfejsu użytkownika", description: "Ustaw preferencje interfejsu użytkownika dla AnythingLLM.", }, branding: { title: "Branding i white-labeling", description: "Oznakuj swoją instancję AnythingLLM niestandardowym brandingiem.", }, chat: { title: "Czat", description: "Ustaw preferencje czatu dla AnythingLLM.", auto_submit: { title: "Automatyczne przesyłanie mowy", description: "Automatyczne przesyłanie mowy po wykryciu ciszy.", }, auto_speak: { title: "Automatyczne wypowiadanie odpowiedzi", description: "Automatycznie wypowiadaj odpowiedzi AI.", }, spellcheck: { title: "Włącz sprawdzanie pisowni", description: "Włącz lub wyłącz sprawdzanie pisowni w polu wprowadzania tekstu.", }, }, items: { theme: { title: "Motyw", description: "Wybierz preferowany motyw kolorystyczny dla aplikacji.", }, "show-scrollbar": { title: "Pokaż pasek przewijania", description: "Włącz lub wyłącz pasek przewijania w oknie czatu.", }, "support-email": { title: "E-mail wsparcia", description: "Ustaw adres e-mail, który będzie dostępny dla użytkowników, gdy potrzebują pomocy.", }, "app-name": { title: "Nazwa", description: "Ustawienie nazwy wyświetlanej na stronie logowania dla wszystkich użytkowników.", }, "chat-message-alignment": { title: "Wyrównanie wiadomości czatu", description: "Wybór trybu wyrównania wiadomości podczas korzystania z interfejsu czatu.", }, "display-language": { title: "Język", description: "Wybierz preferowany język interfejsu użytkownika AnythingLLM - jeśli dostępne są tłumaczenia.", }, logo: { title: "Logo", description: "Prześlij swoje niestandardowe logo, aby wyświetlić je na wszystkich stronach.", add: "Dodaj niestandardowe logo", recommended: "Zalecany rozmiar: 800 x 200", remove: "Usuń", replace: "Zmień", }, "welcome-messages": { title: "Ekran powitalny", description: "Dostosuj komunikaty wyświetlane użytkownikom na ekranie powitalnym. Będą widoczne tylko dla użytkowników, którzy nie są administratorami.", new: "Nowa wiadomość", system: "systemu", user: "użytkownika", message: "", assistant: "Asystent czatu AnythingLLM", "double-click": "Kliknij dwukrotnie, aby edytować...", save: "Zapisz wiadomości", }, "browser-appearance": { title: "Wygląd przeglądarki", description: "Dostosuj wygląd karty przeglądarki, gdy aplikacja jest otwarta.", tab: { title: "Tytuł", description: "Ustawienie niestandardowego tytułu karty, gdy aplikacja jest otwarta w przeglądarce.", }, favicon: { title: "Favicon", description: "Użyj niestandardowej ikony favicon dla karty przeglądarki.", }, }, "sidebar-footer": { title: "Linki w stopce", description: "Dostosuj linki wyświetlane w stopce paska bocznego.", icon: "Ikona", link: "Link", }, "render-html": { title: null, description: null, }, }, }, api: { title: "Klucze API", description: "Klucze API umożliwiają dostęp do instancji AnythingLLM i zarządzanie nią.", link: "Przeczytaj dokumentację API", generate: "Generuj nowy klucz API", table: { key: "Klucz API", by: "Utworzony przez", created: "Utworzony o", }, }, llm: { title: "Preferencje LLM", description: "Tutaj skonfigurujesz dostawcę modeli językowych używanych do czatów i embeddingów. Upewnij się, że wszystkie klucze są aktualne i poprawne - bez tego AnythingLLM nie będzie działać.", provider: "Dostawca LLM", providers: { azure_openai: { azure_service_endpoint: "Punkt końcowy usługi Azure", api_key: "Klucz API", chat_deployment_name: "Nazwa wdrożenia czatu", chat_model_token_limit: "Limit tokenów modelu czatu", model_type: "Typ modelu", default: "Domyślne", reasoning: "Uzasadnienie", model_type_tooltip: null, }, }, }, transcription: { title: "Preferencje modelu transkrypcji", description: "Tutaj skonfigurujesz dostawcę modeli używanych do transkrypcji plików audio i wideo. Upewnij się, że klucze są poprawne - bez tego pliki audio nie będą transkrybowane.", provider: "Dostawca usług transkrypcji", "warn-start": "Korzystanie z lokalnego modelu Whisper na komputerach z ograniczoną pamięcią RAM lub procesorem może spowodować przerwanie pracy AnythingLLM podczas przetwarzania plików multimedialnych.", "warn-recommend": "Zalecana konfiguracja to co najmniej 2 GB pamięci RAM, przesyłaj pliki <10 MB.", "warn-end": "Wbudowany model zostanie automatycznie pobrany przy pierwszym użyciu.", }, embedding: { title: "Preferencje dot. embeddingów", "desc-start": "W przypadku korzystania z LLM, który nie obsługuje natywnie silnika embeddingów - może być konieczna dodatkowa konfiguracja poświadczeń.", "desc-end": "Embedding to proces przekształcania tekstu na wektory. Poświadczenia są wymagane do przekształcenia plików i tekstu za pomocą wybranego modelu.", provider: { title: "Model używany do tworzenia embeddingów", }, }, text: { title: "Preferencje dot. podziału tekstu i dzielenia na fragmenty", "desc-start": "Czasami może zaistnieć potrzeba zmiany domyślnego sposobu, w jaki nowe dokumenty są dzielone i fragmentowane przed wstawieniem ich do wektorowej bazy danych.", "desc-end": "Powinieneś modyfikować to ustawienie tylko wtedy, gdy rozumiesz, jak działa dzielenie tekstu i jakie są jego skutki uboczne.", size: { title: "Rozmiar fragmentu tekstu", description: "Jest to maksymalna długość znaków, które mogą występować w pojedynczym wektorze.", recommend: "Maksymalna długość modelu osadzonego wynosi", }, overlap: { title: "Nakładanie się fragmentów tekstu", description: "Jest to maksymalna liczba nakładających się znaków, które występuje podczas fragmentacji między dwoma sąsiednimi fragmentami tekstu.", }, }, vector: { title: "Wektorowa baza danych", description: "Tutaj skonfigurujesz wektorową bazę danych dla AnythingLLM. Upewnij się, że wszystkie ustawienia są poprawne.", provider: { title: "Wektorowa baza danych", description: "LanceDB nie wymaga żadnej konfiguracji.", }, }, embeddable: { title: "Osadzone widżety czatu", description: "Osadzane widżety czatu to publiczne interfejsy czatu, które są powiązane z pojedynczym obszarem roboczym. Umożliwiają one tworzenie przestrzeni roboczych, które następnie można publikować na całym świecie.", create: "Utwórz osadzenie", table: { workspace: "Obszar roboczy", chats: "Wysłane wiadomości", active: "Aktywne domeny", created: "Utworzony", }, }, "embed-chats": { title: "Historia czatu", export: "Eksport", description: "Są to wszystkie czaty i wiadomości z dowolnego opublikowanego widżetu czatu.", table: { embed: "Obszar roboczy", sender: "Nadawca", message: "Wiadomość", response: "Odpowiedź", at: "Wysłane o", }, }, event: { title: "Dzienniki zdarzeń", description: "Wyświetl wszystkie akcje i zdarzenia.", clear: "Wyczyść dzienniki zdarzeń", table: { type: "Typ zdarzenia", user: "Użytkownik", occurred: "Wystąpiło o", }, }, privacy: { title: "Prywatność i obsługa danych", description: "Jest to konfiguracja sposobu, w jaki połączeni dostawcy zewnętrzni i AnythingLLM przetwarzają dane użytkownika.", llm: "Wybór LLM", embedding: "Preferencje dotyczące osadzania", vector: "Wektorowa baza danych", anonymous: "Włączona anonimowa telemetria", }, connectors: { "search-placeholder": "Wyszukaj źródła danych", "no-connectors": "Nie znaleziono źródeł danych.", obsidian: { name: "Obsidian", description: "Zaimportuj folder Obsidian jednym kliknięciem.", vault_location: "Lokalizacja folderu Obsidian", vault_description: "Wybierz folder Obsidian, aby zaimportować wszystkie notatki i ich połączenia.", selected_files: "Znaleziono {{count}} plików markdown", importing: "Importowanie folderu Obsidian...", import_vault: "Importuj folder", processing_time: "Może to trochę potrwać w zależności od wielkości folderu.", vault_warning: "Aby uniknąć konfliktów, upewnij się, że folder Obsidian nie jest aktualnie otwarty.", }, github: { name: "GitHub Repo", description: "Zaimportuj całe publiczne lub prywatne repozytorium GitHub jednym kliknięciem.", URL: "Adres URL repozytorium GitHub", URL_explained: "Adres URL repozytorium GitHub, które chcesz pobrać.", token: "Token dostępu GitHub", optional: "opcjonalny", token_explained: "Token dostępu, zapobiegający ograniczeniu szybkości.", token_explained_start: "Bez ", token_explained_link1: "Osobistego tokenu dostępu ", token_explained_middle: "API GitHub może ograniczać liczbę plików, które mogą zostać pobrane ze względu na limity szybkości. Utwórz", token_explained_link2: " tymczasowy token dostępu", token_explained_end: " aby uniknąć tego problemu.", ignores: "Ignorowane pliki", git_ignore: "Lista w formacie .gitignore. Naciśnij enter po każdym wpisie, aby go zapisać.", task_explained: "Po zakończeniu wszystkie pliki będą dostępne do osadzenia w obszarach roboczych w selektorze dokumentów.", branch: "Gałąź, z której mają być pobierane pliki.", branch_loading: "-- ładowanie dostępnych gałęzi", branch_explained: "Gałąź, z której mają być pobierane pliki.", token_information: "Bez wypełnienia <b>GitHub Access Token</b> ten konektor danych będzie mógł pobierać tylko pliki <b>z głównego katalogu</b> repozytorium ze względu na ograniczenia szybkości publicznego API GitHub.", token_personal: "Uzyskaj bezpłatny osobisty token dostępu do konta GitHub tutaj.", }, gitlab: { name: "GitLab Repo", description: "Zaimportuj całe publiczne lub prywatne repozytorium GitLab jednym kliknięciem.", URL: "Adres URL repozytorium GitLab", URL_explained: "Adres URL repozytorium GitLab, które chcesz pobrać.", token: "Token dostępu GitLab", optional: "opcjonalny", token_explained: "Token dostępu, zapobiegający ograniczeniu szybkości.", token_description: "Wybierz dodatkowe elementy do pobrania z interfejsu API GitLab.", token_explained_start: "Bez ", token_explained_link1: "Osobistego tokenu dostępu ", token_explained_middle: "API GitLab może ograniczyć liczbę plików, które mogą zostać pobrane ze względu na limity szybkości. Utwórz", token_explained_link2: " tymczasowy token dostępu", token_explained_end: " aby uniknąć tego problemu.", fetch_issues: "Pobierz Issues jako Dokumenty", ignores: "Ignorowane pliki", git_ignore: "Lista w formacie .gitignore. Naciśnij enter po każdym wpisie, aby go zapisać.", task_explained: "Po zakończeniu wszystkie pliki będą dostępne do osadzenia w obszarach roboczych w selektorze dokumentów.", branch: "Gałąź, z której chcesz pobierać pliki", branch_loading: "-- ładowanie dostępnych gałęzi", branch_explained: "Gałąź, z której mają być pobierane pliki.", token_information: "Bez wypełnienia <b>GitLab Access Token</b> ten konektor danych będzie mógł pobierać tylko pliki <b>z głównego katalogu</b> repozytorium ze względu na ograniczenia szybkości publicznego API GitLab.", token_personal: "Uzyskaj bezpłatny osobisty token dostępu do konta GitLab tutaj.", }, youtube: { name: "Transkrypcja YouTube", description: "Zaimportuj transkrypcję całego filmu YouTube z łącza.", URL: "Adres URL filmu YouTube", URL_explained_start: "Wprowadź adres URL dowolnego filmu z YouTube, aby pobrać jego transkrypcję. Film musi zawierać", URL_explained_link: " napisy", URL_explained_end: ".", task_explained: "Po zakończeniu transkrypcja będzie dostępna do osadzenia w obszarach roboczych w selektorze dokumentów.", language: "Język transkrypcji", language_explained: "Wybierz język transkrypcji, którą chcesz pobrać.", loading_languages: "-- wczytywanie dostępnych języków", }, "website-depth": { name: "Masowe pobieranie zawartości web", description: "Pobiera treści ze strony internetowej wraz z jej podstronami do określonej głębokości (liczby podstron).", URL: "Adres URL witryny", URL_explained: "Adres URL strony internetowej, z której chcesz pobrać treści.", depth: "Głębokość przeszukiwania", depth_explained: "Określa ile poziomów podstron zostanie przeszukanych począwszy od głównego adresu URL.", max_pages: "Maksymalna liczba stron", max_pages_explained: "Maksymalna liczba stron do pobrania.", task_explained: "Po zakończeniu cała pobrana zawartość będzie dostępna do dodania w obszarach roboczych w oknie dodawania danych.", }, confluence: { name: "Confluence", description: "Zaimportuj całą stronę Confluence jednym kliknięciem.", deployment_type: "Rodzaj wdrożenia Confluence", deployment_type_explained: "Określ, czy instancja Confluence jest hostowana w chmurze Atlassian, czy samodzielnie.", base_url: "Bazowy adres URL Confluence", base_url_explained: "Jest to podstawowy adres URL Confluence.", space_key: "Klucz przestrzeni Confluence", space_key_explained: "Jest to klucz instancji Confluence. Zwykle zaczyna się od ~", username: "Nazwa użytkownika Confluence", username_explained: "Nazwa użytkownika Confluence", auth_type: "Typ autoryzacji Confluence", auth_type_explained: "Wybierz typ uwierzytelniania, którego chcesz użyć do uzyskania dostępu do Confluence.", auth_type_username: "Nazwa użytkownika i token dostępu", auth_type_personal: "Osobisty token dostępu", token: "Token dostępu do Confluence", token_explained_start: "W celu uwierzytelnienia należy podać token dostępu. Token dostępu można wygenerować ", token_explained_link: "tutaj", token_desc: "Token dostępu", pat_token: "Osobisty token dostępu do Confluence", pat_token_explained: "Osobisty token dostępu do Confluence.", task_explained:
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/ar/common.js
frontend/src/locales/ar/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "مرحبا في", getStarted: "بسم الله", }, llm: { title: "إعدادات نموذج التعلم العميق المفضّلة", description: "يمكن لـِ إيني ثينك إلْلْمْ العمل مع عدة موفرين لنماذج التعلم العميق لأداء خدمة المحادثات", }, userSetup: { title: "إنشاء المستعمِل", description: ".ضبط إعدادات مستعمِلِك", howManyUsers: "كم من مستعمِل سيستعمِل هذا المثيل ؟", justMe: "فقط أنا", myTeam: "فريقي", instancePassword: "كلمة مرورالمثيل", setPassword: "هل تريد إنشاء كلمة مرور ؟", passwordReq: "يجب أن تحتوي كلمة المرور على ثمانية حروف على الأقل", passwordWarn: "من المهم حفظ كلمة المرور هذه لأنه لا يمكن استردادها.", adminUsername: "اسم مستعمل حساب المشرف", adminUsernameReq: "يجب أن يكون اسم المستعمل بطول 6 أحرف على الأقل وأن يحتوي فقط على أحرف صغيرة وأرقام وشرطات سفلية وواصلات بدون مسافات.", adminPassword: "كلمة مرور حساب المشرف", adminPasswordReq: "يجب أن تكون كلمات المرور 8 أحرف على الأقل.", teamHint: "بمجرد اكتمال الإنشاء ستكون المشرف الوحيد يمكنك دعوة الآخرين ليكونوا مستعملين أو مشرفين. لا تفقد كلمة المرور الخاصة بك حيث يمكن للمشرفين فقط إعادة تعيين كلمات المرور", }, data: { title: "معالجة البيانات والخصوصية", description: "نحن ملتزمون بالشفافية والمراقبة عندما يتعلق الأمر ببياناتك الشخصية.", settingsHint: "يمكن إعادة ضبط هذه الإعدادات في أي وقت.", }, survey: { title: "مرحباً في إيني ثينك إلْلْمْ", description: " بما يتناسب مع احتياجاتك ساعدنا إذا أحببت في تصميم إيني ثينك إلْلْمْ", email: "ما هو بريدك الالكتروني؟", useCase: "لماذا ستستخدم إيني ثينك إلْلْمْ؟", useCaseWork: "للعمل", useCasePersonal: "للاستخدام الشخصي", useCaseOther: "شيء آخَر", comment: "كيف سمعت عن إيني ثينك إلْلْمْ ؟", commentPlaceholder: "أخبرنا كيف وجدتنا!، يوتيوب، تويتر، جيثوب، ريديت وما إلى ذلك -", skip: "تخطي الاستطلاع", thankYou: "شكرا على تقييماتك!", }, workspace: { title: "قم بإنشاء مساحة العمل الأولى الخاصة بك", description: "قم بإنشاء مساحة العمل الأولى الخاصة بك وابدأ مع إيني ثينك إلْلْمْ.", }, }, common: { "workspaces-name": "اسم مساحة العمل", error: "خطأ", success: "موفّق", user: "مستعمِل", selection: "اختيار النموذج", saving: "حفظ...", save: "حفظ التغييرات", previous: "الصفحة السابقة", next: "الصفحة التالية", optional: "اختياري", yes: "نعم", no: "لا", search: null, }, settings: { title: "إعدادات المثيل", system: "الإعدادات العامة", invites: "دعوات", users: "مستعملون", workspaces: "مساحات العمل", "workspace-chats": "محادثات مساحة العمل", customization: "التخصيص", "api-keys": "واجهة برمجة التطبيقات للمطورين", llm: "النماذج اللغوية الكبيرة", transcription: "النسْخ", embedder: "مُضمّن", "text-splitting": "تقسيم النص تقطيعه", "voice-speech": "الصوت والخطاب", "vector-database": "قاعدة بيانات المتجهات", embeds: "تضمين المحادثة", "embed-chats": "سجل تضمين المحادثة", security: "حماية", "event-logs": "سجلات الأحداث", privacy: "الخصوصية والبيانات", "ai-providers": "موفرو الذكاء الاصطناعي", "agent-skills": "مهارات الوكيل", admin: "مشرف", tools: "أدوات", "experimental-features": "الميزات التجريبية", contact: "اتصل بالدعم", "browser-extension": "ملحق المتصفح", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "مرحبا في", "placeholder-username": "اسم المستعمِل", "placeholder-password": "كلمة المرور", login: "تسجيل الدخول", validating: "جاري التحقق...", "forgot-pass": "هل نسيت كلمة المرور", reset: "إعادة الضبط", }, "sign-in": { start: "تسجيل الدخول إلى", end: "حساب.", }, "password-reset": { title: "إعادة تعيين كلمة المرور", description: "قم بإدخال المعلومات اللازمة أدناه لإعادة تعيين كلمة المرور الخاصة بك.", "recovery-codes": "رموز الاسترداد", "recovery-code": " {{index}} رمز الاسترداد", "back-to-login": "العودة إلى تسجيل الدخول", }, }, "new-workspace": { title: "مساحة عمل جديدة", placeholder: "مساحتي للعمل", }, "workspaces—settings": { general: "الإعدادات العامة", chat: "إعدادات المحادثة", vector: "قاعدة بيانات المتجهات", members: "أعضاء", agent: "تكوين الوكيل", }, general: { vector: { title: "عدد المتجهات", description: "العدد الإجمالي للمتجهات في قاعدة بيانات المتجهات الخاصة بك.", }, names: { description: "سيؤدي هذا فقط إلى تغيير اسم العرض لمساحة العمل الخاصة بك.", }, message: { title: "رسائل المحادثة المقترحة", description: " تخصيص الرسائل التي سيتم اقتراحها لمستعملي مساحة العمل الخاصة بك.", add: "إضافة رسالة جديدة", save: "حفظ الرسائل", heading: "اشرح لي", body: "فوائد برنامج إيني ثينك إلْلْمْ", }, pfp: { title: "صورة الملف الشخصي للمساعد", description: "تخصيص صورة الملف الشخصي للمساعد لمساحة العمل هذه.", image: "صورة مساحة العمل", remove: "إزالة صورة مساحة العمل", }, delete: { title: "حذف مساحة العمل", description: "احذف مساحة العمل هذه وكل بياناتها. سيؤدي هذا إلى حذف مساحة العمل لجميع المستخدمين.", delete: "حذف مساحة العمل", deleting: "حذف مساحة العمل...", "confirm-start": "أنت على وشكِ حذف كامل", "confirm-end": "لمساحة العمل. سيؤدي هذا إلى إزالة جميع تضمينات المتجهات في قاعدة بيانات المتجهات الخاصة بك.\n\nستظل ملفات المصدر الأصلية دون مساس. هذا الإجراء لا رجعة فيه.", }, }, chat: { llm: { title: "موفر نموذج التعلم العميق لمساحة العمل", description: "موفر نموذج التعلم العميق المحدد والنموذج الذي سيتم استخدامه لمساحة العمل هذه. من الوهلة الأولى، يستخدم موفر نموذج التعلم العميق هذا مع إعدادات النظام.", search: "البحث عن كل مُوفري نماذج التعلم العميق", }, model: { title: "نموذج محادثة مساحة العمل", description: "نموذج المحادثة المحدد الذي سيتم استخدامه لمساحة العمل هذه. إذا كان غير محدد، فسيتم استخدام نموذج التعلم العميق الافتراضي للنظام.", wait: "-- في انتظار النماذج --", }, mode: { title: "وضع المحادثة", chat: { title: "المحادثة", "desc-start": "سيقدم إجابات حسب المعرفة العامة لنموذج التعلم العميق", and: "and", "desc-end": "المستند الذي تم العثور عليه حسب السياق.", }, query: { title: "استعلام", "desc-start": "سوف تقدم الإجابات", only: "فقط", "desc-end": "إذا وجد المستند في السياق", }, }, history: { title: "سجل المحادثة", "desc-start": "عدد المحادثات السابقة التي سيتم تضمينها في رد الذاكرة قصيرة المدى.", recommend: "الموصى به 20.", "desc-end": "من المرجح أن يؤدي أي رقم أكبر من 45 إلى فشل مستمر في المحادثة اعتمادًا على حجم الرسالة.", }, prompt: { title: "النداء", description: "النداء التي سيتم استخدامه في مساحة العمل هذه. حدد السياق والتعليمات للذكاء الاصطناعي للاستجابة. يجب عليك تقديم نداء مصمم بعناية حتى يتمكن الذكاء الاصطناعي من إنشاء استجابة دقيقة وذات صلة.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "الرد على رفض وضعية الاستعلام", "desc-start": "عندما تكون في", query: "استعلام", "desc-end": "وضعٍية ترغب في إرجاع رفض آخر مناسب عندما لا يتم العثور على السياق.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "حرارة نموذج التعلم العميق", "desc-start": 'يتحكم هذا الإعداد في مدى "الإبداع" الذي ستكون عليه إجابات نموذج التعلم العميق.', "desc-end": "كلما زاد العدد كلما كان الإبداع أكبر. بالنسبة لبعض النماذج، قد يؤدي هذا إلى استجابات غير منسجمة عند ضبطها على رقم مرتفع للغاية.", hint: "لدى معظم نماذج التعلم العميق مجالات مقبولة مختلفة من القيم الصالحة. استشر موفر نموذج التعلم العميق الخاص بك للحصول على هذه المعلومات.", }, }, "vector-workspace": { identifier: "معرف قاعدة بيانات المتجهة", snippets: { title: "الحد الأقصى لمقتطفات السياق", description: "يتحكم هذا الإعداد في الحد الأقصى لعدد مقتطفات السياق التي سيتم إرسالها إلى نموذج التعلم العميق لكل محادثة أو استعلام.", recommend: "الموصى به: 4", }, doc: { title: "عتبة تشابه المستند", description: "الحد الأدنى لدرجة التشابه المطلوبة لاعتبار المصدر مرتبطًا بالمحادثة. وكلما زاد الرقم، كلما كان المصدر أكثر تشابهًا بالمحادثة.", zero: "لا قيد", low: "منخفضة (درجة التشابه ≥ .25)", medium: "متوسطة ​​(درجة التشابه ≥ .50)", high: "عالية (درجة التشابه ≥ .75)", }, reset: { reset: "إعادة تعيين قاعدة بيانات المتجهات", resetting: "مسح المتجهات...", confirm: "أنت على وشك إعادة تعيين قاعدة بيانات المتجهات الخاصة بمساحة العمل هذه. سيؤدي هذا إلى إزالة جميع تضمينات المتجهات المضمنة حاليًا.\n\nستظل ملفات المصدر الأصلية دون مساس. هذا الإجراء لا رجعة فيه.", error: "تعذرت إعادة تعيين قاعدة بيانات متجهة مساحة العمل!", success: "تم إعادة تعيين قاعدة بيانات متجهة مساحة العمل!", }, }, agent: { "performance-warning": "يعتمد أداء نماذج التعلم العميق التي لا تدعم صراحةً استدعاء الأدوات بشكل كبير على قدرات النموذج ودقته. قد تكون بعض القدرات محدودة أو غير وظيفية.", provider: { title: "موفر نموذج التعلم العميق لوكيل مساحة العمل", description: "موفر نموذج التعلم العميق والنموذج المحدد الذي سيتم استخدامه لوكيل الخاص بمساحة العمل هذه.", }, mode: { chat: { title: "نموذج محادثة وكيل مساحة العمل", description: "نموذج المحادثة المحدد الذي سيتم استخدامه لوكيل الخاص بمساحة العمل هذه.", }, title: "نموذج وكيل مساحة العمل", description: "نموذج نموذج التعلم العميق المحدد الذي سيتم استخدامه لوكيل الخاص بمساحة العمل هذه.", wait: "-- في انتظار النماذج --", }, skill: { title: "مهارات الوكيل الافتراضية", description: "قم بتحسين القدرات الطبيعية للوكيل الافتراضي باستخدام هذه المهارات المعدة مسبقًا. ينطبق هذا الإعداد على جميع مساحات العمل.", rag: { title: "التوليد المعزز بالاسترجاع والذاكرة طويلة المدى", description: 'اسمح للوكيل بالاستفادة من مستنداتك المحلية للإجابة على استعلام أو اطلب من الوكيل "تذكر" أجزاء من المحتوى لاسترجاعها في الذاكرة طويلة المدى.', }, view: { title: "عرض وتلخيص المستندات", description: "السماح للوكيل بإدراج وتلخيص محتوى ملفات مساحة العمل المضمنة حاليًا.", }, scrape: { title: "جمع محتوى المواقع الإلكترونية", description: "السماح للوكيل بزيارة مواقع الويب وجمع محتواها.", }, generate: { title: "إنشاء المخططات البيانية", description: "تمكين الوكيل الافتراضي لإنشاء أنواع مختلفة من المخططات من البيانات المقدمة أو المعطاة في المحادثة.", }, save: { title: "إنشاء الملفات وحفظها في المتصفح", description: "تمكين الوكيل الافتراضي من إنشاء الملفات والكتابة عليها وحفظها و تنزيلها في متصفحك.", }, web: { title: "البحث والتصفح المباشر على الويب", "desc-start": "قم بتمكين الوكيل الخاص بك من البحث في الويب للإجابة على أسئلتك من خلال الاتصال بموفر البحث على الويب.", "desc-end": "لن يعمل البحث على الويب أثناء حصص المحادثة بواسطة الوكيل حتى يتم إعداد ذلك.", }, }, }, recorded: { title: "محادثات مساحة العمل", description: "هذه هي جميع المحادثات والرسائل المسجلة التي أرسلها المستعملون مرتبة حسب تاريخ إنشائها.", export: "تصدير", table: { id: "معرف", by: "أرسلت بواسطة", workspace: "مساحة العمل", prompt: "نداء", response: "استجابة", at: "أرسلت في", }, }, api: { title: " مفاتيح واجهة برمجة التطبيقات.", description: "تسمح مفاتيح واجهة برمجة التطبيقات لحامليها بالوصول إلى مثيل إني ثينك إلْلْم هذا وإدارته برمجيًا.", link: "اقرأ وثائق واجهة برمجة التطبيقات .", generate: "إنشاء مفتاح واجهة برمجة التطبيقات الجديد", table: { key: "مفتاح واجهة برمجة التطبيقات", by: "تم الإنشاء بواسطة", created: "تم إنشاؤها", }, }, llm: { title: "تفضيل نموذج التعلم العميق", description: "هذه هي بيانات الاعتماد والإعدادات الخاصة بنموذج التعلم العميق للمحادثة وموفر التضمين المفضلين لديك . من المهم أن تكون هذه المفاتيح حديثة وصحيحة وإلا فلن يعمل برنامج إني ثينك إلْلْم بشكل صحيح.", provider: "موفر نموذج التعلم العميق", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "تفضيل نموذج النسخ", description: "هذه هي بيانات الاعتماد والإعدادات الخاصة بموفر نموذج النسخ المفضل لديك. من المهم أن تكون هذه المفاتيح حديثة وصحيحة وإلا فلن يتم نسخ ملفات الوسائط والصوت.", provider: "موفر النسخ", "warn-start": "يمكن أن يؤدي استخدام نموذج الهمس المحلي على الأجهزة ذات ذاكرة الوصول العشوائي أو وحدة المعالجة المركزية المحدودة إلى تعطيل إني ثينك إلْلْم عند معالجة ملفات الوسائط.", "warn-recommend": "نوصي بذاكرة وصول عشوائي بسعة 2 جيجابايت على الأقل وتحميل ملفات أقل من 10 ميجا بايت.", "warn-end": "سيتم تنزيل النموذج المدمج تلقائيًا عند الاستخدام الأول.", }, embedding: { title: "تفضيل التضمين", "desc-start": "عند استخدام نموذج تعلم عميق لا يدعم محرك التضمين أصلاً - قد تحتاج إلى تحديد بيانات الاعتماد بالإضافة إلى ذلك لتضمين النص.", "desc-end": "التضمين هو عملية تحويل النص إلى متجهات. هذه البيانات مطلوبة لتحويل ملفاتك ومطالباتك إلى تنسيق يمكن لـ إني ثينك إلْلْمْ استخدامه للمعالجة.", provider: { title: "موفر التضمين", }, }, text: { title: "تقسيم النص وتفضيلات التقطيع", "desc-start": "في بعض الأحيان، قد ترغب في تغيير الطريقة الافتراضية التي يتم بها تقسيم المستندات الجديدة وتقطيعها قبل إدراجها في قاعدة بيانات المتجهة الخاصة بك.", "desc-end": "يجب عليك فقط تعديل هذا الإعداد إذا كنت تفهم كيفية عمل تقسيم النص وتأثيراته الجانبية.", size: { title: "حجم قطعة النص", description: "هذا هو الحد الأقصى لطول الأحرف التي يمكن أن تكون موجودة في متجهة واحدة.", recommend: "الحد الأقصى لطول نموذج التضمين هو", }, overlap: { title: "تداخل قطعة النص", description: "هذا هو الحد الأقصى لتداخل الأحرف الذي يحدث أثناء تقطيع قطعتي نص متجاورتين.", }, }, vector: { title: "قاعدة بيانات المتجهة", description: "هذه هي بيانات الاعتماد والإعدادات الخاصة بكيفية عمل مثيل إني ثينك إلْلْمْ الخاص بك. من المهم أن تكون هذه المفاتيح حالية وصحيحة.", provider: { title: "موفر قاعدة بيانات المتجهة", description: "ليست هناك حاجة تعيين إعدادات لانسديبي .", }, }, embeddable: { title: "أدوات المحادثة القابلة للتضمين", description: "تعتبر أدوات المحادثة القابلة للتضمين عبارة عن واجهات محادثة عامة مرتبطة بمساحة عمل واحدة. تتيح لك هذه الأدوات إنشاء مساحات عمل يمكنك بعد ذلك نشرها .", create: "إنشاء تضمين", table: { workspace: "مساحة العمل", chats: "المحادثات المرسلة", active: "المجالات النشطة", created: null, }, }, "embed-chats": { title: "تضمين المحادثات", export: "تصدير", description: "هذه هي جميع المحادثات والرسائل المسجلة من أي تضمين قمت بنشره.", table: { embed: "تضمين", sender: "مُرسِل", message: "رسالة", response: "استجابة", at: "أرسلت في", }, }, event: { title: "سجلات الحدث", description: "عرض كافة الإجراءات والأحداث التي تحدث في هذا المثيل للمراقبة.", clear: "محو سجلات الأحداث", table: { type: "نوع الحدث", user: "مستعمِل", occurred: "حدث في", }, }, privacy: { title: "الخصوصية ومعالجة البيانات", description: "هذا هو التكوين الخاص بك لكيفية تعامل موفري الطرف الثالث المتصلين و إني ثينك إلْلْمْ مع بياناتك.", llm: "اختيار نموذج التعلم العميق", embedding: "تفضيلات التضمين", vector: "قاعدة بيانات المتجهة", anonymous: "تم تمكين القياس المستتر عن بعد ", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, },
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/nl/common.js
frontend/src/locales/nl/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: null, useCase: null, useCaseWork: null, useCasePersonal: null, useCaseOther: null, comment: null, commentPlaceholder: null, skip: null, thankYou: null, title: null, description: null, }, home: { title: null, getStarted: null, }, llm: { title: null, description: null, }, userSetup: { title: null, description: null, howManyUsers: null, justMe: null, myTeam: null, instancePassword: null, setPassword: null, passwordReq: null, passwordWarn: null, adminUsername: null, adminUsernameReq: null, adminPassword: null, adminPasswordReq: null, teamHint: null, }, data: { title: null, description: null, settingsHint: null, }, workspace: { title: null, description: null, }, }, common: { "workspaces-name": "Werkruimten Naam", error: "fout", success: "succes", user: "Gebruiker", selection: "Model Selectie", saving: "Opslaan...", save: "Wijzigingen opslaan", previous: "Vorige pagina", next: "Volgende pagina", optional: null, yes: null, no: null, search: null, }, settings: { title: "Instelling Instanties", system: "Algemene Instellingen", invites: "Uitnodigingen", users: "Gebruikers", workspaces: "Werkruimten", "workspace-chats": "Werkruimte Chats", customization: "Aanpassing", "api-keys": "Ontwikkelaar API", llm: "LLM", transcription: "Transcriptie", embedder: "Inbedder", "text-splitting": "Tekst Splitsen & Chunking", "voice-speech": "Stem & Spraak", "vector-database": "Vector Database", embeds: "Chat Inbedden", "embed-chats": "Ingebedde Chat Geschiedenis", security: "Veiligheid", "event-logs": "Gebeurtenislogboeken", privacy: "Privacy & Gegevens", "ai-providers": "AI Providers", "agent-skills": "Agent Vaardigheden", admin: "Beheerder", tools: "Hulpmiddelen", "experimental-features": "Experimentele Functies", contact: "Contact Ondersteuning", "browser-extension": "Browser Extensie", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Welkom bij", "placeholder-username": "Gebruikersnaam", "placeholder-password": "Wachtwoord", login: "Inloggen", validating: "Bezig met valideren...", "forgot-pass": "Wachtwoord vergeten", reset: "Reset", }, "sign-in": { start: "Meld je aan bij je", end: "account.", }, "password-reset": { title: "Wachtwoord Resetten", description: "Geef de benodigde informatie hieronder om je wachtwoord te resetten.", "recovery-codes": "Herstelcodes", "recovery-code": "Herstelcode {{index}}", "back-to-login": "Terug naar Inloggen", }, }, "new-workspace": { title: "Nieuwe Werkruimte", placeholder: "Mijn Werkruimte", }, "workspaces—settings": { general: "Algemene Instellingen", chat: "Chat Instellingen", vector: "Vector Database", members: "Leden", agent: "Agent Configuratie", }, general: { vector: { title: "Vector Teller", description: "Totaal aantal vectoren in je vector database.", }, names: { description: "Dit zal alleen de weergavenaam van je werkruimte wijzigen.", }, message: { title: "Voorgestelde Chatberichten", description: "Pas de berichten aan die aan je werkruimtegebruikers worden voorgesteld.", add: "Nieuw bericht toevoegen", save: "Berichten opslaan", heading: "Leg me uit", body: "de voordelen van AnythingLLM", }, pfp: { title: "Assistent Profielfoto", description: "Pas de profielfoto van de assistent voor deze werkruimte aan.", image: "Werkruimte Afbeelding", remove: "Werkruimte Afbeelding Verwijderen", }, delete: { title: "Werkruimte Verwijderen", description: "Verwijder deze werkruimte en al zijn gegevens. Dit zal de werkruimte voor alle gebruikers verwijderen.", delete: "Werkruimte Verwijderen", deleting: "Werkruimte Verwijderen...", "confirm-start": "Je staat op het punt je gehele", "confirm-end": "werkruimte te verwijderen. Dit zal alle vector inbeddingen in je vector database verwijderen.\n\nDe originele bronbestanden blijven onaangetast. Deze actie is onomkeerbaar.", }, }, chat: { llm: { title: "Werkruimte LLM Provider", description: "De specifieke LLM-provider en -model die voor deze werkruimte zal worden gebruikt. Standaard wordt de systeem LLM-provider en instellingen gebruikt.", search: "Zoek alle LLM-providers", }, model: { title: "Werkruimte Chatmodel", description: "Het specifieke chatmodel dat voor deze werkruimte zal worden gebruikt. Indien leeg, wordt de systeem LLM-voorkeur gebruikt.", wait: "-- wachten op modellen --", }, mode: { title: "Chatmodus", chat: { title: "Chat", "desc-start": "zal antwoorden geven met de algemene kennis van de LLM", and: "en", "desc-end": "documentcontext die wordt gevonden.", }, query: { title: "Query", "desc-start": "zal antwoorden geven", only: "alleen", "desc-end": "als documentcontext wordt gevonden.", }, }, history: { title: "Chatgeschiedenis", "desc-start": "Het aantal vorige chats dat in het kortetermijngeheugen van de reactie wordt opgenomen.", recommend: "Aanbevolen 20. ", "desc-end": "Alles meer dan 45 leidt waarschijnlijk tot continue chatfouten, afhankelijk van de berichtgrootte.", }, prompt: { title: "Prompt", description: "De prompt die in deze werkruimte zal worden gebruikt. Definieer de context en instructies voor de AI om een reactie te genereren. Je moet een zorgvuldig samengestelde prompt geven zodat de AI een relevante en nauwkeurige reactie kan genereren.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Afwijzingsreactie in Querymodus", "desc-start": "Wanneer in", query: "query", "desc-end": "modus, wil je wellicht een aangepaste afwijzingsreactie geven wanneer er geen context wordt gevonden.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM Temperatuur", "desc-start": 'Deze instelling bepaalt hoe "creatief" je LLM-antwoorden zullen zijn.', "desc-end": "Hoe hoger het getal, hoe creatiever. Voor sommige modellen kan dit leiden tot onsamenhangende antwoorden als het te hoog wordt ingesteld.", hint: "De meeste LLM's hebben verschillende acceptabele reeksen van geldige waarden. Raadpleeg je LLM-provider voor die informatie.", }, }, "vector-workspace": { identifier: "Vector database-identificator", snippets: { title: "Maximale Contextfragmenten", description: "Deze instelling bepaalt het maximale aantal contextfragmenten dat per chat of query naar de LLM wordt verzonden.", recommend: "Aanbevolen: 4", }, doc: { title: "Document gelijkenisdrempel", description: "De minimale gelijkenisscore die vereist is voor een bron om als gerelateerd aan de chat te worden beschouwd. Hoe hoger het getal, hoe meer vergelijkbaar de bron moet zijn met de chat.", zero: "Geen beperking", low: "Laag (gelijkenisscore ≥ .25)", medium: "Middel (gelijkenisscore ≥ .50)", high: "Hoog (gelijkenisscore ≥ .75)", }, reset: { reset: "Vector Database Resetten", resetting: "Vectoren wissen...", confirm: "Je staat op het punt de vector database van deze werkruimte te resetten. Dit zal alle momenteel ingebedde vectoren verwijderen.\n\nDe originele bronbestanden blijven onaangetast. Deze actie is onomkeerbaar.", error: "Werkruimte vector database kon niet worden gereset!", success: "Werkruimte vector database is gereset!", }, }, agent: { "performance-warning": "De prestaties van LLM's die geen tool-aanroep expliciet ondersteunen, zijn sterk afhankelijk van de capaciteiten en nauwkeurigheid van het model. Sommige vaardigheden kunnen beperkt of niet-functioneel zijn.", provider: { title: "Werkruimte Agent LLM Provider", description: "De specifieke LLM-provider en -model die voor het @agent-agent van deze werkruimte zal worden gebruikt.", }, mode: { chat: { title: "Werkruimte Agent Chatmodel", description: "Het specifieke chatmodel dat zal worden gebruikt voor het @agent-agent van deze werkruimte.", }, title: "Werkruimte Agentmodel", description: "Het specifieke LLM-model dat voor het @agent-agent van deze werkruimte zal worden gebruikt.", wait: "-- wachten op modellen --", }, skill: { title: "Standaard agentvaardigheden", description: "Verbeter de natuurlijke vaardigheden van de standaardagent met deze vooraf gebouwde vaardigheden. Deze opstelling is van toepassing op alle werkruimten.", rag: { title: "RAG & langetermijngeheugen", description: 'Sta de agent toe om je lokale documenten te gebruiken om een vraag te beantwoorden of vraag de agent om stukken inhoud "te onthouden" voor langetermijngeheugenopslag.', }, view: { title: "Documenten bekijken & samenvatten", description: "Sta de agent toe om de inhoud van momenteel ingebedde werkruimtebestanden op te sommen en samen te vatten.", }, scrape: { title: "Websites schrapen", description: "Sta de agent toe om de inhoud van websites te bezoeken en te schrapen.", }, generate: { title: "Grafieken genereren", description: "Sta de standaardagent toe om verschillende soorten grafieken te genereren uit verstrekte of in de chat gegeven gegevens.", }, save: { title: "Genereren & opslaan van bestanden naar browser", description: "Sta de standaardagent toe om te genereren en te schrijven naar bestanden die worden opgeslagen en kunnen worden gedownload in je browser.", }, web: { title: "Live web zoeken en browsen", "desc-start": "Sta je agent toe om het web te doorzoeken om je vragen te beantwoorden door verbinding te maken met een web-zoek (SERP) provider.", "desc-end": "Webzoeken tijdens agentensessies zal niet werken totdat dit is ingesteld.", }, }, }, recorded: { title: "Werkruimte Chats", description: "Dit zijn alle opgenomen chats en berichten die door gebruikers zijn verzonden, gerangschikt op hun aanmaakdatum.", export: "Exporteren", table: { id: "Id", by: "Verzonden Door", workspace: "Werkruimte", prompt: "Prompt", response: "Response", at: "Verzonden Om", }, }, api: { title: "API-sleutels", description: "API-sleutels stellen de houder in staat om deze AnythingLLM-instantie programmatisch te openen en beheren.", link: "Lees de API-documentatie", generate: "Genereer Nieuwe API-sleutel", table: { key: "API-sleutel", by: "Aangemaakt Door", created: "Aangemaakt", }, }, llm: { title: "LLM Voorkeur", description: "Dit zijn de inloggegevens en instellingen voor je voorkeurs LLM-chat & inbeddingprovider. Het is belangrijk dat deze sleutels actueel en correct zijn, anders zal AnythingLLM niet goed werken.", provider: "LLM Provider", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Transcriptiemodel Voorkeur", description: "Dit zijn de inloggegevens en instellingen voor je voorkeurs transcriptiemodelprovider. Het is belangrijk dat deze sleutels actueel en correct zijn, anders worden media en audio niet getranscribeerd.", provider: "Transcriptieprovider", "warn-start": "Het gebruik van het lokale fluistermodel op machines met beperkte RAM of CPU kan AnythingLLM vertragen bij het verwerken van mediabestanden.", "warn-recommend": "We raden minstens 2GB RAM aan en upload bestanden <10Mb.", "warn-end": "Het ingebouwde model wordt automatisch gedownload bij het eerste gebruik.", }, embedding: { title: "Inbedding Voorkeur", "desc-start": "Bij het gebruik van een LLM die geen ingebouwde ondersteuning voor een inbeddingengine heeft, moet je mogelijk aanvullende inloggegevens opgeven voor het inbedden van tekst.", "desc-end": "Inbedding is het proces van het omzetten van tekst in vectoren. Deze inloggegevens zijn vereist om je bestanden en prompts om te zetten naar een formaat dat AnythingLLM kan gebruiken om te verwerken.", provider: { title: "Inbedding Provider", }, }, text: { title: "Tekst Splitsen & Chunking Voorkeuren", "desc-start": "Soms wil je misschien de standaard manier wijzigen waarop nieuwe documenten worden gesplitst en gechunkt voordat ze in je vector database worden ingevoerd.", "desc-end": "Je moet deze instelling alleen wijzigen als je begrijpt hoe tekstsplitsing werkt en de bijbehorende effecten.", size: { title: "Tekst Chunk Grootte", description: "Dit is de maximale lengte van tekens die aanwezig kan zijn in een enkele vector.", recommend: "Inbed model maximale lengte is", }, overlap: { title: "Tekst Chunk Overlap", description: "Dit is de maximale overlap van tekens die optreedt tijdens het chunking tussen twee aangrenzende tekstchunks.", }, }, vector: { title: "Vector Database", description: "Dit zijn de inloggegevens en instellingen voor hoe je AnythingLLM-instantie zal functioneren. Het is belangrijk dat deze sleutels actueel en correct zijn.", provider: { title: "Vector Database Provider", description: "Er is geen configuratie nodig voor LanceDB.", }, }, embeddable: { title: "Inbedbare Chat Widgets", description: "Inbedbare chatwidgets zijn openbare chatinterfaces die zijn gekoppeld aan een enkele werkruimte. Hiermee kun je werkruimten bouwen die je vervolgens kunt publiceren naar de wereld.", create: "Maak inbedding", table: { workspace: "Werkruimte", chats: "Verzonden Chats", active: "Actieve Domeinen", created: null, }, }, "embed-chats": { title: "Inbedding Chats", export: "Exporteren", description: "Dit zijn alle opgenomen chats en berichten van elke inbedding die je hebt gepubliceerd.", table: { embed: "Inbedding", sender: "Afzender", message: "Bericht", response: "Reactie", at: "Verzonden Om", }, }, event: { title: "Gebeurtenislogboeken", description: "Bekijk alle acties en gebeurtenissen die op deze instantie plaatsvinden voor monitoring.", clear: "Gebeurtenislogboeken Wissen", table: { type: "Gebeurtenistype", user: "Gebruiker", occurred: "Opgetreden Op", }, }, privacy: { title: "Privacy & Gegevensverwerking", description: "Dit is je configuratie voor hoe verbonden derden en AnythingLLM je gegevens verwerken.", llm: "LLM Selectie", embedding: "Inbedding Voorkeur", vector: "Vector Database", anonymous: "Anonieme Telemetrie Ingeschakeld", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, }, visit_community: { title: null, description: null, action: null, }, }, }, quickLinks: { title: null, sendChat: null, embedDocument: null, createWorkspace: null, }, exploreMore: { title: null, features: { customAgents: { title: null, description: null, primaryAction: null, secondaryAction: null, }, slashCommands: { title: null, description: null, primaryAction: null, secondaryAction: null, }, systemPrompts: { title: null, description: null, primaryAction: null, secondaryAction: null, }, }, }, announcements: { title: null, }, resources: { title: null, links: { docs: null, star: null, }, keyboardShortcuts: null, }, }, "keyboard-shortcuts": { title: null, shortcuts: { settings: null, workspaceSettings: null, home: null, workspaces: null, apiKeys: null, llmPreferences: null, chatSettings: null, help: null, showLLMSelector: null, }, }, community_hub: { publish: { system_prompt: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, submit: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, agent_flow: { public_description: null, private_description: null, success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, publish_button: null, submitting: null, submit: null, privacy_note: null, }, generic: { unauthenticated: { title: null, description: null, button: null, }, }, slash_command: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, command_label: null, command_description: null, command_placeholder: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, }, }, security: { title: "Veiligheid", multiuser: { title: "Multi-Gebruikersmodus", description: "Stel je instantie in om je team te ondersteunen door Multi-Gebruikersmodus in te schakelen.", enable: { "is-enable": "Multi-Gebruikersmodus is Ingeschakeld", enable: "Schakel Multi-Gebruikersmodus In", description: "Standaard ben je de enige beheerder. Als beheerder moet je accounts aanmaken voor alle nieuwe gebruikers of beheerders. Verlies je wachtwoord niet, want alleen een beheerdersgebruiker kan wachtwoorden resetten.", username: "Beheerdersaccount gebruikersnaam", password: "Beheerdersaccount wachtwoord", }, }, password: { title: "Wachtwoordbeveiliging", description: "Bescherm je AnythingLLM-instantie met een wachtwoord. Als je dit vergeet, is er geen herstelmethode, dus zorg ervoor dat je dit wachtwoord opslaat.", "password-label": "Instances wachtwoord", }, }, home: { welcome: "Welkom", chooseWorkspace: "Kies een werkruimte om te beginnen!", notAssigned: "Je bent nog niet toegewezen aan een werkruimte.\nNeem contact op met je beheerder om toegang te vragen tot een werkruimte.", goToWorkspace: 'Ga naar de werkruimte "{{workspace}}"', }, }; export default TRANSLATIONS;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/fr/common.js
frontend/src/locales/fr/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: "Adresse e-mail", useCase: "Pour quel usage utiliserez-vous AnythingLLM ?", useCaseWork: "Pour le travail", useCasePersonal: "Pour un usage personnel", useCaseOther: "Autre", comment: "Comment avez-vous découvert AnythingLLM ?", commentPlaceholder: "Recherche, recommandation, Twitter, YouTube, etc.", skip: "Ignorer l'enquête", thankYou: "Merci pour votre retour !", title: "Bienvenue", description: "Aidez-nous à améliorer AnythingLLM en répondant à quelques questions.", }, home: { title: "Bienvenue", getStarted: "Commencer", }, llm: { title: "Préférence LLM", description: "AnythingLLM peut fonctionner avec de nombreux fournisseurs LLM. Ce sera le service qui traitera vos discussions.", }, userSetup: { title: "Configuration utilisateur", description: "Configurez votre accès utilisateur.", howManyUsers: "Combien de personnes utiliseront cette instance ?", justMe: "Juste moi", myTeam: "Mon équipe", instancePassword: "Mot de passe de l'instance", setPassword: "Définir un mot de passe", passwordReq: "Le mot de passe doit contenir au moins 8 caractères.", passwordWarn: "Conservez ce mot de passe, il n'y a pas de récupération possible.", adminUsername: "Nom d'utilisateur administrateur", adminUsernameReq: "Le nom d'utilisateur doit contenir au moins 6 caractères.", adminPassword: "Mot de passe administrateur", adminPasswordReq: "Le mot de passe doit contenir au moins 8 caractères.", teamHint: "Vous pourrez ajouter d'autres utilisateurs après la configuration initiale.", }, data: { title: "Gestion des données", description: "Configurez comment AnythingLLM stocke et traite vos données.", settingsHint: "Ces paramètres peuvent être modifiés ultérieurement dans les paramètres.", }, workspace: { title: "Créer votre premier espace de travail", description: "Créez votre premier espace de travail pour commencer à utiliser AnythingLLM.", }, }, common: { "workspaces-name": "Nom des espaces de travail", error: "erreur", success: "succès", user: "Utilisateur", selection: "Sélection du modèle", saving: "Enregistrement...", save: "Enregistrer les modifications", previous: "Page précédente", next: "Page suivante", optional: "Optionnel", yes: "Oui", no: "Non", search: "Rechercher", }, settings: { title: "Paramètres de l'instance", system: "Préférences système", invites: "Invitation", users: "Utilisateurs", workspaces: "Espaces de travail", "workspace-chats": "Chat de l'espace de travail", customization: "Apparence", "api-keys": "Clés API", llm: "Préférence LLM", transcription: "Modèle de transcription", embedder: "Préférences d'intégration", "text-splitting": "Diviseur de texte et découpage", "voice-speech": "Voix et Parole", "vector-database": "Base de données vectorielle", embeds: "Widgets de chat intégrés", "embed-chats": "Historique des chats intégrés", security: "Sécurité", "event-logs": "Journaux d'événements", privacy: "Confidentialité et données", "ai-providers": "Fournisseurs d'IA", "agent-skills": "Compétences de l'agent", admin: "Admin", tools: "Outils", "experimental-features": "Fonctionnalités Expérimentales", contact: "Contacter le Support", "browser-extension": "Extension de navigateur", "system-prompt-variables": "Variables de prompt système", interface: "Interface", branding: "Personnalisation", chat: "Chat", }, login: { "multi-user": { welcome: "Bienvenue", "placeholder-username": "Nom d'utilisateur", "placeholder-password": "Mot de passe", login: "Connexion", validating: "Validation...", "forgot-pass": "Mot de passe oublié", reset: "Réinitialiser", }, "sign-in": { start: "Connectez-vous à votre", end: "compte.", }, "password-reset": { title: "Réinitialisation du mot de passe", description: "Fournissez les informations nécessaires ci-dessous pour réinitialiser votre mot de passe.", "recovery-codes": "Codes de récupération", "recovery-code": "Code de récupération {{index}}", "back-to-login": "Retour à la connexion", }, }, "new-workspace": { title: "Nouvel Espace de Travail", placeholder: "Mon Espace de Travail", }, "workspaces—settings": { general: "Paramètres généraux", chat: "Paramètres du chat", vector: "Base de données vectorielle", members: "Membres", agent: "Configuration de l'agent", }, general: { vector: { title: "Nombre de vecteurs", description: "Nombre total de vecteurs dans votre base de données vectorielle.", }, names: { description: "Cela ne changera que le nom d'affichage de votre espace de travail.", }, message: { title: "Messages de chat suggérés", description: "Personnalisez les messages qui seront suggérés aux utilisateurs de votre espace de travail.", add: "Ajouter un nouveau message", save: "Enregistrer les messages", heading: "Expliquez-moi", body: "les avantages de AnythingLLM", }, pfp: { title: "Image de profil de l'assistant", description: "Personnalisez l'image de profil de l'assistant pour cet espace de travail.", image: "Image de l'espace de travail", remove: "Supprimer l'image de l'espace de travail", }, delete: { title: "Supprimer l'Espace de Travail", description: "Supprimer cet espace de travail et toutes ses données. Cela supprimera l'espace de travail pour tous les utilisateurs.", delete: "Supprimer l'espace de travail", deleting: "Suppression de l'espace de travail...", "confirm-start": "Vous êtes sur le point de supprimer votre", "confirm-end": "espace de travail. Cela supprimera toutes les intégrations vectorielles dans votre base de données vectorielle.\n\nLes fichiers source originaux resteront intacts. Cette action est irréversible.", }, }, chat: { llm: { title: "Fournisseur LLM de l'espace de travail", description: "Le fournisseur et le modèle LLM spécifiques qui seront utilisés pour cet espace de travail. Par défaut, il utilise le fournisseur et les paramètres LLM du système.", search: "Rechercher tous les fournisseurs LLM", }, model: { title: "Modèle de chat de l'espace de travail", description: "Le modèle de chat spécifique qui sera utilisé pour cet espace de travail. Si vide, utilisera la préférence LLM du système.", wait: "-- en attente des modèles --", }, mode: { title: "Mode de chat", chat: { title: "Chat", "desc-start": "fournira des réponses avec les connaissances générales du LLM", and: "et", "desc-end": "le contexte du document trouvé.", }, query: { title: "Requête", "desc-start": "fournira des réponses", only: "uniquement", "desc-end": "si un contexte de document est trouvé.", }, }, history: { title: "Historique des chats", "desc-start": "Le nombre de chats précédents qui seront inclus dans la mémoire à court terme de la réponse.", recommend: "Recommandé: 20.", "desc-end": "Tout nombre supérieur à 45 risque de provoquer des échecs de chat continus en fonction de la taille du message.", }, prompt: { title: "Invite", description: "L'invite qui sera utilisée sur cet espace de travail. Définissez le contexte et les instructions pour que l'IA génère une réponse. Vous devez fournir une invite soigneusement conçue pour que l'IA puisse générer une réponse pertinente et précise.", history: { title: "Historique des prompts", clearAll: "Tout effacer", noHistory: "Aucun historique", restore: "Restaurer", delete: "Supprimer", deleteConfirm: "Êtes-vous sûr de vouloir supprimer ce prompt ?", clearAllConfirm: "Êtes-vous sûr de vouloir effacer tout l'historique ?", expand: "Développer", publish: "Publier", }, }, refusal: { title: "Réponse de refus en mode requête", "desc-start": "En mode", query: "requête", "desc-end": ", vous pouvez souhaiter retourner une réponse de refus personnalisée lorsque aucun contexte n'est trouvé.", "tooltip-title": "Personnaliser la réponse de refus", "tooltip-description": "Personnalisez la réponse qui sera affichée lorsque aucun contexte pertinent n'est trouvé dans vos documents.", }, temperature: { title: "Température LLM", "desc-start": "Ce paramètre contrôle le niveau de créativité des réponses de votre LLM.", "desc-end": "Plus le nombre est élevé, plus la réponse sera créative. Pour certains modèles, cela peut entraîner des réponses incohérentes si la valeur est trop élevée.", hint: "La plupart des LLM ont diverses plages acceptables de valeurs valides. Consultez votre fournisseur LLM pour cette information.", }, }, "vector-workspace": { identifier: "Identifiant de la base de données vectorielle", snippets: { title: "Nombre maximum de contextes", description: "Ce paramètre contrôle le nombre maximum de contextes qui seront envoyés au LLM par chat ou requête.", recommend: "Recommandé: 4", }, doc: { title: "Seuil de similarité des documents", description: "Le score de similarité minimum requis pour qu'une source soit considérée comme liée au chat. Plus le nombre est élevé, plus la source doit être similaire au chat.", zero: "Aucune restriction", low: "Bas (score de similarité ≥ .25)", medium: "Moyen (score de similarité ≥ .50)", high: "Élevé (score de similarité ≥ .75)", }, reset: { reset: "Réinitialiser la base de données vectorielle", resetting: "Effacement des vecteurs...", confirm: "Vous êtes sur le point de réinitialiser la base de données vectorielle de cet espace de travail. Cela supprimera toutes les intégrations vectorielles actuellement intégrées.\n\nLes fichiers source originaux resteront intacts. Cette action est irréversible.", error: "La base de données vectorielle de l'espace de travail n'a pas pu être réinitialisée !", success: "La base de données vectorielle de l'espace de travail a été réinitialisée !", }, }, agent: { "performance-warning": "La performance des LLM qui ne supportent pas explicitement l'appel d'outils dépend fortement des capacités et de la précision du modèle. Certaines capacités peuvent être limitées ou non fonctionnelles.", provider: { title: "Fournisseur LLM de l'agent de l'espace de travail", description: "Le fournisseur et le modèle LLM spécifiques qui seront utilisés pour l'agent @agent de cet espace de travail.", }, mode: { chat: { title: "Modèle de chat de l'agent de l'espace de travail", description: "Le modèle de chat spécifique qui sera utilisé pour l'agent @agent de cet espace de travail.", }, title: "Modèle de l'agent de l'espace de travail", description: "Le modèle LLM spécifique qui sera utilisé pour l'agent @agent de cet espace de travail.", wait: "-- en attente des modèles --", }, skill: { title: "Compétences par défaut de l'agent", description: "Améliorez les capacités naturelles de l'agent par défaut avec ces compétences préconstruites. Cette configuration s'applique à tous les espaces de travail.", rag: { title: "RAG et mémoire à long terme", description: "Permettez à l'agent de s'appuyer sur vos documents locaux pour répondre à une requête ou demandez à l'agent de se souvenir de morceaux de contenu pour la récupération de mémoire à long terme.", }, view: { title: "Voir et résumer des documents", description: "Permettez à l'agent de lister et de résumer le contenu des fichiers de l'espace de travail actuellement intégrés.", }, scrape: { title: "Récupérer des sites web", description: "Permettez à l'agent de visiter et de récupérer le contenu des sites web.", }, generate: { title: "Générer des graphiques", description: "Activez l'agent par défaut pour générer différents types de graphiques à partir des données fournies ou données dans le chat.", }, save: { title: "Générer et sauvegarder des fichiers dans le navigateur", description: "Activez l'agent par défaut pour générer et écrire des fichiers qui peuvent être sauvegardés et téléchargés dans votre navigateur.", }, web: { title: "Recherche web en direct et navigation", "desc-start": "Permettez à votre agent de rechercher sur le web pour répondre à vos questions en se connectant à un fournisseur de recherche web (SERP).", "desc-end": "La recherche web pendant les sessions d'agent ne fonctionnera pas tant que cela ne sera pas configuré.", }, }, }, recorded: { title: "Chats de l'espace de travail", description: "Voici tous les chats et messages enregistrés qui ont été envoyés par les utilisateurs, classés par date de création.", export: "Exporter", table: { id: "Id", by: "Envoyé par", workspace: "Espace de travail", prompt: "Invite", response: "Réponse", at: "Envoyé à", }, }, api: { title: "Clés API", description: "Les clés API permettent au titulaire d'accéder et de gérer de manière programmatique cette instance AnythingLLM.", link: "Lisez la documentation de l'API", generate: "Générer une nouvelle clé API", table: { key: "Clé API", by: "Créé par", created: "Créé", }, }, llm: { title: "Préférence LLM", description: "Voici les identifiants et les paramètres de votre fournisseur LLM de chat et d'intégration préféré. Il est important que ces clés soient actuelles et correctes, sinon AnythingLLM ne fonctionnera pas correctement.", provider: "Fournisseur LLM", providers: { azure_openai: { azure_service_endpoint: "Point de terminaison du service Azure", api_key: "Clé API", chat_deployment_name: "Nom du déploiement de chat", chat_model_token_limit: "Limite de tokens du modèle de chat", model_type: "Type de modèle", default: "Par défaut", reasoning: "Raisonnement", model_type_tooltip: null, }, }, }, transcription: { title: "Préférence du modèle de transcription", description: "Voici les identifiants et les paramètres de votre fournisseur de modèle de transcription préféré. Il est important que ces clés soient actuelles et correctes, sinon les fichiers multimédias et audio ne seront pas transcrits.", provider: "Fournisseur de transcription", "warn-start": "L'utilisation du modèle local whisper sur des machines avec une RAM ou un CPU limités peut bloquer AnythingLLM lors du traitement des fichiers multimédias.", "warn-recommend": "Nous recommandons au moins 2 Go de RAM et des fichiers téléchargés <10 Mo.", "warn-end": "Le modèle intégré se téléchargera automatiquement lors de la première utilisation.", }, embedding: { title: "Préférence d'intégration", "desc-start": "Lorsque vous utilisez un LLM qui ne supporte pas nativement un moteur d'intégration - vous devrez peut-être spécifier en plus des identifiants pour intégrer le texte.", "desc-end": "L'intégration est le processus de transformation du texte en vecteurs. Ces identifiants sont nécessaires pour transformer vos fichiers et invites en un format que AnythingLLM peut utiliser pour traiter.", provider: { title: "Fournisseur d'intégration", }, }, text: { title: "Préférences de division et de découpage du texte", "desc-start": "Parfois, vous voudrez peut-être changer la façon dont les nouveaux documents sont divisés et découpés avant d'être insérés dans votre base de données vectorielle.", "desc-end": "Vous ne devez modifier ce paramètre que si vous comprenez comment fonctionne la division du texte et ses effets secondaires.", size: { title: "Taille des segments de texte", description: "C'est la longueur maximale de caractères pouvant être présents dans un seul vecteur.", recommend: "Longueur maximale du modèle d'intégration est", }, overlap: { title: "Chevauchement des segments de texte", description: "C'est le chevauchement maximal de caractères qui se produit pendant le découpage entre deux segments de texte adjacents.", }, }, vector: { title: "Base de données vectorielle", description: "Voici les identifiants et les paramètres de fonctionnement de votre instance AnythingLLM. Il est important que ces clés soient actuelles et correctes.", provider: { title: "Fournisseur de base de données vectorielle", description: "Aucune configuration n'est nécessaire pour LanceDB.", }, }, embeddable: { title: "Widgets de chat intégrables", description: "Les widgets de chat intégrables sont des interfaces de chat publiques associées à un espace de travail unique. Ils vous permettent de créer des espaces de travail que vous pouvez ensuite publier dans le monde entier.", create: "Créer un widget intégré", table: { workspace: "Espace de travail", chats: "Chats envoyés", active: "Domaines actifs", created: "Créé le", }, }, "embed-chats": { title: "Chats intégrés", export: "Exporter", description: "Voici tous les chats et messages enregistrés de tout widget intégré que vous avez publié.", table: { embed: "Intégration", sender: "Expéditeur", message: "Message", response: "Réponse", at: "Envoyé à", }, }, event: { title: "Journaux d'événements", description: "Consultez toutes les actions et événements se produisant sur cette instance pour la surveillance.", clear: "Effacer les journaux d'événements", table: { type: "Type d'événement", user: "Utilisateur", occurred: "Survenu à", }, }, privacy: { title: "Confidentialité et gestion des données", description: "Voici votre configuration pour la gestion des données et des fournisseurs tiers connectés avec AnythingLLM.", llm: "Sélection LLM", embedding: "Préférence d'intégration", vector: "Base de données vectorielle", anonymous: "Télémétrie anonyme activée", }, connectors: { "search-placeholder": "Rechercher des connecteurs de données", "no-connectors": "Aucun connecteur de données trouvé.", github: { name: "Dépôt GitHub", description: "Importez un dépôt GitHub entier en un seul clic.", URL: "URL du dépôt GitHub", URL_explained: "URL du dépôt GitHub que vous souhaitez collecter.", token: "Jeton d'accès GitHub", optional: "Optionnel", token_explained: "Jeton d'accès pour les dépôts privés.", token_explained_start: "Sans jeton d'accès, vous ne pourrez collecter que les dépôts publics. Vous pouvez", token_explained_link1: "créer un jeton d'accès temporaire", token_explained_middle: "ou", token_explained_link2: "en créer un ici", token_explained_end: "avec la portée 'repo'.", ignores: "Exclusions de fichiers", git_ignore: "Liste au format .gitignore pour exclure des fichiers de la collecte. Appuyez sur Entrée après chaque entrée.", task_explained: "Une fois terminé, tous les fichiers seront disponibles pour être intégrés dans les espaces de travail dans le menu de documents.", branch: "Branche", branch_loading: "-- chargement des branches disponibles --", branch_explained: "Branche à collecter.", token_information: "Informations sur le jeton", token_personal: "Créez un jeton d'accès personnel sur GitHub pour accéder aux dépôts privés.", }, gitlab: { name: "Dépôt GitLab", description: "Importez un dépôt GitLab entier en un seul clic.", URL: "URL du dépôt GitLab", URL_explained: "URL du dépôt GitLab que vous souhaitez collecter.", token: "Jeton d'accès GitLab", optional: "Optionnel", token_explained: "Jeton d'accès pour les dépôts privés.", token_description: "Sélectionnez les portées d'accès au dépôt lors de la création du jeton.", token_explained_start: "Sans jeton d'accès, vous ne pourrez collecter que les dépôts publics. Vous pouvez", token_explained_link1: "créer un jeton d'accès temporaire", token_explained_middle: "ou", token_explained_link2: "en créer un ici", token_explained_end: "avec la portée 'read_repository'.", fetch_issues: "Récupérer les issues GitLab", ignores: "Exclusions de fichiers", git_ignore: "Liste au format .gitignore pour exclure des fichiers de la collecte. Appuyez sur Entrée après chaque entrée.", task_explained: "Une fois terminé, tous les fichiers seront disponibles pour être intégrés dans les espaces de travail dans le menu de documents.", branch: "Branche", branch_loading: "-- chargement des branches disponibles --", branch_explained: "Branche à collecter.", token_information: "Informations sur le jeton", token_personal: "Créez un jeton d'accès personnel sur GitLab pour accéder aux dépôts privés.", }, youtube: { name: "Transcription YouTube", description: "Importez la transcription d'une vidéo YouTube à partir d'un lien.", URL: "URL de la vidéo YouTube", URL_explained_start: "Entrez l'URL d'une vidéo YouTube pour récupérer sa transcription. La vidéo doit avoir les", URL_explained_link: "sous-titres activés", URL_explained_end: ".", task_explained: "Une fois terminé, la transcription sera disponible pour être intégrée dans les espaces de travail dans le menu de documents.", language: "Langue de la transcription", language_explained: "Sélectionnez la langue de la transcription à récupérer.", loading_languages: "-- chargement des langues disponibles --", }, "website-depth": { name: "Récupération de site web en masse", description: "Récupérez un site web et ses sous-liens jusqu'à une certaine profondeur.", URL: "URL du site web", URL_explained: "URL du site web que vous souhaitez récupérer.", depth: "Profondeur de récupération", depth_explained: "Nombre de niveaux de sous-liens à suivre à partir de l'URL de base.", max_pages: "Nombre maximum de pages", max_pages_explained: "Nombre maximum de pages à récupérer.", task_explained: "Une fois terminé, toutes les pages récupérées seront disponibles pour être intégrées dans les espaces de travail dans le menu de documents.", }, confluence: { name: "Confluence", description: "Importez un espace Confluence entier en un seul clic.", deployment_type: "Type de déploiement Confluence", deployment_type_explained: "Choisissez si votre instance Confluence est hébergée dans le cloud ou sur serveur.", base_url: "URL de base Confluence", base_url_explained: "L'URL de base de votre instance Confluence.", space_key: "Clé de l'espace Confluence", space_key_explained: "La clé de l'espace que vous souhaitez importer. Se trouve généralement dans l'URL de l'espace.", username: "Nom d'utilisateur Confluence", username_explained: "Votre nom d'utilisateur ou adresse e-mail Confluence.", auth_type: "Type d'authentification", auth_type_explained: "Choisissez le type de jeton utilisé pour l'authentification.", auth_type_username: "Jeton API (nom d'utilisateur + jeton)", auth_type_personal: "Jeton d'accès personnel (PAT)", token: "Jeton API Confluence", token_explained_start: "Un jeton API est requis pour l'authentification. Vous pouvez", token_explained_link: "générer un jeton API ici", token_desc: "Jeton API pour l'authentification.", pat_token: "Jeton d'accès personnel", pat_token_explained: "Jeton d'accès personnel pour l'authentification sur les déploiements serveur.", task_explained: "Une fois terminé, toutes les pages de l'espace seront disponibles pour être intégrées dans les espaces de travail dans le menu de documents.", bypass_ssl: "Ignorer la vérification SSL", bypass_ssl_explained: "Ignorez la vérification des certificats SSL pour les instances auto-hébergées avec des certificats auto-signés.", }, manage: { documents: "Documents", "data-connectors": "Connecteurs de données", "desktop-only": "Cette fonctionnalité n'est disponible que sur ordinateur de bureau.", dismiss: "Fermer", editing: "Modification", }, directory: { "my-documents": "Mes documents", "new-folder": "Nouveau dossier", "search-document": "Rechercher un document", "no-documents": "Aucun document", "move-workspace": "Déplacer vers l'espace de travail", name: "Nom", "delete-confirmation": "Êtes-vous sûr de vouloir supprimer ces fichiers et dossiers ?\nCela supprimera les fichiers du système et les retirera automatiquement de tout espace de travail existant.\nCette action est irréversible.", "removing-message": "Suppression de {{count}} documents et dossiers. Veuillez patienter.", "move-success": "{{count}} documents déplacés avec succès.", date: "Date", type: "Type", no_docs: "Aucun document", select_all: "Tout sélectionner", deselect_all: "Tout désélectionner", remove_selected: "Supprimer la sélection", costs: "Coûts", save_embed: "Sauvegarder et intégrer", }, upload: { "processor-offline": "Processeur de documents hors ligne", "processor-offline-desc": "Nous ne pouvons pas télécharger vos fichiers pour le moment. Veuillez réessayer plus tard.", "click-upload": "Cliquez pour télécharger ou glissez-déposez", "file-types": "prend en charge les fichiers texte, CSV, feuilles de calcul, fichiers audio, et plus encore !", "or-submit-link": "ou soumettre un lien", "placeholder-link": "https://exemple.com", fetching: "Récupération...", "fetch-website": "Récupérer le site web", "privacy-notice": "Ces fichiers seront téléchargés sur cette instance AnythingLLM uniquement.", }, pinning: { what_pinning: "Qu'est-ce que l'épinglage de documents ?", pin_explained_block1: "Lorsque vous épinglez un document, AnythingLLM injectera le contenu intégral du document dans votre fenêtre de prompt comme contexte préalable pour chaque interaction.", pin_explained_block2: "Ceci est idéal pour les documents que vous souhaitez référencer fréquemment ou pour fournir un contexte constant à l'IA.", pin_explained_block3: "L'épinglage fonctionne mieux avec des documents plus petits. Les documents volumineux peuvent affecter les performances.", accept: "J'ai compris", }, watching: { what_watching: "Qu'est-ce que la surveillance de documents ?", watch_explained_block1: "Lorsque vous surveillez un document, AnythingLLM re-synchronisera automatiquement le contenu du document depuis sa source de manière périodique.", watch_explained_block2: "Cela gardera le contenu à jour si le fichier source change.", watch_explained_block3_start: "Cette fonctionnalité est actuellement limitée à", watch_explained_block3_link: "certains types de fichiers", watch_explained_block3_end: ".", accept: "J'ai compris", }, obsidian: { name: "Coffre Obsidian", description: "Importez un coffre Obsidian depuis votre machine locale.", vault_location: "Emplacement du coffre", vault_description: "Sélectionnez le dossier racine de votre coffre Obsidian.", selected_files: "fichiers sélectionnés", importing: "Importation...", import_vault: "Importer le coffre", processing_time: "Le traitement peut prendre quelques minutes selon la taille du coffre.", vault_warning: "Assurez-vous de sélectionner le dossier racine contenant le dossier .obsidian.", }, }, chat_window: { welcome: "Bienvenue dans votre nouvel espace de travail.", get_started: "Pour commencer, vous pouvez", get_started_default: "Pour commencer, envoyez un message ou téléchargez un document.", upload: "téléverser un document", or: "ou", send_chat: "envoyer un message", send_message: "Envoyer un message", attach_file: "Joindre un fichier", slash: "Voir les commandes slash disponibles", agents: "Voir les agents disponibles", text_size: "Modifier la taille du texte", microphone: "Enregistrer un message vocal", send: "Envoyer le message au chatbot", attachments_processing: "Les pièces jointes sont en cours de traitement. Veuillez attendre avant d'envoyer un autre message.", tts_speak_message: "Écouter le message", copy: "Copier", regenerate: "Régénérer", regenerate_response: "Régénérer la réponse", good_response: "Bonne réponse", more_actions: "Plus d'actions", hide_citations: "Masquer les citations", show_citations: "Afficher les citations", pause_tts_speech_message: "Mettre en pause la lecture vocale", fork: "Dupliquer", delete: "Supprimer", save_submit: "Sauvegarder et envoyer", cancel: "Annuler", edit_prompt: "Modifier le prompt", edit_response: "Modifier la réponse", at_agent: "Sélectionnez une compétence d'agent, un flux d'agent ou un serveur MCP", default_agent_description: "l'agent par défaut de cet espace de travail", custom_agents_coming_soon: "Agents personnalisés bientôt disponibles", slash_reset: "Effacer l'historique du chat", preset_reset_description: "Efface l'historique du chat actuel et commence une nouvelle conversation.", add_new_preset: "Ajouter une nouvelle commande preset", command: "Commande", your_command: "Votre commande", placeholder_prompt: "Quel est le prompt pour cette commande ?", description: "Description", placeholder_description: "Décrivez ce que fait cette commande", save: "Sauvegarder", small: "Petit", normal: "Normal", large: "Grand", workspace_llm_manager: { search: "Rechercher des modèles", loading_workspace_settings: "Chargement des paramètres de l'espace de travail...", available_models: "Modèles disponibles", available_models_description: "Sélectionnez un modèle à utiliser pour cet espace de travail.", save: "Sauvegarder", saving: "Sauvegarde...", missing_credentials: "Identifiants manquants", missing_credentials_description: "Vous devez configurer vos identifiants de fournisseur LLM avant de pouvoir sélectionner un modèle.", }, }, profile_settings: {
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/it/common.js
frontend/src/locales/it/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: null, useCase: null, useCaseWork: null, useCasePersonal: null, useCaseOther: null, comment: null, commentPlaceholder: null, skip: null, thankYou: null, title: null, description: null, }, home: { title: null, getStarted: null, }, llm: { title: null, description: null, }, userSetup: { title: null, description: null, howManyUsers: null, justMe: null, myTeam: null, instancePassword: null, setPassword: null, passwordReq: null, passwordWarn: null, adminUsername: null, adminUsernameReq: null, adminPassword: null, adminPasswordReq: null, teamHint: null, }, data: { title: null, description: null, settingsHint: null, }, workspace: { title: null, description: null, }, }, common: { "workspaces-name": "Nome delle aree di lavoro", error: "errore", success: "successo", user: "Utente", selection: "Selezione del modello", saving: "Salvo...", save: "Salva modifiche", previous: "Pagina precedente", next: "Pagina successiva", optional: null, yes: null, no: null, search: null, }, settings: { title: "Impostazioni istanza", system: "Impostazioni generali", invites: "Inviti", users: "Utenti", workspaces: "Aree di lavoro", "workspace-chats": "Chat dell'area di lavoro", customization: "Personalizzazione", "api-keys": "API Sviluppatore", llm: "LLM", transcription: "Trascrizione", embedder: "Embedder", "text-splitting": "Suddivisione di testo & Chunking", "voice-speech": "Voce & discorso", "vector-database": "Database Vettoriale", embeds: "Chat incorporata", "embed-chats": "Storico chat incorporata", security: "Sicurezza", "event-logs": "Log degli eventi", privacy: "Privacy & Dati", "ai-providers": "AI Providers", "agent-skills": "Abilità dell'agente", admin: "Admin", tools: "Strumenti", "experimental-features": "Caratteristiche sperimentali", contact: "Contatta il Supporto", "browser-extension": "Estensione del browser", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Benvenuto in", "placeholder-username": "Username", "placeholder-password": "Password", login: "Login", validating: "Verifica in corso...", "forgot-pass": "Password dimenticata", reset: "Reset", }, "sign-in": { start: "Accedi al tuo", end: "account.", }, "password-reset": { title: "Password Reset", description: "Fornisci le informazioni necessarie qui sotto per reimpostare la tua password.", "recovery-codes": "Codici di recupero", "recovery-code": "Codice di recupero {{index}}", "back-to-login": "Torna al Login", }, }, "new-workspace": { title: "Nuova area di lavoro", placeholder: "La mia area di lavoro", }, "workspaces—settings": { general: "Impostazioni generali", chat: "Impostazioni Chat", vector: "Database vettoriale", members: "Membri", agent: "Configurazione dell'agente", }, general: { vector: { title: "Contatore dei vettori", description: "Numero totale di vettori nel tuo database vettoriale.", }, names: { description: "Questo cambierà solo il nome visualizzato della tua area di lavoro.", }, message: { title: "Messaggi Chat suggeriti", description: "Personalizza i messaggi che verranno suggeriti agli utenti della tua area di lavoro.", add: "Aggiungi un nuovo messaggio", save: "Salva messaggi", heading: "Spiegami", body: "i vantaggi di AnythingLLM", }, pfp: { title: "Immagine del profilo dell'assistente", description: "Personalizza l'immagine del profilo dell'assistente per quest'area di lavoro.", image: "Immagine dell'area di lavoro", remove: "Rimuovi immagine dell'area di lavoro", }, delete: { title: "Elimina area di lavoro", description: "Elimina quest'area di lavoro e tutti i suoi dati. Ciò eliminerà l'area di lavoro per tutti gli utenti.", delete: "Elimina area di lavoro", deleting: "Eliminazione dell'area di lavoro...", "confirm-start": "Stai per eliminare l'intera", "confirm-end": "area di lavoro. Verranno rimossi tutti gli embeddings vettoriali nel tuo database vettoriale.\n\nI file sorgente originali rimarranno intatti. Questa azione è irreversibile.", }, }, chat: { llm: { title: "LLM Provider dell'area di lavoro", description: "Il provider LLM e il modello specifici che verranno utilizzati per quest'area di lavoro. Per impostazione predefinita, utilizza il provider LLM e le impostazioni di sistema.", search: "Cerca tutti i provider LLM", }, model: { title: "Modello di chat dell'area di lavoro", description: "Il modello di chat specifico che verrà utilizzato per quest'area di lavoro. Se vuoto, utilizzerà l'LLM di sistema.", wait: "-- in attesa dei modelli --", }, mode: { title: "Modalità chat", chat: { title: "Chat", "desc-start": "fornirà risposte con la conoscenza generale dell'LLM", and: "e", "desc-end": "contesto documentale associato.", }, query: { title: "Query", "desc-start": "fornirà risposte", only: "solo", "desc-end": "se sarà presente un contesto documentale", }, }, history: { title: "Chat History", "desc-start": "Numero di chat precedenti che verranno incluse nella memoria a breve termine della risposta.", recommend: "Recommend 20. ", "desc-end": "Un numero superiore a 45 potrebbe causare continui errori nella chat, a seconda delle dimensioni del messaggio.", }, prompt: { title: "Prompt", description: "Il prompt che verrà utilizzato in quest'area di lavoro. Definisci il contesto e le istruzioni affinché l'IA generi una risposta. Dovresti fornire un prompt elaborato con cura in modo che l'IA possa generare una risposta pertinente e accurata.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Risposta al rifiuto nella modalità di query", "desc-start": "Quando la modalità", query: "query", "desc-end": "è attiva, potresti voler restituire una risposta di rifiuto personalizzata quando non viene trovato alcun contesto.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "Temperatura LLM", "desc-start": 'Questa impostazione controlla il livello di "creatività" delle risposte dell\'LLM.', "desc-end": "Più alto è il numero, più è creativo. Per alcuni modelli questo può portare a risposte incoerenti se troppo elevato.", hint: "La maggior parte degli LLM ha vari intervalli accettabili di valori validi. Consulta il tuo fornitore LLM per queste informazioni.", }, }, "vector-workspace": { identifier: "Identificatore del database vettoriale", snippets: { title: "Numero massimo di frammenti di contesto", description: "Questa impostazione controlla la quantità massima di frammenti di contesto che verranno inviati all'LLM per ogni chat o query.", recommend: "Raccomandato: 4", }, doc: { title: "Soglia di similarità del documento", description: "Punteggio di similarità minimo richiesto affinché una fonte sia considerata correlata alla chat. Più alto è il numero, più la fonte deve essere simile alla chat.", zero: "Nessuna restrizione", low: "Basso (punteggio di similarità ≥ .25)", medium: "Medio (punteggio di similarità ≥ .50)", high: "Alto (punteggio di similarità ≥ .75)", }, reset: { reset: "Reimposta database vettoriale", resetting: "Cancellazione vettori...", confirm: "Stai per reimpostare il database vettoriale di quest'area di lavoro. Questa operazione rimuoverà tutti gli embedding vettoriali attualmente incorporati.\n\nI file sorgente originali rimarranno intatti. Questa azione è irreversibile.", error: "Impossibile reimpostare il database vettoriale dell'area di lavoro!", success: "Il database vettoriale dell'area di lavoro è stato reimpostato!", }, }, agent: { "performance-warning": "Le prestazioni degli LLM che non supportano esplicitamente la chiamata degli strumenti dipendono in larga misura dalle capacità e dalla precisione del modello. Alcune capacità potrebbero essere limitate o non funzionali.", provider: { title: "Provider LLM dell'agente dell'area di lavoro", description: "Il provider e il modello LLM specifici che verranno utilizzati per l'agente @agent di quest'area di lavoro.", }, mode: { chat: { title: "Modello di chat dell'agente dell'area di lavoro", description: "Il modello di chat specifico che verrà utilizzato per l'agente @agent di quest'area di lavoro.", }, title: "Modello dell'agente dell'area di lavoro", description: "Il modello LLM specifico che verrà utilizzato per l'agente @agent di quest'area di lavoro.", wait: "-- in attesa dei modelli --", }, skill: { title: "Abilità predefinite dell'agente", description: "Migliora le capacità naturali dell'agente predefinito con queste abilità predefinite. Questa configurazione si applica a tutte le aree di lavoro.", rag: { title: "RAG e memoria a lungo termine", description: "Consenti all'agente di sfruttare i tuoi documenti locali per rispondere a una query o chiedi all'agente di \"ricordare\" parti di contenuto per il recupero della memoria a lungo termine.", }, view: { title: "Visualizza e riepiloga i documenti", description: "Consenti all'agente di elencare e riepilogare il contenuto dei file dell'area di lavoro attualmente incorporati.", }, scrape: { title: "Esplora siti Web", description: "Consenti all'agente di visitare ed eseguire lo scraping del contenuto dei siti Web.", }, generate: { title: "Genera grafici", description: "Consenti all'agente predefinito di generare vari tipi di grafici dai dati forniti o forniti nella chat.", }, save: { title: "Genera e salva file nel browser", description: "Abilita l'agente predefinito per generare e scrivere su file che possono essere salvati e scaricati nel tuo browser.", }, web: { title: "Ricerca e navigazione web in tempo reale", "desc-start": "Abilita il tuo agente a cercare sul web per rispondere alle tue domande connettendosi a un provider di ricerca web (SERP).", "desc-end": "La ricerca web durante le sessioni dell'agente non funzionerà finché non verrà impostata.", }, }, }, recorded: { title: "Chat dell'area di lavoro", description: "Queste sono tutte le chat e i messaggi registrati che sono stati inviati dagli utenti ordinati in base alla data di creazione.", export: "Esporta", table: { id: "Id", by: "Inviato da", workspace: "Area di lavoro", prompt: "Prompt", response: "Risposta", at: "Inviato a", }, }, api: { title: "Chiavi API", description: "Le chiavi API consentono al titolare di accedere e gestire in modo programmatico questa istanza AnythingLLM.", link: "Leggi la documentazione API", generate: "Genera nuova chiave API", table: { key: "Chiave API", by: "Creato da", created: "Creato", }, }, llm: { title: "Preferenza LLM", description: "Queste sono le credenziali e le impostazioni per il tuo provider di chat e embedding LLM preferito. È importante che queste chiavi siano aggiornate e corrette, altrimenti AnythingLLM non funzionerà correttamente.", provider: "Provider LLM", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Preferenza del modello di trascrizione", description: "Queste sono le credenziali e le impostazioni per il tuo fornitore di modelli di trascrizione preferito. È importante che queste chiavi siano aggiornate e corrette, altrimenti i file multimediali e l'audio non verranno trascritti.", provider: "Provider di trascrizione", "warn-start": "L'utilizzo del modello whisper locale su macchine con RAM o CPU limitate può bloccare AnythingLLM durante l'elaborazione di file multimediali.", "warn-recommend": "Si consigliano almeno 2 GB di RAM e caricare file <10 Mb.", "warn-end": "Il modello integrato verrà scaricato automaticamente al primo utilizzo.", }, embedding: { title: "Preferenza di embedding", "desc-start": "Quando si utilizza un LLM che non supporta nativamente un motore di embedding, potrebbe essere necessario specificare credenziali aggiuntive per l'embedding del testo.", "desc-end": "L'embedding è il processo di trasformazione del testo in vettori. Queste credenziali sono necessarie per trasformare i file e i prompt in un formato che AnythingLLM può utilizzare per l'elaborazione.", provider: { title: "Provider di embedding", }, }, text: { title: "Preferenze di suddivisione e suddivisione in blocchi del testo", "desc-start": "A volte, potresti voler cambiare il modo predefinito in cui i nuovi documenti vengono suddivisi e spezzettati in blocchi prima di essere inseriti nel tuo database vettoriale.", "desc-end": "Dovresti modificare questa impostazione solo se capisci come funziona la suddivisione del testo e i suoi effetti collaterali.", size: { title: "Dimensioni blocco di testo", description: "Questa è la lunghezza massima di caratteri che possono essere presenti in un singolo vettore.", recommend: "La lunghezza massima del modello di embedding è", }, overlap: { title: "Sovrapposizione blocco di testo", description: "Questa è la sovrapposizione massima di caratteri che si verifica durante la suddivisione in blocchi tra due porzioni di testo adiacenti.", }, }, vector: { title: "Database vettoriale", description: "Queste sono le credenziali e le impostazioni per il funzionamento della tua istanza AnythingLLM. È importante che queste chiavi siano aggiornate e corrette.", provider: { title: "Provider del database vettoriale", description: "Non è richiesta alcuna configurazione per LanceDB.", }, }, embeddable: { title: "Widget di chat incorporabili", description: "I widget di chat incorporabili sono interfacce di chat pubbliche che sono collegate a una singola area di lavoro. Queste ti consentono di creare aree di lavoro che puoi poi pubblicare ovunque.", create: "Crea embedding", table: { workspace: "Area di lavoro", chats: "Chat inviate", active: "Domini attivi", created: null, }, }, "embed-chats": { title: "Chat incorporate", export: "Esporta", description: "Queste sono tutte le chat e i messaggi registrati da qualsiasi embedding che hai pubblicato.", table: { embed: "Incorpora", sender: "Mittente", message: "Messaggio", response: "Risposta", at: "Inviato a", }, }, event: { title: "Registro eventi", description: "Visualizza tutte le azioni e gli eventi che si verificano su questa istanza per il monitoraggio.", clear: "Cancella registri eventi", table: { type: "Tipo di evento", user: "Utente", occurred: "Si è verificato alle", }, }, privacy: { title: "Privacy e gestione dei dati", description: "Questa è la tua configurazione per il modo in cui i provider terzi connessi e AnythingLLM gestiscono i tuoi dati.", llm: "Selezione LLM", embedding: "Preferenza di embedding", vector: "Database vettoriale", anonymous: "Telemetria anonima abilitata", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, }, visit_community: { title: null, description: null, action: null, }, }, }, quickLinks: { title: null, sendChat: null, embedDocument: null, createWorkspace: null, }, exploreMore: { title: null, features: { customAgents: { title: null, description: null, primaryAction: null, secondaryAction: null, }, slashCommands: { title: null, description: null, primaryAction: null, secondaryAction: null, }, systemPrompts: { title: null, description: null, primaryAction: null, secondaryAction: null, }, }, }, announcements: { title: null, }, resources: { title: null, links: { docs: null, star: null, }, keyboardShortcuts: null, }, }, "keyboard-shortcuts": { title: null, shortcuts: { settings: null, workspaceSettings: null, home: null, workspaces: null, apiKeys: null, llmPreferences: null, chatSettings: null, help: null, showLLMSelector: null, }, }, community_hub: { publish: { system_prompt: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, submit: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, agent_flow: { public_description: null, private_description: null, success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, publish_button: null, submitting: null, submit: null, privacy_note: null, }, generic: { unauthenticated: { title: null, description: null, button: null, }, }, slash_command: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, command_label: null, command_description: null, command_placeholder: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, }, }, security: { title: "Sicurezza", multiuser: { title: "Modalità multi-utente", description: "Imposta la tua istanza per supportare il tuo team attivando la modalità multi-utente.", enable: { "is-enable": "La modalità multi-utente è abilitata", enable: "Abilita la modalità multi-utente", description: "Per impostazione predefinita, sarai l'unico amministratore. Come amministratore dovrai creare account per tutti i nuovi utenti o amministratori. Non perdere la tua password poiché solo un utente amministratore può reimpostare le password.", username: "Nome utente account amministratore", password: "Password account amministratore", }, }, password: { title: "Protezione password", description: "Proteggi la tua istanza AnythingLLM con una password. Se la dimentichi, non esiste un metodo di recupero, quindi assicurati di salvare questa password.", "password-label": "Password istanza", }, }, home: { welcome: "Benvenuto", chooseWorkspace: "Scegli uno spazio di lavoro per iniziare a chattare!", notAssigned: "Non sei assegnato a nessuno spazio di lavoro.\nContatta il tuo amministratore per richiedere l'accesso a uno spazio di lavoro.", goToWorkspace: 'Vai allo spazio di lavoro "{{workspace}}"', }, }; export default TRANSLATIONS;
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/zh_TW/common.js
frontend/src/locales/zh_TW/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "歡迎使用", getStarted: "開始使用", }, llm: { title: "LLM 偏好", description: "AnythingLLM 可以與多家 LLM 提供商合作。這將是處理聊天的服務。", }, userSetup: { title: "使用者設定", description: "配置您的使用者設定。", howManyUsers: "將有多少使用者使用此實例?", justMe: "只有我", myTeam: "我的團隊", instancePassword: "實例密碼", setPassword: "您想要設定密碼嗎?", passwordReq: "密碼必須至少包含 8 個字元。", passwordWarn: "保存此密碼很重要,因為沒有恢復方法。", adminUsername: "管理員帳號使用者名稱", adminUsernameReq: "使用者名稱必須至少為 6 個字元,並且只能包含小寫字母、數字、底線和連字號,不含空格。", adminPassword: "管理員帳號密碼", adminPasswordReq: "密碼必須至少包含 8 個字元。", teamHint: "預設情況下,您將是唯一的管理員。完成入職後,您可以創建和邀請其他人成為使用者或管理員。不要遺失您的密碼,因為只有管理員可以重置密碼。", }, data: { title: "資料處理與隱私", description: "我們致力於在涉及您的個人資料時提供透明和控制。", settingsHint: "這些設定可以隨時在設定中重新配置。", }, survey: { title: "歡迎使用 AnythingLLM", description: "幫助我們為您的需求打造 AnythingLLM。可選。", email: "您的電子郵件是什麼?", useCase: "您將如何使用 AnythingLLM?", useCaseWork: "用於工作", useCasePersonal: "用於個人使用", useCaseOther: "其他", comment: "您是如何聽說 AnythingLLM 的?", commentPlaceholder: "Reddit,Twitter,GitHub,YouTube 等 - 讓我們知道您是如何找到我們的!", skip: "跳過調查", thankYou: "感謝您的反饋!", }, workspace: { title: "創建您的第一個工作區", description: "創建您的第一個工作區並開始使用 AnythingLLM。", }, }, common: { "workspaces-name": "工作區名稱", error: "錯誤", success: "成功", user: "使用者", selection: "模型選擇", saving: "儲存中...", save: "儲存修改", previous: "上一頁", next: "下一頁", optional: "可選", yes: "是", no: "否", search: "搜尋", }, settings: { title: "系統設定", system: "一般設定", invites: "邀請管理", users: "使用者管理", workspaces: "工作區管理", "workspace-chats": "工作區對話紀錄", customization: "介面自訂", "api-keys": "開發者 API", llm: "大型語言模型 (LLM)", transcription: "語音轉錄", embedder: "向量嵌入器", "text-splitting": "文字分割與區塊化", "voice-speech": "語音與發音", "vector-database": "向量資料庫", embeds: "對話嵌入", "embed-chats": "對話嵌入紀錄", security: "安全性設定", "event-logs": "事件記錄", privacy: "隱私與資料", "ai-providers": "AI 服務提供者", "agent-skills": "智慧代理人技能", admin: "系統管理", tools: "工具", "experimental-features": "實驗性功能", contact: "聯絡支援", "browser-extension": "瀏覽器擴充功能", "system-prompt-variables": "系統提示變數", interface: "使用者介面偏好設定", branding: "品牌與白標設定", chat: "聊天室", }, login: { "multi-user": { welcome: "歡迎使用", "placeholder-username": "使用者名稱", "placeholder-password": "密碼", login: "登入", validating: "驗證中...", "forgot-pass": "忘記密碼", reset: "重設", }, "sign-in": { start: "登入您的", end: "帳號。", }, "password-reset": { title: "重設密碼", description: "請在下方提供必要資訊以重設您的密碼。", "recovery-codes": "復原碼", "recovery-code": "復原碼 {{index}}", "back-to-login": "返回登入頁面", }, }, "new-workspace": { title: "新增工作區", placeholder: "我的工作區", }, "workspaces—settings": { general: "一般設定", chat: "對話設定", vector: "向量資料庫", members: "成員管理", agent: "智慧代理人設定", }, general: { vector: { title: "向量計數", description: "向量資料庫中的向量總數。", }, names: { description: "這只會修改您工作區的顯示名稱。", }, message: { title: "建議對話訊息", description: "自訂要建議給工作區使用者的訊息。", add: "新增訊息", save: "儲存訊息", heading: "請向我說明", body: "AnythingLLM 的優點", }, pfp: { title: "助理個人檔案圖片", description: "自訂此工作區助理的個人檔案圖片。", image: "工作區圖片", remove: "移除工作區圖片", }, delete: { title: "刪除工作區", description: "刪除此工作區及其所有資料。這將會為所有使用者刪除該工作區。", delete: "刪除工作區", deleting: "正在刪除工作區...", "confirm-start": "您即將刪除整個", "confirm-end": "工作區。這將會移除向量資料庫中的所有向量嵌入。\n\n原始檔案將保持不變。此動作無法復原。", }, }, chat: { llm: { title: "工作區 LLM 提供者", description: "此工作區將使用的特定 LLM 提供者與模型。預設情況下,它會使用系統 LLM 提供者和設定。", search: "搜尋所有 LLM 提供者", }, model: { title: "工作區對話模型", description: "此工作區將使用的特定對話模型。如果空白,將使用系統 LLM 偏好設定。", wait: "-- 等待模型中 --", }, mode: { title: "對話模式", chat: { title: "對話", "desc-start": "將會利用 LLM 的一般知識", and: "和", "desc-end": "找到的文件內容來提供答案。", }, query: { title: "查詢", "desc-start": "將", only: "僅", "desc-end": "在找到文件內容時提供答案。", }, }, history: { title: "對話紀錄", "desc-start": "先前對話訊息數量,將會包含在回應的短期記憶體中。", recommend: "建議 20。", "desc-end": "根據訊息大小,任何超過 45 的數值都可能會導致對話持續失敗。", }, prompt: { title: "提示詞", description: "將在此工作區中使用的提示詞。定義 AI 產生回應的上下文和指示。您應該提供精心設計的提示詞,以便 AI 可以產生相關且準確的回應。", history: { title: "系統提示歷史記錄", clearAll: "清除全部", noHistory: "沒有可用的系統提示歷史記錄", restore: "恢復", delete: "刪除", deleteConfirm: "您確定要刪除此歷史記錄項目嗎?", clearAllConfirm: "您確定要刪除所有歷史記錄嗎?此操作無法復原。", expand: "展開", publish: "發布到社群中心", }, }, refusal: { title: "查詢模式拒絕回應", "desc-start": "在", query: "查詢", "desc-end": "模式下,當找不到內容時,您可能需要傳回自訂的拒絕回應。", "tooltip-title": "我為什麼會看到這個?", "tooltip-description": "您處於查詢模式,此模式僅使用您文件中的資訊。切換到聊天模式以進行更靈活的對話,或點擊此處訪問我們的文件以了解更多關於聊天模式的資訊。", }, temperature: { title: "LLM 溫度值", "desc-start": "此設定控制 LLM 回應的「創意度」。", "desc-end": "數值越高,創意度越高。對於某些模型,設定過高可能會導致不連貫的回應。", hint: "大多數 LLM 都有各種可接受的有效值範圍。請查詢您的 LLM 提供者以取得該資訊。", }, }, "vector-workspace": { identifier: "向量資料庫識別碼", snippets: { title: "最大內容片段數", description: "此設定控制每次對話或查詢時,將傳送至 LLM 的最大內容片段數量。", recommend: "建議值:4", }, doc: { title: "文件相似度門檻", description: "來源被視為與對話相關所需的最低相似度。數值越高,來源與對話的相似度就必須越高。", zero: "無限制", low: "低 (相似度 ≥ .25)", medium: "中 (相似度 ≥ .50)", high: "高 (相似度 ≥ .75)", }, reset: { reset: "重設向量資料庫", resetting: "清除向量中...", confirm: "您即將重設此工作區的向量資料庫。這將會移除目前所有已嵌入的向量。\n\n原始檔案將保持不變。此動作無法復原。", error: "無法重設工作區向量資料庫!", success: "工作區向量資料庫已重設!", }, }, agent: { "performance-warning": "不直接支援工具呼叫的 LLM 的效能,高度取決於模型的功能和精確度。某些功能可能受限或無法使用。", provider: { title: "工作區智慧代理人 LLM 提供者", description: "此工作區 @agent 智慧代理人將使用的特定 LLM 提供者與模型。", }, mode: { chat: { title: "工作區智慧代理人對話模型", description: "此工作區 @agent 智慧代理人將使用的特定對話模型。", }, title: "工作區智慧代理人模型", description: "此工作區 @agent 智慧代理人將使用的特定 LLM 模型。", wait: "-- 等待模型中 --", }, skill: { title: "預設智慧代理人技能", description: "使用這些預先建置的技能來強化預設智慧代理人的自然能力。此設定適用於所有工作區。", rag: { title: "RAG 與長期記憶體", description: "允許智慧代理人利用您的本機文件來回答查詢,或要求智慧代理人「記住」內容片段,以利長期記憶體擷取。", }, view: { title: "檢視與摘要文件", description: "允許智慧代理人列出並摘要目前已嵌入的工作區檔案內容。", }, scrape: { title: "擷取網站", description: "允許智慧代理人瀏覽並擷取網站內容。", }, generate: { title: "產生圖表", description: "讓預設智慧代理人能夠根據提供的資料或對話中給定的資料來產生各種圖表。", }, save: { title: "產生並儲存檔案到瀏覽器", description: "讓預設智慧代理人能夠產生並寫入檔案,這些檔案會儲存並可以從您的瀏覽器下載。", }, web: { title: "即時網路搜尋與瀏覽", "desc-start": "讓您的智慧代理人能夠透過連線到網路搜尋 (SERP) 提供者來搜尋網路以回答您的問題。", "desc-end": "在設定完成之前,智慧代理人工作階段期間的網路搜尋將無法運作。", }, }, }, recorded: { title: "工作區對話紀錄", description: "這些是所有已記錄的對話和訊息,依建立日期排序。", export: "匯出", table: { id: "編號", by: "傳送者", workspace: "工作區", prompt: "提示詞", response: "回應", at: "傳送時間", }, }, api: { title: "API 金鑰", description: "API 金鑰允許持有者以程式化方式存取和管理此 AnythingLLM 系統。", link: "閱讀 API 文件", generate: "產生新的 API 金鑰", table: { key: "API 金鑰", by: "建立者", created: "建立時間", }, }, llm: { title: "LLM 偏好設定", description: "這些是您偏好的 LLM 對話與嵌入提供者的憑證和設定。確保這些金鑰是最新且正確的,否則 AnythingLLM 將無法正常運作。", provider: "LLM 提供者", providers: { azure_openai: { azure_service_endpoint: "Azure 服務端點", api_key: "API 金鑰", chat_deployment_name: "聊天部署名稱", chat_model_token_limit: "聊天模型令牌限制", model_type: "模型類型", default: "預設", reasoning: "推理", model_type_tooltip: null, }, }, }, transcription: { title: "語音轉錄模型偏好設定", description: "這些是您偏好的語音轉錄模型提供者的憑證和設定。確保這些金鑰是最新且正確的,否則媒體檔案和音訊將無法轉錄。", provider: "語音轉錄提供者", "warn-start": "在記憶體或處理器資源有限的電腦上使用本機 Whisper 模型,處理媒體檔案時可能會造成 AnythingLLM 停頓。", "warn-recommend": "我們建議至少 2GB 的記憶體,並且上傳小於 10MB 的檔案。", "warn-end": "內建模型將會在第一次使用時自動下載。", }, embedding: { title: "向量嵌入偏好設定", "desc-start": "當使用原生不支援嵌入引擎的 LLM 時,您可能需要額外指定用於嵌入文字的憑證。", "desc-end": "嵌入是將文字轉換成向量的過程。這些憑證是用於將您的檔案和提示詞轉換成 AnythingLLM 可以處理的格式。", provider: { title: "向量嵌入提供者", }, }, text: { title: "文字分割與區塊化偏好設定", "desc-start": "有時您可能需要修改新文件在插入向量資料庫之前的預設分割和區塊化方式。", "desc-end": "只有在了解文字分割的運作方式及其副作用的情況下,才應該修改此設定。", size: { title: "文字區塊大小", description: "這是單一向量中可包含的最大字元長度。", recommend: "嵌入模型的最大長度為", }, overlap: { title: "文字區塊重疊", description: "這是區塊化過程中,兩個相鄰文字區塊之間的最大字元重疊數。", }, }, vector: { title: "向量資料庫", description: "這些是您的 AnythingLLM 系統運作方式的憑證和設定。確保這些金鑰是最新且正確的,這點非常重要。", provider: { title: "向量資料庫提供者", description: "使用 LanceDB 不需要任何設定。", }, }, embeddable: { title: "可嵌入對話小工具", description: "可嵌入對話小工具是與單一工作區連結的公開對話介面。這讓您可以建置工作區,然後發布到全世界。", create: "建立嵌入", table: { workspace: "工作區", chats: "已傳送對話", active: "已啟用網域", created: "建立", }, }, "embed-chats": { title: "嵌入對話", export: "匯出", description: "這些是來自您已發布的任何嵌入內容的所有已記錄對話和訊息。", table: { embed: "嵌入", sender: "傳送者", message: "訊息", response: "回應", at: "傳送時間", }, }, event: { title: "事件記錄", description: "檢視此系統上發生的所有動作和事件,以進行監控。", clear: "清除事件記錄", table: { type: "事件類型", user: "使用者", occurred: "發生時間", }, }, privacy: { title: "隱私與資料處理", description: "這是您針對已連線的第三方供應商和 AnythingLLM 如何處理您的資料的設定。", llm: "LLM 選擇", embedding: "向量嵌入偏好設定", vector: "向量資料庫", anonymous: "已啟用匿名統計資訊", }, connectors: { "search-placeholder": "搜尋資料連接器", "no-connectors": "未找到資料連接器。", github: { name: "GitHub 倉庫", description: "單擊即可匯入整個公共或私有的 GitHub 倉庫。", URL: "GitHub 倉庫網址", URL_explained: "您希望收集的 GitHub 倉庫網址。", token: "GitHub 存取權杖", optional: "可選", token_explained: "存取權杖以防止速率限制。", token_explained_start: "若沒有 ", token_explained_link1: "個人存取權杖", token_explained_middle: ",GitHub API 可能會因為速率限制而限制可收集的檔案數量。您可以 ", token_explained_link2: "創建一個臨時的存取權杖", token_explained_end: " 來避免此問題。", ignores: "忽略檔案", git_ignore: "以 .gitignore 格式列出以忽略特定檔案。每輸入一個條目後按 Enter 鍵保存。", task_explained: "完成後,所有檔案將可供嵌入到工作區中的檔案選擇器。", branch: "您希望收集檔案的分支。", branch_loading: "-- 載入可用分支 --", branch_explained: "您希望收集檔案的分支。", token_information: "若未填寫 <b>GitHub 存取權杖</b>,此資料連接器僅能收集倉庫的 <b>頂層</b> 檔案,因 GitHub 的公共 API 速率限制。", token_personal: "在此獲取免費的 GitHub 個人存取權杖。", }, gitlab: { name: "GitLab 倉庫", description: "單擊即可匯入整個公共或私有的 GitLab 倉庫。", URL: "GitLab 倉庫網址", URL_explained: "您希望收集的 GitLab 倉庫網址。", token: "GitLab 存取權杖", optional: "可選", token_explained: "存取權杖以防止速率限制。", token_description: "選擇要從 GitLab API 中擷取的其他實體。", token_explained_start: "若沒有 ", token_explained_link1: "個人存取權杖", token_explained_middle: ",GitLab API 可能會因為速率限制而限制可收集的檔案數量。您可以 ", token_explained_link2: "創建一個臨時的存取權杖", token_explained_end: " 來避免此問題。", fetch_issues: "擷取問題作為文件", ignores: "忽略檔案", git_ignore: "以 .gitignore 格式列出以忽略特定檔案。每輸入一個條目後按 Enter 鍵保存。", task_explained: "完成後,所有檔案將可供嵌入到工作區中的檔案選擇器。", branch: "您希望收集檔案的分支", branch_loading: "-- 載入可用分支 --", branch_explained: "您希望收集檔案的分支。", token_information: "若未填寫 <b>GitLab 存取權杖</b>,此資料連接器僅能收集倉庫的 <b>頂層</b> 檔案,因 GitLab 的公共 API 速率限制。", token_personal: "在此獲取免費的 GitLab 個人存取權杖。", }, youtube: { name: "YouTube 文字稿", description: "從連結匯入整個 YouTube 影片的文字稿。", URL: "YouTube 影片網址", URL_explained_start: "輸入任何 YouTube 影片的網址以擷取其文字稿。該影片必須擁有 ", URL_explained_link: "字幕", URL_explained_end: " 來提供文字稿。", task_explained: "完成後,文字稿將可供嵌入到工作區中的檔案選擇器。", language: "文字稿語言", language_explained: "選擇您希望收集的文字稿語言。", loading_languages: "-- 載入可用語言 --", }, "website-depth": { name: "批量鏈接抓取器", description: "抓取網站及其子鏈接,直到設定的深度。", URL: "網站網址", URL_explained: "您希望抓取的網站網址。", depth: "抓取深度", depth_explained: "這是工作人員應從起始網址跟隨的子鏈接數量。", max_pages: "最大頁數", max_pages_explained: "最大抓取鏈接數量。", task_explained: "完成後,所有抓取的內容將可供嵌入到工作區中的檔案選擇器。", }, confluence: { name: "Confluence", description: "單擊即可匯入整個 Confluence 頁面。", deployment_type: "Confluence 部署類型", deployment_type_explained: "確定您的 Confluence 實例是託管在 Atlassian 雲端還是自我託管。", base_url: "Confluence 基本網址", base_url_explained: "這是您的 Confluence 空間的基本網址。", space_key: "Confluence 空間金鑰", space_key_explained: "這是您 Confluence 實例使用的空間金鑰,通常以 ~ 開頭。", username: "Confluence 使用者名稱", username_explained: "您的 Confluence 使用者名稱", auth_type: "Confluence 認證類型", auth_type_explained: "選擇您希望用來存取 Confluence 頁面的認證類型。", auth_type_username: "使用者名稱和存取權杖", auth_type_personal: "個人存取權杖", token: "Confluence 存取權杖", token_explained_start: "您需要提供一個存取權杖以進行認證。您可以在此生成存取權杖", token_explained_link: "這裡", token_desc: "用於認證的存取權杖", pat_token: "Confluence 個人存取權杖", pat_token_explained: "您的 Confluence 個人存取權杖。", task_explained: "完成後,頁面內容將可供嵌入到工作區中的檔案選擇器。", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "文件", "data-connectors": "資料連接器", "desktop-only": "編輯這些設定僅在桌面裝置上可用。請在桌面上訪問此頁面以繼續。", dismiss: "忽略", editing: "編輯中", }, directory: { "my-documents": "我的文件", "new-folder": "新資料夾", "search-document": "搜尋文件", "no-documents": "無文件", "move-workspace": "移動到工作區", name: "名稱", "delete-confirmation": "您確定要刪除這些檔案和資料夾嗎?\n這將從系統中刪除這些檔案並自動從任何現有工作區中移除它們。\n此操作無法還原。", "removing-message": "正在刪除 {{count}} 文件和 {{folderCount}} 資料夾。請稍候。", "move-success": "成功移動 {{count}} 文件。", date: "日期", type: "類型", no_docs: "無文件", select_all: "全選", deselect_all: "取消全選", remove_selected: "移除選擇的項目", costs: "*一次性嵌入費用", save_embed: "儲存並嵌入", }, upload: { "processor-offline": "文件處理器無法使用", "processor-offline-desc": "目前無法上傳您的檔案,因為文件處理器離線。請稍後再試。", "click-upload": "點擊上傳或拖放檔案", "file-types": "支援文字檔案、CSV、試算表、音頻檔案等!", "or-submit-link": "或提交一個鏈接", "placeholder-link": "https://example.com", fetching: "正在擷取...", "fetch-website": "擷取網站", "privacy-notice": "這些檔案將上傳到此 AnythingLLM 實例中的文件處理器。這些檔案不會發送或共享給第三方。", }, pinning: { what_pinning: "什麼是文件固定?", pin_explained_block1: "當您在 AnythingLLM 中<b>固定</b>一個文件時,我們會將該文件的所有內容注入到您的提示窗口中,讓您的 LLM 完全理解。", pin_explained_block2: "這對於<b>大範圍模型</b>或對知識庫至關重要的小型文件效果最佳。", pin_explained_block3: "如果您沒有從 AnythingLLM 預設獲得理想的答案,那麼固定是一個輕鬆獲得更高質量答案的方法。", accept: "好的,明白了", }, watching: { what_watching: "觀看文件有何作用?", watch_explained_block1: "當您在 AnythingLLM 中<b>觀看</b>一個文件時,我們會<i>自動</i>定期同步該文件的內容,並在每個管理該文件的工作區中自動更新內容。", watch_explained_block2: "此功能目前僅支持基於線上內容,無法用於手動上傳的文件。", watch_explained_block3_start: "您可以從 ", watch_explained_block3_link: "檔案管理器", watch_explained_block3_end: " 管理觀看的文件。", accept: "好的,明白了", }, obsidian: { name: "Obsidian", description: "一鍵匯入 Obsidian 保險庫。", vault_location: "保險庫位置", vault_description: "選擇您的 Obsidian 保險庫資料夾以匯入所有筆記及其連接。", selected_files: "找到 {{count}} 個 Markdown 檔案", importing: "正在匯入保險庫...", import_vault: "匯入保險庫", processing_time: "這可能需要一段時間,具體取決於您的保險庫大小。", vault_warning: "為避免任何衝突,請確保您的 Obsidian 保險庫目前未開啟。", }, }, chat_window: { welcome: "歡迎使用您的新工作區。", get_started: "開始使用,您可以", get_started_default: "開始使用", upload: "上傳文件", or: "或", send_chat: "發送訊息。", send_message: "發送訊息", attach_file: "附加檔案到此對話", slash: "查看所有可用的斜線指令。", agents: "查看所有可用的聊天代理。", text_size: "變更文字大小。", microphone: "語音輸入提示。", send: "將提示訊息發送到工作區", attachments_processing: "附件正在處理中,請稍後...", tts_speak_message: "TTS 朗讀訊息", copy: "複製", regenerate: "重新", regenerate_response: "重新回應", good_response: "反應良好", more_actions: "更多操作", hide_citations: "隱藏引文", show_citations: "顯示引文", pause_tts_speech_message: "暫停訊息撥放 TTS 語音 ", fork: "分叉", delete: "刪除", save_submit: "提交保存", cancel: "取消", edit_prompt: "編輯問題", edit_response: "編輯回應", at_agent: "代理", default_agent_description: " - 此工作區的預設代理。", custom_agents_coming_soon: "自訂代理功能即將推出!", slash_reset: "/reset", preset_reset_description: "清除聊天紀錄並開始新的聊天", add_new_preset: "新增預設", command: "指令", your_command: "你的指令", placeholder_prompt: "提示範例", description: "描述", placeholder_description: "描述範例", save: "儲存", small: "小", normal: "一般", large: "大", workspace_llm_manager: { search: "搜尋", loading_workspace_settings: "正在載入工作區設定", available_models: "可用模型", available_models_description: "可用模型說明", save: "儲存", saving: "正在儲存", missing_credentials: "缺少憑證", missing_credentials_description: "缺少憑證說明", }, }, profile_settings: { edit_account: "編輯帳戶", profile_picture: "個人資料圖片", remove_profile_picture: "移除個人資料圖片", username: "使用者名稱", username_description: "使用者名稱必須只包含小寫字母、數字、底線和連字號,且沒有空格", new_password: "新密碼", password_description: "密碼長度必須至少為 8 個字元", cancel: "取消", update_account: "更新帳戶", theme: "主題偏好", language: "偏好語言", failed_upload: "上傳個人資料圖片失敗:{{error}}", upload_success: "個人資料圖片已上傳。", failed_remove: "移除個人資料圖片失敗:{{error}}", profile_updated: "個人資料已更新。", failed_update_user: "更新使用者失敗:{{error}}", account: "帳戶", support: "支援", signout: "登出", }, customization: { interface: { title: "介面偏好設定", description: "設定你在 AnythingLLM 的使用介面偏好。", }, branding: { title: "品牌與白標設定", description: "使用自訂品牌設計將 AnythingLLM 白標化。", }, chat: { title: "聊天", description: "設定你在 AnythingLLM 的聊天偏好。", auto_submit: { title: "語音輸入自動送出", description: "在靜音一段時間後自動送出語音輸入內容", }, auto_speak: { title: "自動語音回應", description: "自動朗讀 AI 的回應內容", }, spellcheck: { title: "拼字檢查功能", description: "在聊天輸入框中啟用或停用拼字檢查", }, }, items: { theme: { title: "主題", description: "選擇應用程式的顏色主題。", }, "show-scrollbar": { title: "顯示捲軸", description: "在聊天視窗中啟用或停用捲軸。", }, "support-email": { title: "支援信箱", description: "設定使用者在需要幫助時可以聯繫的支援電子信箱。", }, "app-name": { title: "應用名稱", description: "設定所有使用者在登入頁面上看到的應用名稱。", }, "chat-message-alignment": { title: "聊天訊息對齊方式", description: "選擇使用聊天介面時訊息的對齊模式。", }, "display-language": { title: "顯示語言", description: "選擇 AnythingLLM 使用者介面的顯示語言(如有提供翻譯)。", }, logo: { title: "品牌標誌", description: "上傳自訂標誌,顯示於所有頁面。", add: "新增自訂標誌", recommended: "建議尺寸:800 x 200", remove: "移除", replace: "更換", }, "welcome-messages": { title: "歡迎訊息", description: "自訂顯示給使用者的歡迎訊息。只有非管理者會看到這些訊息。", new: "新增", system: "系統", user: "使用者", message: "訊息", assistant: "AnythingLLM 聊天助理", "double-click": "雙擊進行編輯...", save: "儲存訊息", }, "browser-appearance": { title: "瀏覽器外觀", description: "自訂應用程式在瀏覽器分頁上的外觀與標題。", tab: { title: "分頁標題", description: "當應用程式在瀏覽器中開啟時設定自訂的分頁標題。", }, favicon: { title: "網站圖示 (Favicon)", description: "為瀏覽器分頁設定自訂網站圖示。", }, }, "sidebar-footer": { title: "側邊欄底部項目", description: "自訂側邊欄底部顯示的項目。", icon: "圖示", link: "連結", }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: "請先建立工作空間才能開始對話。", checklist: { title: "開始使用", tasksLeft: "個任務未完成", completed: "你已經走在成為AnythingLLM專家的路上!", dismiss: "關閉", tasks: { create_workspace: { title: "建立工作空間", description: "建立你的第一個工作空間來開始使用", action: "建立", }, send_chat: { title: "發送對話", description: "開始與你的AI助理對話", action: "對話", }, embed_document: { title: "嵌入文件", description: "將你的第一個文件添加到工作空間", action: "嵌入", }, setup_system_prompt: { title: "設置系統提示", description: "設定你的AI助理的行為模式", action: "設置",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/ro/common.js
frontend/src/locales/ro/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Bine ai venit la", getStarted: "Începe", }, llm: { title: "Preferința LLM", description: "AnythingLLM poate funcționa cu mai mulți furnizori LLM. Acesta va fi serviciul care gestionează conversațiile.", }, userSetup: { title: "Configurare Utilizator", description: "Configurează setările utilizatorului tău.", howManyUsers: "Câți utilizatori vor folosi această resursă?", justMe: "Doar eu", myTeam: "Echipa mea", instancePassword: "Parola Resursei", setPassword: "Dorești să setezi o parolă?", passwordReq: "Parolele trebuie să aibă cel puțin 8 caractere.", passwordWarn: "Este important să salvezi această parolă deoarece nu există metodă de recuperare.", adminUsername: "Numele contului de administrator", adminUsernameReq: "Numele de utilizator trebuie să aibă cel puțin 6 caractere și să conțină numai litere mici, cifre, underscore și liniuțe fără spații.", adminPassword: "Parola contului de administrator", adminPasswordReq: "Parolele trebuie să aibă cel puțin 8 caractere.", teamHint: "Implicit, vei fi singurul administrator. După finalizarea configurării inițiale, poți crea și invita alți utilizatori sau administratori. Nu pierde parola, deoarece doar administratorii pot reseta parolele.", }, data: { title: "Gestionarea datelor & Confidențialitate", description: "Suntem dedicați transparenței și controlului asupra datelor tale personale.", settingsHint: "Aceste setări pot fi reconfigurate oricând în setările aplicației.", }, survey: { title: "Bun venit la AnythingLLM", description: "Ajută-ne să facem AnythingLLM potrivit pentru nevoile tale. Opțional.", email: "Care este adresa ta de email?", useCase: "Pentru ce vei folosi AnythingLLM?", useCaseWork: "Pentru muncă", useCasePersonal: "Pentru uz personal", useCaseOther: "Altele", comment: "De unde ai aflat despre AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. - Spune-ne cum ne-ai găsit!", skip: "Sari peste sondaj", thankYou: "Îți mulțumim pentru feedback!", }, workspace: { title: "Creează primul tău spațiu de lucru", description: "Creează primul tău spațiu de lucru și începe să folosești AnythingLLM.", }, }, common: { "workspaces-name": "Numele spațiilor de lucru", error: "eroare", success: "succes", user: "Utilizator", selection: "Selecția modelului", saving: "Se salvează...", save: "Salvează modificările", previous: "Pagina anterioară", next: "Pagina următoare", optional: "Opțional", yes: "Da", no: "Nu", search: "Caută", }, settings: { title: "Setările instanței", system: "Setări generale", invites: "Invitații", users: "Utilizatori", workspaces: "Spații de lucru", "workspace-chats": "Conversațiile spațiului de lucru", customization: "Personalizare", interface: "Preferințe UI", branding: "Branding & White-label", chat: "Chat", "api-keys": "API pentru dezvoltatori", llm: "LLM", transcription: "Transcriere", embedder: "Embedder", "text-splitting": "Împărțirea și segmentarea textului", "voice-speech": "Voce & Vorbire", "vector-database": "Baza de date vectorială", embeds: "Chat Embed", "embed-chats": "Istoricul chat embed", security: "Securitate", "event-logs": "Jurnale de evenimente", privacy: "Confidențialitate & Date", "ai-providers": "Furnizori AI", "agent-skills": "Abilități agent", admin: "Administrator", tools: "Instrumente", "system-prompt-variables": "Variabile system prompt", "experimental-features": "Funcții experimentale", contact: "Contact suport", "browser-extension": "Extensie browser", }, login: { "multi-user": { welcome: "Bine ai venit la", "placeholder-username": "Nume utilizator", "placeholder-password": "Parolă", login: "Autentifică-te", validating: "Se validează...", "forgot-pass": "Ai uitat parola", reset: "Resetează", }, "sign-in": { start: "Autentifică-te în", end: "cont.", }, "password-reset": { title: "Resetare parolă", description: "Introdu informațiile necesare mai jos pentru a reseta parola.", "recovery-codes": "Coduri de recuperare", "recovery-code": "Cod de recuperare {{index}}", "back-to-login": "Înapoi la autentificare", }, }, "main-page": { noWorkspaceError: "Te rugăm să creezi un spațiu de lucru înainte să începi o conversație.", checklist: { title: "Început rapid", tasksLeft: "sarcini rămase", completed: "Ești pe drumul să devii expert AnythingLLM!", dismiss: "închide", tasks: { create_workspace: { title: "Creează un spațiu de lucru", description: "Creează primul tău spațiu de lucru pentru a începe", action: "Creează", }, send_chat: { title: "Trimite un chat", description: "Începe o conversație cu asistentul AI", action: "Chat", }, embed_document: { title: "Inserați un document", description: "Adaugă primul tău document în spațiul de lucru", action: "Include", }, setup_system_prompt: { title: "Configurează un sistem prompt", description: "Configurează comportamentul asistentului AI", action: "Configurează", }, define_slash_command: { title: "Definește o comandă slash", description: "Creează comenzi personalizate pentru asistent", action: "Definește", }, visit_community: { title: "Vizitează Comunitatea", description: "Explorează resursele și șabloanele comunității", action: "Răsfoiește", }, }, }, quickLinks: { title: "Link-uri rapide", sendChat: "Trimite Chat", embedDocument: "Include Document", createWorkspace: "Creează Spațiu de lucru", }, exploreMore: { title: "Explorează mai multe funcții", features: { customAgents: { title: "Agenți AI personalizați", description: "Construiește agenți AI puternici și automatizări fără cod.", primaryAction: "Chatează cu @agent", secondaryAction: "Construiește un flux agent", }, slashCommands: { title: "Comenzi Slash", description: "Economisește timp și folosește prompturi cu comenzi personalizate.", primaryAction: "Creează o comandă slash", secondaryAction: "Explorează pe Hub", }, systemPrompts: { title: "System Prompts", description: "Modifică system prompt pentru a personaliza răspunsurile AI ale unui spațiu de lucru.", primaryAction: "Modifică un prompt system", secondaryAction: "Gestionează variabilele promptului", }, }, }, announcements: { title: "Actualizări & Anunțuri", }, resources: { title: "Resurse", links: { docs: "Documentație", star: "Stea pe Github", }, keyboardShortcuts: "Scurtături de tastatură", }, }, "new-workspace": { title: "Spațiu de lucru nou", placeholder: "Spațiul meu de lucru", }, "workspaces—settings": { general: "Setări generale", chat: "Setări chat", vector: "Baza de date vectorială", members: "Membri", agent: "Configurare agent", }, general: { vector: { title: "Număr vectori", description: "Numărul total de vectori în baza ta de date vectorială.", }, names: { description: "Aceasta va schimba doar numele afișat al spațiului de lucru.", }, message: { title: "Mesaje sugerate pentru chat", description: "Personalizează mesajele care vor fi sugerate utilizatorilor spațiului de lucru.", add: "Adaugă mesaj nou", save: "Salvează mesajele", heading: "Explică-mi", body: "beneficiile AnythingLLM", }, pfp: { title: "Imagine profil asistent", description: "Personalizează imaginea de profil a asistentului pentru acest spațiu de lucru.", image: "Imagine spațiu de lucru", remove: "Șterge imaginea spațiului de lucru", }, delete: { title: "Șterge spațiul de lucru", description: "Șterge acest spațiu de lucru și toate datele sale. Aceasta va șterge spațiul de lucru pentru toți utilizatorii.", delete: "Șterge spațiul de lucru", deleting: "Se șterge spațiul de lucru...", "confirm-start": "Ești pe cale să ștergi întregul tău", "confirm-end": "spațiu de lucru. Această acțiune va elimina toate încorporările vectoriale (vector embeddings) din baza dumneavoastră de date vectorială.\n\nFișierele originale rămân neatinse. Această acțiune este ireversibilă.", }, }, chat: { llm: { title: "Furnizor LLM pentru spațiu de lucru", description: "Furnizorul LLM și modelul specific folosit pentru acest spațiu de lucru. Implicit, folosește setările și furnizorul sistemului.", search: "Caută toți furnizorii LLM", }, model: { title: "Modelul de chat al spațiului de lucru", description: "Modelul specific chat folosit de acest spațiu de lucru. Dacă e lăsat gol, folosește preferința LLM a sistemului.", wait: "-- așteptare modele --", }, mode: { title: "Mod chat", chat: { title: "Chat", "desc-start": "oferă răspunsuri bazate pe cunoștințele generale ale LLM-ului", and: "și", "desc-end": "context document care este găsit.", }, query: { title: "Interogare", "desc-start": "oferă răspunsuri", only: "doar", "desc-end": "dacă contextul documentului este găsit.", }, }, history: { title: "Istoric chat", "desc-start": "Numărul conversațiilor anterioare care vor fi incluse în memoria pe termen scurt a răspunsului.", recommend: "Recomandat: 20.", "desc-end": "Mai mult de 45 poate duce la erori în conversații în funcție de mărimea mesajelor.", }, prompt: { title: "System Prompt", description: "Promptul folosit în acest spațiu de lucru. Definește contextul și instrucțiunile pentru AI să genereze răspunsuri relevante și precise.", history: { title: "Istoricul system prompt", clearAll: "Șterge tot", noHistory: "Nu există istoric disponibil", restore: "Restaurează", delete: "Șterge", publish: "Publică în Comunitate", deleteConfirm: "Sigur dorești să ștergi acest istoric?", clearAllConfirm: "Sigur dorești să ștergi tot istoricul? Această acțiune nu poate fi anulată.", expand: "Extinde", }, }, refusal: { title: "Răspuns refuz în modul interogare", "desc-start": "Atunci când ești în", query: "modul interogare", "desc-end": ", poți personaliza răspunsul când nu se găsește context.", "tooltip-title": "De ce văd asta?", "tooltip-description": "Ești în modul interogare (query), care folosește doar informațiile din documente. Treci pe modul chat pentru conversații mai flexibile sau vizitează documentația pentru mai multe detalii.", }, temperature: { title: "Temperatura LLM", "desc-start": 'Această setare controlează cât de "creativ" va fi răspunsul LLM-ului.', "desc-end": "Cu cât numărul e mai mare, cu atât mai creativ. Pentru unele modele poate duce la răspunsuri incoerente la valori mari.", hint: "Majoritatea LLM-urilor au un interval valid specific. Consultă furnizorul tău LLM pentru detalii.", }, }, vector: { title: "Baza de date vectorială", description: "Acestea sunt credențialele și setările pentru modul în care funcționează instanța ta AnythingLLM. Este important să fie corecte și actuale.", provider: { title: "Furnizor baza de date vectorială", description: "Nu este necesară configurarea pentru LanceDB.", }, }, embeddable: { title: "Widget-uri chat integrabile (embeddable)", description: "Widgeturile de chat integrabile sunt interfețe de chat publice, asociate unui singur spațiu de lucru. Acestea vă permit să creați spații de lucru pe care le puteți apoi publica pentru întreaga lume.", create: "Generează cod embed", table: { workspace: "Spațiu de lucru", chats: "Chaturi trimise", active: "Domenii active", created: "Creat", }, }, "embed-chats": { title: "Istoric chat embed", export: "Exportă", description: "Acestea sunt toate chat-urile și mesajele înregistrate din orice embed pe care l-ai publicat.", table: { embed: "Embed", sender: "Expeditor", message: "Mesaj", response: "Răspuns", at: "Trimis la", }, }, event: { title: "Jurnale de evenimente", description: "Vizualizează toate acțiunile și evenimentele care au loc pe această resursă pentru monitorizare.", clear: "Șterge jurnalele", table: { type: "Tip eveniment", user: "Utilizator", occurred: "S-a întâmplat la", }, }, privacy: { title: "Confidențialitate & Gestionarea datelor", description: "Aceasta este configurația ta pentru modul în care furnizorii terți conectați și AnythingLLM gestionează datele tale.", llm: "Selecția LLM", embedding: "Preferința embedding", vector: "Baza de date vectorială", anonymous: "Telemetrie anonimă activată", }, connectors: { "search-placeholder": "Caută conectori de date", "no-connectors": "Nu au fost găsiți conectori de date.", obsidian: { name: "Obsidian", description: "Importă un vault Obsidian cu un singur click.", vault_location: "Locația vault-ului", vault_description: "Selectează folderul vault-ului Obsidian pentru a importa toate notițele și conexiunile lor.", selected_files: "Au fost găsite {{count}} fișiere markdown", importing: "Import vault în curs...", import_vault: "Importă Vault", processing_time: "Aceasta poate dura ceva timp în funcție de dimensiunea vault-ului.", vault_warning: "Pentru a evita conflictele, asigură-te că vault-ul Obsidian nu este deschis în acest moment.", }, github: { name: "Repo GitHub", description: "Importă un întreg repository public sau privat GitHub cu un singur click.", URL: "URL repository GitHub", URL_explained: "URL-ul repository-ului GitHub pe care dorești să îl colectezi.", token: "Token de acces GitHub", optional: "opțional", token_explained: "Token de acces pentru a preveni limitările de rată.", token_explained_start: "Fără un ", token_explained_link1: "Token de acces personal", token_explained_middle: ", API-ul GitHub poate limita numărul de fișiere ce pot fi colectate din cauza limitărilor. Poți ", token_explained_link2: "crea un token de acces temporar", token_explained_end: " pentru a evita această problemă.", ignores: "Fișiere ignorate", git_ignore: "Listează în format .gitignore fișierele de ignorat la colectare. Apasă enter după fiecare intrare pentru a salva.", task_explained: "Odată complet, toate fișierele vor fi disponibile pentru embedding în spații de lucru în selectorul de documente.", branch: "Ramura din care dorești să colectezi fișiere.", branch_loading: "-- încărcare ramuri disponibile --", branch_explained: "Ramura din care dorești să colectezi fișiere.", token_information: "Fără token-ul de acces GitHub completat, acest conector va putea colecta doar fișierele de top datorită limitărilor API-ului public GitHub.", token_personal: "Obține un token de acces personal gratuit aici cu un cont GitHub.", }, gitlab: { name: "Repo GitLab", description: "Importă un întreg repository public sau privat GitLab cu un singur click.", URL: "URL repository GitLab", URL_explained: "URL-ul repository-ului GitLab pe care dorești să îl colectezi.", token: "Token de acces GitLab", optional: "opțional", token_explained: "Token de acces pentru a preveni limitările de rată.", token_description: "Selectează entitățile suplimentare de preluat din API-ul GitLab.", token_explained_start: "Fără un ", token_explained_link1: "Token de acces personal", token_explained_middle: ", API-ul GitLab poate limita numărul de fișiere ce pot fi colectate din cauza limitărilor. Poți ", token_explained_link2: "crea un token de acces temporar", token_explained_end: " pentru a evita această problemă.", fetch_issues: "Preia issue-uri ca documente", ignores: "Fișiere ignorate", git_ignore: "Listează în format .gitignore fișierele de ignorat la colectare. Apasă enter după fiecare intrare pentru a salva.", task_explained: "Odată complet, toate fișierele vor fi disponibile pentru embedding în spații de lucru în selectorul de documente.", branch: "Ramura din care dorești să colectezi fișiere.", branch_loading: "-- încărcare ramuri disponibile --", branch_explained: "Ramura din care dorești să colectezi fișiere.", token_information: "Fără token-ul de acces GitLab completat, acest conector va putea colecta doar fișierele de top datorită limitărilor API-ului public GitLab.", token_personal: "Obține un token de acces personal gratuit aici cu un cont GitLab.", }, youtube: { name: "Transcriere YouTube", description: "Importă transcrierea unui videoclip YouTube dintr-un link.", URL: "URL videoclip YouTube", URL_explained_start: "Introdu URL-ul oricărui videoclip YouTube pentru a-i prelua textul. Videoclipul trebuie să aibă ", URL_explained_link: "subtitrări închise", URL_explained_end: " disponibile.", task_explained: "Odată complet, transcrierea va fi disponibilă pentru embedding în spații de lucru în selectorul de documente.", language: "Limba transcrierii", language_explained: "Selectează limba transcrierii pe care dorești să o colectezi.", loading_languages: "-- încărcare limbi disponibile --", }, "website-depth": { name: "Bulk Link Scraper", description: "Extrage o pagină web și link-urile sale din subpaginile până la o anumită adâncime.", URL: "URL site web", URL_explained: "URL-ul site-ului pe care dorești să îl culegi.", depth: "Adâncime crawl", depth_explained: "Numărul de link-uri de copii pe care workerul trebuie să le urmărească din URL-ul originar.", max_pages: "Număr maxim pagini", max_pages_explained: "Numărul maxim de link-uri de colectat.", task_explained: "Odată complet, tot conținutul cules va fi disponibil pentru embedding în spații de lucru în selectorul de documente.", }, confluence: { name: "Confluence", description: "Importă o pagină Confluence cu un singur click.", deployment_type: "Tip implementare Confluence", deployment_type_explained: "Determină dacă resursa ta Confluence este găzduită în cloud Atlassian sau self-hosted.", base_url: "URL de bază Confluence", base_url_explained: "Acesta este URL-ul de bază al spațiului tău Confluence.", space_key: "Cheie spațiu Confluence", space_key_explained: "Cheia spațiului din resursa ta Confluence care va fi folosită. De obicei începe cu ~", username: "Nume utilizator Confluence", username_explained: "Numele tău de utilizator Confluence", auth_type: "Tip autentificare Confluence", auth_type_explained: "Selectează tipul de autentificare pentru accesarea paginilor Confluence.", auth_type_username: "Nume utilizator și token de acces", auth_type_personal: "Token de acces personal", token: "Token de acces Confluence", token_explained_start: "Trebuie să furnizezi un token de acces pentru autentificare. Poți genera un token de acces ", token_explained_link: "aici", token_desc: "Token de acces pentru autentificare", pat_token: "Token de acces personal Confluence", pat_token_explained: "Token-ul tău personal de acces Confluence.", task_explained: "Odată complet, conținutul paginii va fi disponibil pentru embedding în spații de lucru în selectorul de documente.", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "Documente", "data-connectors": "Conectori de date", "desktop-only": "Editarea acestor setări este disponibilă doar pe un dispozitiv desktop. Te rugăm să accesezi această pagină de pe desktop pentru a continua.", dismiss: "Ignoră", editing: "Se editează", }, directory: { "my-documents": "Documentele mele", "new-folder": "Folder nou", "search-document": "Căută document", "no-documents": "Niciun document", "move-workspace": "Mută în spațiul de lucru", name: "Nume", "delete-confirmation": "Ești sigur că vrei să ștergi aceste fișiere și foldere?\nAcest lucru va elimina fișierele din sistem și le va elimina automat din orice spațiu de lucru existent.\nAceastă acțiune este ireversibilă.", "removing-message": "Se elimină {{count}} documente și {{folderCount}} foldere. Te rugăm să aștepți.", "move-success": "S-au mutat cu succes {{count}} documente.", date: "Dată", type: "Tip", no_docs: "Niciun document", select_all: "Selectează tot", deselect_all: "Deselectează tot", remove_selected: "Elimină selectate", costs: "*Cost unic pentru embeddings", save_embed: "Salvează și încorporează", }, upload: { "processor-offline": "Procesorul de documente este offline", "processor-offline-desc": "Nu putem încărca fișierele tale acum deoarece procesorul de documente este offline. Te rugăm să încerci din nou mai târziu.", "click-upload": "Clic pentru a încărca sau trage și plasa", "file-types": "suportă fișiere text, CSV-uri, foi de calcul, fișiere audio și multe altele!", "or-submit-link": "sau trimite un link", "placeholder-link": "https://exemplu.com", fetching: "Se preia...", "fetch-website": "Preluare site web", "privacy-notice": "Aceste fișiere vor fi încărcate în procesorul de documente care rulează pe această instanță AnythingLLM. Aceste fișiere nu sunt trimise sau partajate cu o terță parte.", }, pinning: { what_pinning: "Ce este fixarea documentelor?", pin_explained_block1: "Când **fixezi** un document în AnythingLLM, vom injecta întregul conținut al documentului în fereastra de prompt pentru ca LLM-ul tău să-l înțeleagă pe deplin.", pin_explained_block2: "Acest lucru funcționează cel mai bine cu **modele cu context mare** sau fișiere mici care sunt critice pentru baza sa de cunoștințe.", pin_explained_block3: "Dacă nu obții răspunsurile dorite de la AnythingLLM în mod implicit, atunci fixarea este o modalitate excelentă de a obține răspunsuri de calitate superioară dintr-un clic.", accept: "Ok, am înțeles", }, watching: { what_watching: "Ce face vizualizarea unui document?", watch_explained_block1: "Când **urmărești** un document în AnythingLLM, vom sincroniza *automat* conținutul documentului tău din sursa originală la intervale regulate. Acest lucru va actualiza automat conținutul în fiecare spațiu de lucru unde acest fișier este gestionat.", watch_explained_block2: "Această funcție suportă în prezent conținutul online și nu va fi disponibilă pentru documentele încărcate manual.", watch_explained_block3_start: "Poți gestiona ce documente sunt urmărite din vizualizarea de administrator a ", watch_explained_block3_link: "Managerului de fișiere", watch_explained_block3_end: ".", accept: "Ok, am înțeles", }, }, chat_window: { welcome: "Bine ai venit în noul tău spațiu de lucru.", get_started: "Pentru a începe, fie", get_started_default: "Pentru a începe", upload: "încarcă un document", or: "sau", attachments_processing: "Fișierele atașate se procesează. Te rugăm să aștepți...", send_chat: "trimite un chat.", send_message: "Trimite mesaj", attach_file: "Atașează un fișier la acest chat", slash: "Vizualizează toate comenzile slash disponibile pentru chat.", agents: "Vezi toți agenții disponibili pentru chat.", text_size: "Schimbă dimensiunea textului.", microphone: "Vorbește promptul tău.", send: "Trimite prompt către spațiul de lucru", tts_speak_message: "Rostește mesajul TTS", copy: "Copiază", regenerate: "Regenerare", regenerate_response: "Regenerare răspuns", good_response: "Răspuns bun", more_actions: "Mai multe acțiuni", hide_citations: "Ascunde citările", show_citations: "Arată citările", pause_tts_speech_message: "Pauză rostire mesaj TTS", fork: "Fork", delete: "Șterge", save_submit: "Salvează & Trimite", cancel: "Anulează", edit_prompt: "Editează prompt", edit_response: "Editează răspuns", at_agent: "@agent", default_agent_description: " - agentul implicit pentru acest spațiu de lucru.", custom_agents_coming_soon: "agenții personalizați vin în curând!", slash_reset: "/reset", preset_reset_description: "Șterge istoricul chatului și începe o conversație nouă", add_new_preset: " Adaugă preset nou", command: "Comandă", your_command: "comanda-ta", placeholder_prompt: "Acesta este conținutul care va fi injectat înaintea promptului tău.", description: "Descriere", placeholder_description: "Răspunde cu o poezie despre LLM-uri.", save: "Salvează", small: "Mic", normal: "Normal", large: "Mare", workspace_llm_manager: { search: "Caută furnizori LLM", loading_workspace_settings: "Se încarcă setările spațiului de lucru...", available_models: "Modele disponibile pentru {{provider}}", available_models_description: "Selectează un model pentru acest spațiu de lucru.", save: "Folosește acest model", saving: "Setez modelul ca implicit pentru spațiu de lucru...", missing_credentials: "Acest furnizor lipsește credențiale!", missing_credentials_description: "Click pentru a configura credențialele", }, }, profile_settings: { edit_account: "Editează contul", profile_picture: "Poză profil", remove_profile_picture: "Șterge poza profil", username: "Nume utilizator", username_description: "Numele de utilizator trebuie să conțină doar litere mici, cifre, underscore și liniuțe fără spații", new_password: "Parolă nouă", password_description: "Parola trebuie să aibă cel puțin 8 caractere", cancel: "Anulează", update_account: "Actualizează contul", theme: "Preferință temă", language: "Limba preferată", failed_upload: "Încărcarea pozei de profil a eșuat: {{error}}", upload_success: "Poză de profil încărcată.", failed_remove: "Ștergerea pozei de profil a eșuat: {{error}}", profile_updated: "Profil actualizat.", failed_update_user: "Actualizarea utilizatorului a eșuat: {{error}}", account: "Cont", support: "Suport", signout: "Deconectare", }, "keyboard-shortcuts": { title: "Scurtături de tastatură", shortcuts: { settings: "Deschide setările", workspaceSettings: "Deschide setările spațiului curent de lucru", home: "Mergi la pagina principală", workspaces: "Gestionează spațiile de lucru", apiKeys: "Setările API Keys", llmPreferences: "Preferințe LLM", chatSettings: "Setări chat", help: "Arată ajutor pentru scurtături de tastatură", showLLMSelector: "Arată selectorul LLM pentru spațiu de lucru", }, }, community_hub: { publish: { system_prompt: { success_title: "Succes!", success_description: "Promptul sistemului tău a fost publicat în Comunitate!", success_thank_you: "Mulțumim pentru contribuția ta!", view_on_hub: "Vezi pe Community Hub", modal_title: "Publică System Prompt ", name_label: "Nume", name_description: "Acesta este numele afișat al System Prompt-ului tău.", name_placeholder: "", description_label: "Descriere", description_description: "Descrie scopul System Prompt-ului tău.", tags_label: "Etichete", tags_description: "Etichetele ajută la căutarea Promptului. Max 5 etichete, max 20 caractere fiecare.", tags_placeholder: "Tastează și apasă Enter pentru a adăuga etichete", visibility_label: "Vizibilitate", public_description: "Prompturile publice sunt vizibile tuturor.", private_description: "Prompturile private sunt vizibile doar ție.", publish_button: "Publică pe Community Hub", submitting: "Se publică...", submit: "Publică pe Community Hub", prompt_label: "Prompt", prompt_description: "Acesta este promptul efectiv folosit pentru a ghida LLM-ul.", prompt_placeholder: "Introdu System Prompt-ul aici...", }, agent_flow: { public_description: "Fluxurile agent publice sunt vizibile tuturor.", private_description: "Fluxurile agent private sunt vizibile doar ție.", success_title: "Succes!", success_description: "Fluxul agentului tău a fost publicat în Comunitate!", success_thank_you: "Mulțumim pentru contribuția ta!", view_on_hub: "Vezi pe Community Hub", modal_title: "Publică flux agent", name_label: "Nume", name_description: "Acesta este numele afișat al fluxului tău agent.", name_placeholder: "Fluxul meu agent", description_label: "Descriere", description_description: "Descrie scopul fluxului tău agent.", tags_label: "Etichete", tags_description: "Etichetele ajută la găsirea fluxului agent. Max 5 etichete, max 20 caractere fiecare.", tags_placeholder: "Tastează și apasă Enter pentru a adăuga etichete", visibility_label: "Vizibilitate", publish_button: "Publică pe Community Hub", submitting: "Se publică...", submit: "Publică pe Community Hub", privacy_note: "Fluxurile agent sunt întotdeauna încărcate privat pentru a proteja datele sensibile. Poți schimba vizibilitatea după publicare. Verifică că nu conține informații sensibile înainte să publici.", }, slash_command: { success_title: "Succes!", success_description: "Comanda slash ta a fost publicată în Comunitate!", success_thank_you: "Mulțumim pentru contribuția ta!", view_on_hub: "Vezi pe Community Hub", modal_title: "Publică comandă slash", name_label: "Nume", name_description: "Acesta este numele afișat al comenzii tale slash.", name_placeholder: "Comanda mea slash",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/ko/common.js
frontend/src/locales/ko/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "방문을 환영합니다", getStarted: "시작하기", }, llm: { title: "LLM 기본 설정", description: "AnythingLLM은 다양한 LLM 제공자와 연동할 수 있습니다. 여기서 선택한 서비스가 채팅을 담당하게 됩니다.", }, userSetup: { title: "사용자 설정", description: "사용자 설정을 구성하세요.", howManyUsers: "이 인스턴스를 사용할 사용자는 몇 명인가요?", justMe: "나만 사용", myTeam: "팀 사용", instancePassword: "인스턴스 비밀번호", setPassword: "비밀번호를 설정하시겠습니까?", passwordReq: "비밀번호는 최소 8자 이상이어야 합니다.", passwordWarn: "이 비밀번호는 복구 방법이 없으니 꼭 안전하게 보관하세요.", adminUsername: "관리자 계정 사용자명", adminUsernameReq: "사용자명은 6자 이상이어야 하며, 소문자, 숫자, 밑줄(_), 하이픈(-)만 사용할 수 있습니다. 공백은 허용되지 않습니다.", adminPassword: "관리자 계정 비밀번호", adminPasswordReq: "비밀번호는 최소 8자 이상이어야 합니다.", teamHint: "기본적으로 본인이 유일한 관리자가 됩니다. 온보딩이 완료되면 다른 사용자를 초대하거나 관리자로 지정할 수 있습니다. 비밀번호를 분실하면 관리자만 비밀번호를 재설정할 수 있으니 꼭 기억해 두세요.", }, data: { title: "데이터 처리 및 개인정보 보호", description: "AnythingLLM은 여러분의 개인정보에 대한 투명성과 제어권을 최우선으로 생각합니다.", settingsHint: "이 설정은 언제든지 설정 메뉴에서 다시 변경할 수 있습니다.", }, survey: { title: "AnythingLLM에 오신 것을 환영합니다", description: "여러분의 필요에 맞는 AnythingLLM을 만들 수 있도록 도와주세요. (선택 사항)", email: "이메일을 입력해 주세요", useCase: "AnythingLLM을 어떤 용도로 사용하실 예정인가요?", useCaseWork: "업무용", useCasePersonal: "개인용", useCaseOther: "기타", comment: "AnythingLLM을 어떻게 알게 되셨나요?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube 등 - 어떻게 알게 되셨는지 알려주세요!", skip: "설문 건너뛰기", thankYou: "소중한 의견 감사합니다!", }, workspace: { title: "첫 번째 워크스페이스 만들기", description: "첫 번째 워크스페이스를 생성하고 AnythingLLM을 시작해보세요.", }, }, common: { "workspaces-name": "워크스페이스 이름", error: "오류", success: "성공", user: "사용자", selection: "모델 선택", saving: "저장 중...", save: "저장", previous: "이전", next: "다음", optional: "선택 사항", yes: "예", no: "아니오", search: null, }, settings: { title: "인스턴스 설정", system: "일반 설정", invites: "초대", users: "사용자", workspaces: "워크스페이스", "workspace-chats": "워크스페이스 채팅", customization: "사용자 정의", "api-keys": "개발자 API", llm: "LLM", transcription: "텍스트 변환", embedder: "임베더", "text-splitting": "텍스트 분할과 청킹", "voice-speech": "음성과 말하기", "vector-database": "벡터 데이터베이스", embeds: "채팅 임베드", "embed-chats": "채팅 임베드 기록", security: "보안", "event-logs": "이벤트 로그", privacy: "사생활 보호와 데이터", "ai-providers": "AI 제공자", "agent-skills": "에이전트 스킬", admin: "관리자", tools: "도구", "experimental-features": "실험적 기능", contact: "지원팀 연락", "browser-extension": "브라우저 확장 프로그램", "system-prompt-variables": "System Prompt Variables", interface: "UI 환경 설정", branding: "브랜딩 및 화이트라벨링", chat: "채팅", }, login: { "multi-user": { welcome: "웰컴!", "placeholder-username": "사용자 이름", "placeholder-password": "비밀번호", login: "로그인", validating: "유효성 검사 중...", "forgot-pass": "비밀번호를 잊으셨나요", reset: "재설정", }, "sign-in": { start: "사용자 계정으로 ", end: "에 로그인하세요.", }, "password-reset": { title: "비밀번호 재설정", description: "비밀번호를 재설정하려면 아래에 필요한 정보를 입력하세요.", "recovery-codes": "복구 코드", "recovery-code": "복구 코드 {{index}}", "back-to-login": "로그인으로 돌아가기", }, }, "main-page": { noWorkspaceError: "채팅을 시작하기 전에 워크스페이스를 먼저 만들어주세요.", checklist: { title: "시작하기", tasksLeft: "남은 작업", completed: "이제 곧 AnythingLLM 전문가가 되실 거예요!", dismiss: "닫기", tasks: { create_workspace: { title: "워크스페이스 만들기", description: "처음으로 워크스페이스를 만들어 시작해보세요", action: "만들기", }, send_chat: { title: "채팅 보내기", description: "AI 어시스턴트와 대화를 시작해보세요", action: "채팅", }, embed_document: { title: "문서 임베드하기", description: "워크스페이스에 첫 번째 문서를 추가해보세요", action: "임베드", }, setup_system_prompt: { title: "시스템 프롬프트 설정", description: "AI 어시스턴트의 동작 방식을 설정하세요", action: "설정", }, define_slash_command: { title: "슬래시 명령어 정의", description: "어시스턴트용 맞춤 명령어를 만들어보세요", action: "정의", }, visit_community: { title: "커뮤니티 허브 방문", description: "커뮤니티 자료와 템플릿을 둘러보세요", action: "둘러보기", }, }, }, quickLinks: { title: "바로가기", sendChat: "채팅 보내기", embedDocument: "문서 임베드", createWorkspace: "워크스페이스 만들기", }, exploreMore: { title: "더 많은 기능 살펴보기", features: { customAgents: { title: "맞춤형 AI 에이전트", description: "코딩 없이 강력한 AI 에이전트와 자동화를 구축하세요.", primaryAction: "@agent로 채팅하기", secondaryAction: "에이전트 플로우 만들기", }, slashCommands: { title: "슬래시 명령어", description: "맞춤 슬래시 명령어로 시간을 절약하고 프롬프트를 빠르게 입력하세요.", primaryAction: "슬래시 명령어 만들기", secondaryAction: "허브에서 둘러보기", }, systemPrompts: { title: "시스템 프롬프트", description: "시스템 프롬프트를 수정해 워크스페이스의 AI 답변을 원하는 대로 맞춤 설정하세요.", primaryAction: "시스템 프롬프트 수정", secondaryAction: "프롬프트 변수 관리", }, }, }, announcements: { title: "업데이트 및 공지사항", }, resources: { title: "자료실", links: { docs: "문서 보기", star: "Github에 스타 누르기", }, keyboardShortcuts: "단축키 안내", }, }, "new-workspace": { title: "새 워크스페이스", placeholder: "내 워크스페이스", }, "workspaces—settings": { general: "일반 설정", chat: "채팅 설정", vector: "벡터 데이터베이스", members: "구성원", agent: "에이전트 구성", }, general: { vector: { title: "벡터 수", description: "벡터 데이터베이스에 있는 총 벡터 수입니다.", }, names: { description: "이것은 워크스페이스의 표시 이름만 변경합니다.", }, message: { title: "제안된 채팅 메시지", description: "워크스페이스 사용자가 사용할 메시지를 수정합니다.", add: "새 메시지 추가", save: "메시지 저장", heading: "저에게 설명해주세요", body: "AnythingLLM의 장점", }, pfp: { title: "어시스턴트 프로필 이미지", description: "이 워크스페이스의 어시스턴트 프로필 이미지를 수정합니다.", image: "워크스페이스 이미지", remove: "워크스페이스 이미지 제거", }, delete: { title: "워크스페이스 삭제", description: "이 워크스페이스와 모든 데이터를 삭제합니다. 이 작업은 모든 사용자에 대해 워크스페이스를 삭제합니다.", delete: "워크스페이스 삭제", deleting: "워크스페이스 삭제 중...", "confirm-start": "이 작업은", "confirm-end": "워크스페이스 전체를 삭제합니다. 이 작업은 벡터 데이터베이스에 있는 모든 벡터 임베딩을 제거합니다.\n\n원본 소스 파일은 그대로 유지됩니다. 이 작업은 되돌릴 수 없습니다.", }, }, chat: { llm: { title: "워크스페이스 LLM 제공자", description: "이 워크스페이스에서 사용할 특정 LLM 제공자와 모델입니다. 기본적으로 시스템 LLM 제공자와 설정을 사용합니다.", search: "모든 LLM 제공자 검색", }, model: { title: "워크스페이스 채팅 모델", description: "이 워크스페이스에서 사용할 특정 채팅 모델입니다. 비어 있으면 시스템 LLM 기본 설정을 사용합니다.", wait: "-- 모델 기다리는 중 --", }, mode: { title: "채팅 모드", chat: { title: "채팅", "desc-start": "문서 내용을 찾습니다.", and: "그리고", "desc-end": "LLM의 일반 지식을 같이 사용하여 답변을 제공합니다", }, query: { title: "쿼리", "desc-start": "문서 컨텍스트를 찾을 ", only: "때만", "desc-end": "답변을 제공합니다.", }, }, history: { title: "채팅 기록", "desc-start": "응답의 단기 메모리에 포함될 이전 채팅의 수입니다.", recommend: "추천 20개 ", "desc-end": " 45개 이상은 메시지 크기에 따라 채팅 실패가 발생할 수 있습니다.", }, prompt: { title: "시스템 프롬프트", description: "이 워크스페이스에서 사용할 프롬프트입니다. AI가 응답을 생성하기 위해 문맥과 지침을 정의합니다. AI가 질문에 대하여 정확한 응답을 생성할 수 있도록 신중하게 프롬프트를 제공해야 합니다.", history: { title: "시스템 프롬프트 기록", clearAll: "전체 삭제", noHistory: "저장된 시스템 프롬프트 기록이 없습니다", restore: "복원", delete: "삭제", publish: "커뮤니티 허브에 게시", deleteConfirm: "이 기록 항목을 삭제하시겠습니까?", clearAllConfirm: "모든 기록을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.", expand: "확장", }, }, refusal: { title: "쿼리 모드 거부 응답 메시지", "desc-start": "쿼리 모드에서", query: "응답에 사용할 수 있는", "desc-end": "컨텍스트를 찾을 수 없을 때 거부 응답 내용을 작성합니다.", "tooltip-title": "왜 이 메시지가 표시되나요?", "tooltip-description": "현재 쿼리 모드에서는 문서의 정보만을 사용합니다. 더 자유로운 대화를 원하시면 채팅 모드로 전환하거나, 채팅 모드에 대한 자세한 내용은 문서를 참고하세요.", }, temperature: { title: "LLM 온도", "desc-start": '이 설정은 LLM 응답이 얼마나 "창의적"일지를 제어합니다.', "desc-end": "숫자가 높을수록 창의적입니다. 일부 모델에서는 너무 높게 설정하면 일관성 없는 응답이 나올 수 있습니다.", hint: "대부분의 LLM은 유효한 값의 다양한 허용 범위를 가지고 있습니다. 해당 정보는 LLM 제공자에게 문의하세요.", }, }, "vector-workspace": { identifier: "벡터 데이터베이스 식별자", snippets: { title: "최대 문맥 조각", description: "이 설정은 채팅 또는 쿼리당 LLM에 전송될 최대 문맥 조각 수를 제어합니다.", recommend: "추천: 4", }, doc: { title: "문서 유사성 임계값", description: "채팅과 관련이 있다고 판단되는 문서의 유사성 점수입니다. 숫자가 높을수록 질문에 대한 문서의 내용이 유사합니다.", zero: "제한 없음", low: "낮음 (유사성 점수 ≥ .25)", medium: "중간 (유사성 점수 ≥ .50)", high: "높음 (유사성 점수 ≥ .75)", }, reset: { reset: "벡터 데이터베이스 재설정", resetting: "벡터 지우는 중...", confirm: "이 워크스페이스의 벡터 데이터베이스를 재설정하려고 합니다. 현재 임베딩된 모든 벡터 임베딩을 제거합니다.\n\n원본 소스 파일은 그대로 유지됩니다. 이 작업은 되돌릴 수 없습니다.", error: "워크스페이스 벡터 데이터베이스를 재설정할 수 없습니다!", success: "워크스페이스 벡터 데이터베이스가 재설정되었습니다!", }, }, agent: { "performance-warning": "도구 호출을 명시적으로 지원하지 않는 LLM의 성능은 모델의 기능과 정확도에 크게 좌우됩니다. 일부 기능은 제한되거나 작동하지 않을 수 있습니다.", provider: { title: "워크스페이스 에이전트 LLM 제공자", description: "이 워크스페이스의 @agent 에이전트에 사용할 특정 LLM 제공자 및 모델입니다.", }, mode: { chat: { title: "워크스페이스 에이전트 채팅 모델", description: "이 워크스페이스의 @agent 에이전트에 사용할 특정 채팅 모델입니다.", }, title: "워크스페이스 에이전트 모델", description: "이 워크스페이스의 @agent 에이전트에 사용할 특정 LLM 모델입니다.", wait: "-- 모델 기다리는 중 --", }, skill: { title: "기본 에이전트 스킬", description: "기본 에이전트의 능력을 사전 정의된 스킬을 사용하여 향상시킵니다. 이 설정은 모든 워크스페이스에 적용됩니다.", rag: { title: "RAG와 장기 메모리", description: '에이전트가 제공된 문서를 활용하여 쿼리에 답변하거나 에이전트에게 "기억"할 내용을 요청하여 장기 메모리 검색을 허용합니다.', }, view: { title: "문서 보기 및 요약", description: "에이전트가 현재 임베딩된 워크스페이스의 문서 내용을 나열하고 요약할 수 있도록 합니다.", }, scrape: { title: "웹사이트 스크래핑", description: "에이전트가 웹사이트를 방문하고 내용을 스크래핑할 수 있도록 합니다.", }, generate: { title: "차트 생성", description: "기본 에이전트가 채팅에서 제공된 데이터를 이용하여 다양한 유형의 차트를 생성할 수 있도록 합니다.", }, save: { title: "브라우저에서 파일 생성과 저장", description: "기본 에이전트가 브라우저에서 파일을 생성하고 다운로드할 수 있도록 합니다.", }, web: { title: "실시간 웹 검색 및 탐색", "desc-start": "에이전트가 웹을 검색하여 질문에 답변할 수 있도록 허용합니다.", "desc-end": "에이전트 세션 중 웹 검색은 설정되지 않으면 작동하지 않습니다.", }, }, }, recorded: { title: "워크스페이스 채팅", description: "이것들은 사용자들이 보낸 모든 채팅과 메시지입니다. 생성 날짜별로 정렬되어 있습니다.", export: "내보내기", table: { id: "ID", by: "보낸 사람", workspace: "워크스페이스", prompt: "프롬프트", response: "응답", at: "보낸 시각", }, }, customization: { interface: { title: "UI 환경 설정", description: "AnythingLLM의 UI 환경을 원하는 대로 설정하세요.", }, branding: { title: "브랜딩 및 화이트라벨링", description: "AnythingLLM 인스턴스에 맞춤 브랜딩을 적용해 화이트라벨링할 수 있습니다.", }, chat: { title: "채팅", description: "AnythingLLM의 채팅 환경을 원하는 대로 설정하세요.", auto_submit: { title: "음성 입력 자동 전송", description: "일정 시간 동안 음성이 감지되지 않으면 음성 입력을 자동으로 전송합니다.", }, auto_speak: { title: "응답 자동 음성 출력", description: "AI의 응답을 자동으로 음성으로 들려줍니다.", }, spellcheck: { title: "맞춤법 검사 활성화", description: "채팅 입력란에서 맞춤법 검사를 켜거나 끌 수 있습니다.", }, }, items: { theme: { title: "테마", description: "애플리케이션의 색상 테마를 선택하세요.", }, "show-scrollbar": { title: "스크롤바 표시", description: "채팅 창에서 스크롤바를 표시하거나 숨길 수 있습니다.", }, "support-email": { title: "지원 이메일", description: "사용자가 도움이 필요할 때 접근할 수 있는 지원 이메일 주소를 설정하세요.", }, "app-name": { title: "이름", description: "로그인 페이지에 모든 사용자에게 표시될 애플리케이션 이름을 설정하세요.", }, "chat-message-alignment": { title: "채팅 메시지 정렬", description: "채팅 인터페이스에서 메시지 정렬 방식을 선택하세요.", }, "display-language": { title: "표시 언어", description: "AnythingLLM의 UI에 사용할 언어를 선택하세요. 번역이 제공되는 경우에만 적용됩니다.", }, logo: { title: "브랜드 로고", description: "모든 페이지에 표시할 맞춤 로고를 업로드하세요.", add: "맞춤 로고 추가", recommended: "권장 크기: 800 x 200", remove: "제거", replace: "교체", }, "welcome-messages": { title: "환영 메시지", description: "사용자에게 표시될 환영 메시지를 맞춤 설정하세요. 관리자 권한이 없는 사용자만 이 메시지를 볼 수 있습니다.", new: "새 메시지", system: "시스템", user: "사용자", message: "메시지", assistant: "AnythingLLM 채팅 어시스턴트", "double-click": "더블 클릭하여 편집...", save: "메시지 저장", }, "browser-appearance": { title: "브라우저 표시 설정", description: "앱이 열려 있을 때 브라우저 탭과 제목의 표시 방식을 맞춤 설정하세요.", tab: { title: "탭 제목", description: "앱이 브라우저에서 열려 있을 때 사용할 맞춤 탭 제목을 설정하세요.", }, favicon: { title: "파비콘", description: "브라우저 탭에 사용할 맞춤 파비콘을 지정하세요.", }, }, "sidebar-footer": { title: "사이드바 하단 항목", description: "사이드바 하단에 표시될 푸터 항목을 맞춤 설정하세요.", icon: "아이콘", link: "링크", }, "render-html": { title: null, description: null, }, }, }, api: { title: "API 키", description: "API 키는 소유자가 프로그래밍 방식으로 이 AnythingLLM 인스턴스에 액세스하고 관리할 수 있도록 합니다.", link: "API 문서 읽기", generate: "새 API 키 생성", table: { key: "API 키", by: "생성한 사람", created: "생성일", }, }, llm: { title: "LLM 기본 설정", description: "이것은 채팅과 임베딩을 하기 위한 선호하는 LLM 제공자의 인증입니다. 이 키가 현재 활성 상태이고 정확해야 AnythingLLM이 제대로 작동합니다.", provider: "LLM 제공자", providers: { azure_openai: { azure_service_endpoint: "Azure 서비스 엔드포인트", api_key: "API 키", chat_deployment_name: "채팅 배포 이름", chat_model_token_limit: "채팅 모델 토큰 한도", model_type: "모델 유형", default: "기본값", reasoning: "추론", model_type_tooltip: null, }, }, }, transcription: { title: "텍스트 변환 모델 기본 설정", description: "이것은 선호하는 텍스트 변환 모델 제공자의 인증입니다. 이 키가 현재 활성 상태이고 정확해야 미디어 파일 및 오디오가 텍스트 변환됩니다.", provider: "텍스트 변환 제공자", "warn-start": "RAM 또는 CPU 성능이 제한된 머신에서 로컬 위스퍼 모델을 사용하면 미디어 파일을 처리할 때 AnythingLLM이 중단될 수 있습니다.", "warn-recommend": "최소 2GB RAM과 10Mb 보다 작은 파일 업로드를 권장합니다.", "warn-end": "내장된 모델은 첫 번째 사용 시 자동으로 다운로드됩니다.", }, embedding: { title: "임베딩 기본 설정", "desc-start": "임베딩 엔진을 지원하지 않는 LLM을 사용할 때 텍스트를 임베딩하는 데 다른 임베딩 엔진 제공자의 인증이 필요할 수 있습니다.", "desc-end": "임베딩은 텍스트를 벡터로 변환하는 과정입니다. 파일과 프롬프트를 AnythingLLM이 처리할 수 있는 형식으로 변환하려면 이러한 인증이 필요합니다.", provider: { title: "임베딩 제공자", }, }, text: { title: "텍스트 분할 및 청킹 기본 설정", "desc-start": "새 문서를 벡터 데이터베이스에 삽입하기 전에 기본 텍스트 분할 방식을 변경할 수 있습니다.", "desc-end": "텍스트 분할 방식과 그 영향을 이해하고 있는 경우에만 이 설정을 변경해야 합니다.", size: { title: "텍스트 청크 크기", description: "단일 벡터에 들어갈 수 있는 최대 문자 길이입니다.", recommend: "임베드 모델 최대 길이는", }, overlap: { title: "텍스트 청크 겹침", description: "청킹 동안 두 인접 텍스트 청크 간에 겹칠 수 있는 최대 문자 수입니다.", }, }, vector: { title: "벡터 데이터베이스", description: "이것은 AnythingLLM 인스턴스가 벡터 데이터베이스 사용을 위한 인증 설정입니다. 이 키가 활성 상태이고 정확해야 합니다.", provider: { title: "벡터 데이터베이스 제공자", description: "LanceDB를 선택하면 설정이 필요 없습니다.", }, }, embeddable: { title: "임베드 가능한 채팅 위젯", description: "임베드 가능한 채팅 위젯은 하나의 워크스페이스에 연결된 공개용 채팅방입니다. 이를 통해 워크스페이스 설정이 적용된 채팅방을 일반인들에게 공개할 수 있습니다.", create: "임베드 생성", table: { workspace: "워크스페이스", chats: "보낸 채팅", active: "활성 도메인", created: "생성일", }, }, "embed-chats": { title: "임베드 채팅", export: "내보내기", description: "게시한 임베드에서의 모든 채팅과 메시지의 기록입니다.", table: { embed: "임베드", sender: "보낸 사람", message: "메시지", response: "응답", at: "보낸 시각", }, }, event: { title: "이벤트 로그", description: "모니터링을 위해 이 인스턴스에서 발생하는 모든 작업과 이벤트를 확인합니다.", clear: "이벤트 로그 지우기", table: { type: "이벤트 유형", user: "사용자", occurred: "발생 시각", }, }, privacy: { title: "개인정보와 데이터 처리", description: "연결된 타사 제공자와 AnythingLLM이 데이터를 처리하는 방식을 구성합니다.", llm: "LLM 선택", embedding: "임베딩 기본 설정", vector: "벡터 데이터베이스", anonymous: "익명 원격 분석 활성화", }, connectors: { "search-placeholder": "데이터 커넥터 검색", "no-connectors": "데이터 커넥터를 찾을 수 없습니다.", obsidian: { name: "Obsidian", description: "Obsidian 볼트를 한 번에 가져옵니다.", vault_location: "볼트 위치", vault_description: "모든 노트와 연결을 가져오려면 Obsidian 볼트 폴더를 선택하세요.", selected_files: "{{count}}개의 마크다운 파일을 찾았습니다", importing: "볼트 가져오는 중...", import_vault: "볼트 가져오기", processing_time: "볼트 크기에 따라 시간이 다소 소요될 수 있습니다.", vault_warning: "충돌을 방지하려면 Obsidian 볼트가 현재 열려 있지 않은지 확인하세요.", }, github: { name: "GitHub 저장소", description: "공개 또는 비공개 GitHub 저장소 전체를 한 번의 클릭으로 가져옵니다.", URL: "GitHub 저장소 URL", URL_explained: "가져오려는 GitHub 저장소의 URL을 입력하세요.", token: "GitHub 액세스 토큰", optional: "선택 사항", token_explained: "요청 제한을 방지하기 위한 액세스 토큰입니다.", token_explained_start: "", token_explained_link1: "개인 액세스 토큰", token_explained_middle: "이 없으면 GitHub API의 요청 제한으로 인해 가져올 수 있는 파일 수가 제한될 수 있습니다. ", token_explained_link2: "임시 액세스 토큰을 생성", token_explained_end: "하여 이 문제를 피할 수 있습니다.", ignores: "파일 무시 목록", git_ignore: "수집 중 무시할 파일을 .gitignore 형식으로 입력하세요. 저장하려면 각 항목 입력 후 엔터를 누르세요.", task_explained: "가져오기가 완료되면 모든 파일이 문서 선택기에서 워크스페이스에 임베딩할 수 있도록 제공됩니다.", branch: "가져올 브랜치", branch_loading: "-- 사용 가능한 브랜치 불러오는 중 --", branch_explained: "가져오려는 브랜치를 선택하세요.", token_information: "<b>GitHub 액세스 토큰</b>을 입력하지 않으면 GitHub의 공개 API 요청 제한으로 인해 이 데이터 커넥터는 저장소의 <b>최상위</b> 파일만 수집할 수 있습니다.", token_personal: "여기에서 GitHub 계정으로 무료 개인 액세스 토큰을 발급받을 수 있습니다.", }, gitlab: { name: "GitLab 저장소", description: "공개 또는 비공개 GitLab 저장소 전체를 한 번의 클릭으로 가져옵니다.", URL: "GitLab 저장소 URL", URL_explained: "가져오려는 GitLab 저장소의 URL을 입력하세요.", token: "GitLab 액세스 토큰", optional: "선택 사항", token_explained: "요청 제한을 방지하기 위한 액세스 토큰입니다.", token_description: "GitLab API에서 추가로 가져올 엔터티를 선택하세요.", token_explained_start: "", token_explained_link1: "개인 액세스 토큰", token_explained_middle: "이 없으면 GitLab API의 요청 제한으로 인해 가져올 수 있는 파일 수가 제한될 수 있습니다. ", token_explained_link2: "임시 액세스 토큰을 생성", token_explained_end: "하여 이 문제를 피할 수 있습니다.", fetch_issues: "이슈를 문서로 가져오기", ignores: "파일 무시 목록", git_ignore: "수집 중 무시할 파일을 .gitignore 형식으로 입력하세요. 저장하려면 각 항목 입력 후 엔터를 누르세요.", task_explained: "가져오기가 완료되면 모든 파일이 문서 선택기에서 워크스페이스에 임베딩할 수 있도록 제공됩니다.", branch: "가져올 브랜치", branch_loading: "-- 사용 가능한 브랜치 불러오는 중 --", branch_explained: "가져오려는 브랜치를 선택하세요.", token_information: "<b>GitLab 액세스 토큰</b>을 입력하지 않으면 GitLab의 공개 API 요청 제한으로 인해 이 데이터 커넥터는 저장소의 <b>최상위</b> 파일만 수집할 수 있습니다.", token_personal: "여기에서 GitLab 계정으로 무료 개인 액세스 토큰을 발급받을 수 있습니다.", }, youtube: { name: "YouTube 자막 가져오기", description: "링크를 통해 YouTube 동영상 전체의 자막을 가져옵니다.", URL: "YouTube 동영상 URL", URL_explained_start: "자막을 가져올 YouTube 동영상의 URL을 입력하세요. 동영상에는 반드시 ", URL_explained_link: "자막(Closed Captions)", URL_explained_end: " 이 활성화되어 있어야 합니다.", task_explained: "가져오기가 완료되면 자막이 문서 선택기에서 워크스페이스에 임베딩할 수 있도록 제공됩니다.", language: "자막 언어", language_explained: "가져오려는 자막의 언어를 선택하세요.", loading_languages: "-- 사용 가능한 언어 불러오는 중 --", }, "website-depth": { name: "웹사이트 대량 링크 수집", description: "웹사이트와 하위 링크를 지정한 깊이까지 크롤링하여 수집합니다.", URL: "웹사이트 URL", URL_explained: "수집하려는 웹사이트의 URL을 입력하세요.", depth: "크롤링 깊이", depth_explained: "시작 URL에서 몇 단계의 하위 링크까지 따라가서 수집할지 지정합니다.", max_pages: "최대 페이지 수", max_pages_explained: "수집할 최대 링크(페이지) 개수를 설정합니다.", task_explained: "수집이 완료되면 모든 크롤링된 콘텐츠가 문서 선택기에서 워크스페이스에 임베딩할 수 있도록 제공됩니다.", }, confluence: { name: "Confluence", description: "한 번의 클릭으로 전체 Confluence 페이지를 가져옵니다.", deployment_type: "Confluence 배포 유형", deployment_type_explained:
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/fa/common.js
frontend/src/locales/fa/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { survey: { email: null, useCase: null, useCaseWork: null, useCasePersonal: null, useCaseOther: null, comment: null, commentPlaceholder: null, skip: null, thankYou: null, title: null, description: null, }, home: { title: null, getStarted: null, }, llm: { title: null, description: null, }, userSetup: { title: null, description: null, howManyUsers: null, justMe: null, myTeam: null, instancePassword: null, setPassword: null, passwordReq: null, passwordWarn: null, adminUsername: null, adminUsernameReq: null, adminPassword: null, adminPasswordReq: null, teamHint: null, }, data: { title: null, description: null, settingsHint: null, }, workspace: { title: null, description: null, }, }, common: { "workspaces-name": "نام فضای کار", error: "خطا", success: "موفق", user: "کاربر", selection: "انتخاب مدل", saving: "در حال ذخیره...", save: "ذخیره تغییرات", previous: "صفحه قبلی", next: "صفحه بعدی", optional: null, yes: null, no: null, search: null, }, settings: { title: "تنظیمات سامانه", system: "تنظیمات عمومی", invites: "دعوت‌نامه‌ها", users: "کاربران", workspaces: "فضاهای کاری", "workspace-chats": "گفتگوهای فضای کاری", customization: "شخصی‌سازی", "api-keys": "API توسعه‌دهندگان", llm: "مدل زبانی", transcription: "رونویسی", embedder: "جاسازی", "text-splitting": "تقسیم متن و تکه‌بندی", "voice-speech": "صدا و گفتار", "vector-database": "پایگاه داده برداری", embeds: "جاسازی گفتگو", "embed-chats": "تاریخچه گفتگوهای جاسازی شده", security: "امنیت", "event-logs": "گزارش رویدادها", privacy: "حریم خصوصی و داده‌ها", "ai-providers": "ارائه‌دهندگان هوش مصنوعی", "agent-skills": "مهارت‌های عامل", admin: "مدیریت", tools: "ابزارها", "experimental-features": "ویژگی‌های آزمایشی", contact: "تماس با پشتیبانی", "browser-extension": "افزونه مرورگر", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "خوش آمدید به", "placeholder-username": "نام کاربری", "placeholder-password": "رمز عبور", login: "ورود", validating: "در حال اعتبارسنجی...", "forgot-pass": "فراموشی رمز عبور", reset: "بازنشانی", }, "sign-in": { start: "ورود به حساب", end: "کاربری شما.", }, "password-reset": { title: "بازنشانی رمز عبور", description: "برای بازنشانی رمز عبور خود، اطلاعات لازم را وارد کنید.", "recovery-codes": "کدهای بازیابی", "recovery-code": "کد بازیابی {{index}}", "back-to-login": "بازگشت به صفحه ورود", }, }, "new-workspace": { title: "فضای کاری جدید", placeholder: "فضای کاری من", }, "workspaces—settings": { general: "تنظیمات عمومی", chat: "تنظیمات گفتگو", vector: "پایگاه داده برداری", members: "اعضا", agent: "پیکربندی عامل", }, general: { vector: { title: "تعداد بردارها", description: "تعداد کل بردارها در پایگاه داده برداری شما.", }, names: { description: "این فقط نام نمایشی فضای کاری شما را تغییر خواهد داد.", }, message: { title: "پیام‌های گفتگوی پیشنهادی", description: "پیام‌هایی که به کاربران فضای کاری پیشنهاد می‌شود را شخصی‌سازی کنید.", add: "افزودن پیام جدید", save: "ذخیره پیام‌ها", heading: "برایم توضیح بده", body: "مزایای AnythingLLM را", }, pfp: { title: "تصویر پروفایل دستیار", description: "تصویر پروفایل دستیار را برای این فضای کاری شخصی‌سازی کنید.", image: "تصویر فضای کاری", remove: "حذف تصویر فضای کاری", }, delete: { title: "حذف فضای کاری", description: "این فضای کاری و تمام داده‌های آن را حذف کنید. این کار فضای کاری را برای همه کاربران حذف خواهد کرد.", delete: "حذف فضای کاری", deleting: "در حال حذف فضای کاری...", "confirm-start": "شما در حال حذف کامل", "confirm-end": "فضای کاری هستید. این کار تمام جاسازی‌های برداری را از پایگاه داده برداری شما حذف خواهد کرد.\n\nفایل‌های اصلی منبع دست نخورده باقی خواهند ماند. این عمل برگشت‌ناپذیر است.", }, }, chat: { llm: { title: "ارائه‌دهنده LLM فضای کاری", description: "ارائه‌دهنده و مدل LLM خاصی که برای این فضای کاری استفاده خواهد شد. به طور پیش‌فرض، از ارائه‌دهنده و تنظیمات LLM سیستم استفاده می‌کند.", search: "جستجوی تمام ارائه‌دهندگان LLM", }, model: { title: "مدل گفتگوی فضای کاری", description: "مدل گفتگوی خاصی که برای این فضای کاری استفاده خواهد شد. اگر خالی باشد، از ترجیحات LLM سیستم استفاده خواهد کرد.", wait: "-- در انتظار مدل‌ها --", }, mode: { title: "حالت گفتگو", chat: { title: "گفتگو", "desc-start": "پاسخ‌ها را با دانش عمومی LLM", and: "و", "desc-end": "محتوای اسناد یافت شده ارائه می‌دهد.", }, query: { title: "پرس‌وجو", "desc-start": "پاسخ‌ها را", only: "فقط", "desc-end": "در صورت یافتن محتوای اسناد ارائه می‌دهد.", }, }, history: { title: "تاریخچه گفتگو", "desc-start": "تعداد گفتگوهای قبلی که در حافظه کوتاه‌مدت پاسخ گنجانده خواهد شد.", recommend: "پیشنهاد: ۲۰. ", "desc-end": "بیش از ۴۵ احتمالاً منجر به شکست مداوم گفتگو می‌شود که به اندازه پیام‌ها بستگی دارد.", }, prompt: { title: "پیش‌متن", description: "پیش‌متنی که در این فضای کاری استفاده خواهد شد. زمینه و دستورالعمل‌ها را برای تولید پاسخ توسط هوش مصنوعی تعریف کنید. باید یک پیش‌متن دقیق ارائه دهید تا هوش مصنوعی بتواند پاسخی مرتبط و دقیق تولید کند.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "پاسخ رد در حالت پرس‌وجو", "desc-start": "در حالت", query: "پرس‌وجو", "desc-end": "ممکن است بخواهید هنگامی که هیچ محتوایی یافت نمی‌شود، یک پاسخ رد سفارشی برگردانید.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "دمای LLM", "desc-start": 'این تنظیم میزان "خلاقیت" پاسخ‌های LLM شما را کنترل می‌کند.', "desc-end": "هر چه عدد بالاتر باشد، خلاقیت بیشتر است. برای برخی مدل‌ها، تنظیم بسیار بالا می‌تواند منجر به پاسخ‌های نامفهوم شود.", hint: "اکثر LLMها محدوده‌های مختلفی از مقادیر معتبر را دارند. برای این اطلاعات به ارائه‌دهنده LLM خود مراجعه کنید.", }, }, "vector-workspace": { identifier: "شناسه پایگاه داده برداری", snippets: { title: "حداکثر قطعات متنی", description: "این تنظیم حداکثر تعداد قطعات متنی که برای هر گفتگو یا پرس‌وجو به LLM ارسال می‌شود را کنترل می‌کند.", recommend: "پیشنهادی: 4", }, doc: { title: "آستانه شباهت سند", description: "حداقل امتیاز شباهت مورد نیاز برای اینکه یک منبع مرتبط با گفتگو در نظر گرفته شود. هر چه عدد بالاتر باشد، منبع باید شباهت بیشتری با گفتگو داشته باشد.", zero: "بدون محدودیت", low: "پایین (امتیاز شباهت ≥ .25)", medium: "متوسط (امتیاز شباهت ≥ .50)", high: "بالا (امتیاز شباهت ≥ .75)", }, reset: { reset: "بازنشانی پایگاه داده برداری", resetting: "در حال پاک کردن بردارها...", confirm: "شما در حال بازنشانی پایگاه داده برداری این فضای کاری هستید. این کار تمام جاسازی‌های برداری فعلی را حذف خواهد کرد.\n\nفایل‌های اصلی منبع دست نخورده باقی خواهند ماند. این عمل برگشت‌ناپذیر است.", error: "بازنشانی پایگاه داده برداری فضای کاری امکان‌پذیر نبود!", success: "پایگاه داده برداری فضای کاری بازنشانی شد!", }, }, agent: { "performance-warning": "عملکرد LLMهایی که به طور صریح از فراخوانی ابزار پشتیبانی نمی‌کنند، به شدت به قابلیت‌ها و دقت مدل وابسته است. برخی توانایی‌ها ممکن است محدود یا غیرفعال باشند.", provider: { title: "ارائه‌دهنده LLM عامل فضای کاری", description: "ارائه‌دهنده و مدل LLM خاصی که برای عامل @agent این فضای کاری استفاده خواهد شد.", }, mode: { chat: { title: "مدل گفتگوی عامل فضای کاری", description: "مدل گفتگوی خاصی که برای عامل @agent این فضای کاری استفاده خواهد شد.", }, title: "مدل عامل فضای کاری", description: "مدل LLM خاصی که برای عامل @agent این فضای کاری استفاده خواهد شد.", wait: "-- در انتظار مدل‌ها --", }, skill: { title: "مهارت‌های پیش‌فرض عامل", description: "توانایی‌های طبیعی عامل پیش‌فرض را با این مهارت‌های از پیش ساخته شده بهبود دهید. این تنظیمات برای تمام فضاهای کاری اعمال می‌شود.", rag: { title: "RAG و حافظه بلندمدت", description: 'به عامل اجازه دهید از اسناد محلی شما برای پاسخ به پرس‌وجو استفاده کند یا از عامل بخواهید قطعات محتوا را برای بازیابی حافظه بلندمدت "به خاطر بسپارد".', }, view: { title: "مشاهده و خلاصه‌سازی اسناد", description: "به عامل اجازه دهید محتوای فایل‌های جاسازی شده فعلی فضای کاری را فهرست و خلاصه کند.", }, scrape: { title: "استخراج از وب‌سایت‌ها", description: "به عامل اجازه دهید محتوای وب‌سایت‌ها را بازدید و استخراج کند.", }, generate: { title: "تولید نمودارها", description: "به عامل پیش‌فرض امکان تولید انواع مختلف نمودار از داده‌های ارائه شده یا داده شده در گفتگو را بدهید.", }, save: { title: "تولید و ذخیره فایل‌ها در مرورگر", description: "به عامل پیش‌فرض امکان تولید و نوشتن در فایل‌هایی که ذخیره می‌شوند و می‌توانند در مرورگر شما دانلود شوند را بدهید.", }, web: { title: "جستجو و مرور زنده وب", "desc-start": "با اتصال به یک ارائه‌دهنده جستجوی وب (SERP)، به عامل خود امکان جستجو در وب برای پاسخ به سؤالات خود را بدهید.", "desc-end": "جستجوی وب در طول جلسات عامل تا زمانی که این تنظیم نشود، کار نخواهد کرد.", }, }, }, recorded: { title: "گفتگوهای فضای کاری", description: "این‌ها تمام گفتگوها و پیام‌های ثبت شده هستند که توسط کاربران ارسال شده‌اند و بر اساس تاریخ ایجاد مرتب شده‌اند.", export: "خروجی‌گیری", table: { id: "شناسه", by: "ارسال شده توسط", workspace: "فضای کاری", prompt: "درخواست", response: "پاسخ", at: "زمان ارسال", }, }, api: { title: "کلیدهای API", description: "کلیدهای API به دارنده آن‌ها اجازه می‌دهند به صورت برنامه‌نویسی به این نمونه AnythingLLM دسترسی داشته و آن را مدیریت کنند.", link: "مطالعه مستندات API", generate: "ایجاد کلید API جدید", table: { key: "کلید API", by: "ایجاد شده توسط", created: "تاریخ ایجاد", }, }, llm: { title: "ترجیحات مدل زبانی", description: "این‌ها اعتبارنامه‌ها و تنظیمات ارائه‌دهنده مدل زبانی و جاسازی انتخابی شما هستند. مهم است که این کلیدها به‌روز و صحیح باشند در غیر این صورت AnythingLLM به درستی کار نخواهد کرد.", provider: "ارائه‌دهنده مدل زبانی", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "ترجیحات مدل رونویسی", description: "این‌ها اعتبارنامه‌ها و تنظیمات ارائه‌دهنده مدل رونویسی انتخابی شما هستند. مهم است که این کلیدها به‌روز و صحیح باشند در غیر این صورت فایل‌های رسانه و صوتی رونویسی نخواهند شد.", provider: "ارائه‌دهنده رونویسی", "warn-start": "استفاده از مدل محلی Whisper روی دستگاه‌هایی با RAM یا CPU محدود می‌تواند هنگام پردازش فایل‌های رسانه‌ای باعث توقف AnythingLLM شود.", "warn-recommend": "ما حداقل ۲ گیگابایت RAM و آپلود فایل‌های کمتر از ۱۰ مگابایت را توصیه می‌کنیم.", "warn-end": "مدل داخلی در اولین استفاده به صورت خودکار دانلود خواهد شد.", }, embedding: { title: "ترجیحات جاسازی", "desc-start": "هنگام استفاده از یک LLM که به طور پیش‌فرض از موتور جاسازی پشتیبانی نمی‌کند - ممکن است نیاز به تعیین اعتبارنامه‌های اضافی برای جاسازی متن داشته باشید.", "desc-end": "جاسازی فرآیند تبدیل متن به بردارها است. این اعتبارنامه‌ها برای تبدیل فایل‌ها و درخواست‌های شما به فرمتی که AnythingLLM بتواند پردازش کند، ضروری هستند.", provider: { title: "ارائه‌دهنده جاسازی", }, }, text: { title: "تقسیم متن و تکه‌بندی", "desc-start": "تقسیم متن به شما امکان می‌دهد اسناد بزرگ را به بخش‌های کوچک‌تر تقسیم کنید که برای جاسازی و پردازش مناسب‌تر هستند.", "desc-end": "سعی کنید تعادلی بین اندازه بخش و همپوشانی ایجاد کنید تا از دست رفتن اطلاعات را به حداقل برسانید.", size: { title: "حداکثر اندازه بخش", description: "این حداکثر تعداد کاراکترهایی است که می‌تواند در یک بردار وجود داشته باشد.", recommend: "حداکثر طول مدل جاسازی", }, overlap: { title: "همپوشانی بخش‌های متن", description: "این حداکثر همپوشانی کاراکترها است که در هنگام تکه‌بندی بین دو بخش متن مجاور رخ می‌دهد.", }, }, vector: { title: "پایگاه داده برداری", description: "این‌ها اعتبارنامه‌ها و تنظیمات نحوه عملکرد نمونه AnythingLLM شما هستند. مهم است که این کلیدها به‌روز و صحیح باشند.", provider: { title: "ارائه‌دهنده پایگاه داده برداری", description: "برای LanceDB نیازی به پیکربندی نیست.", }, }, embeddable: { title: "جاسازی گفتگو", description: "جاسازی گفتگو به شما امکان می‌دهد گفتگوی فضای کاری را در وب‌سایت یا برنامه خود قرار دهید.", create: "ایجاد جاسازی جدید", table: { workspace: "فضای کاری", chats: "گفتگوهای ارسال شده", active: "دامنه‌های فعال", created: null, }, }, "embed-chats": { title: "گفتگوهای جاسازی شده", export: "خروجی‌گیری", description: "این لیست تمام گفتگوها و پیام‌های ثبت شده از هر جاسازی که منتشر کرده‌اید را نشان می‌دهد.", table: { embed: "جاسازی", sender: "فرستنده", message: "پیام", response: "پاسخ", at: "زمان ارسال", }, }, event: { title: "گزارش رویدادها", description: "مشاهده تمام اقدامات و رویدادهای در حال وقوع در این نمونه برای نظارت.", clear: "پاک کردن گزارش رویدادها", table: { type: "نوع رویداد", user: "کاربر", occurred: "زمان وقوع", }, }, privacy: { title: "حریم خصوصی و مدیریت داده‌ها", description: "این پیکربندی شما برای نحوه مدیریت داده‌ها توسط ارائه‌دهندگان شخص ثالث متصل و AnythingLLM است.", llm: "انتخاب مدل زبانی", embedding: "ترجیحات جاسازی", vector: "پایگاه داده برداری", anonymous: "ارسال تله‌متری ناشناس فعال است", }, connectors: { "search-placeholder": null, "no-connectors": null, github: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, gitlab: { name: null, description: null, URL: null, URL_explained: null, token: null, optional: null, token_explained: null, token_description: null, token_explained_start: null, token_explained_link1: null, token_explained_middle: null, token_explained_link2: null, token_explained_end: null, fetch_issues: null, ignores: null, git_ignore: null, task_explained: null, branch: null, branch_loading: null, branch_explained: null, token_information: null, token_personal: null, }, youtube: { name: null, description: null, URL: null, URL_explained_start: null, URL_explained_link: null, URL_explained_end: null, task_explained: null, language: null, language_explained: null, loading_languages: null, }, "website-depth": { name: null, description: null, URL: null, URL_explained: null, depth: null, depth_explained: null, max_pages: null, max_pages_explained: null, task_explained: null, }, confluence: { name: null, description: null, deployment_type: null, deployment_type_explained: null, base_url: null, base_url_explained: null, space_key: null, space_key_explained: null, username: null, username_explained: null, auth_type: null, auth_type_explained: null, auth_type_username: null, auth_type_personal: null, token: null, token_explained_start: null, token_explained_link: null, token_desc: null, pat_token: null, pat_token_explained: null, task_explained: null, bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: null, "data-connectors": null, "desktop-only": null, dismiss: null, editing: null, }, directory: { "my-documents": null, "new-folder": null, "search-document": null, "no-documents": null, "move-workspace": null, name: null, "delete-confirmation": null, "removing-message": null, "move-success": null, date: null, type: null, no_docs: null, select_all: null, deselect_all: null, remove_selected: null, costs: null, save_embed: null, }, upload: { "processor-offline": null, "processor-offline-desc": null, "click-upload": null, "file-types": null, "or-submit-link": null, "placeholder-link": null, fetching: null, "fetch-website": null, "privacy-notice": null, }, pinning: { what_pinning: null, pin_explained_block1: null, pin_explained_block2: null, pin_explained_block3: null, accept: null, }, watching: { what_watching: null, watch_explained_block1: null, watch_explained_block2: null, watch_explained_block3_start: null, watch_explained_block3_link: null, watch_explained_block3_end: null, accept: null, }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: null, get_started: null, get_started_default: null, upload: null, or: null, send_chat: null, send_message: null, attach_file: null, slash: null, agents: null, text_size: null, microphone: null, send: null, attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: null, profile_picture: null, remove_profile_picture: null, username: null, username_description: null, new_password: null, password_description: null, cancel: null, update_account: null, theme: null, language: null, failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null, description: null, action: null, }, define_slash_command: { title: null, description: null, action: null, }, visit_community: { title: null, description: null, action: null, }, }, }, quickLinks: { title: null, sendChat: null, embedDocument: null, createWorkspace: null, }, exploreMore: { title: null, features: { customAgents: { title: null, description: null, primaryAction: null, secondaryAction: null, }, slashCommands: { title: null, description: null, primaryAction: null, secondaryAction: null, }, systemPrompts: { title: null, description: null, primaryAction: null, secondaryAction: null, }, }, }, announcements: { title: null, }, resources: { title: null, links: { docs: null, star: null, }, keyboardShortcuts: null, }, }, "keyboard-shortcuts": { title: null, shortcuts: { settings: null, workspaceSettings: null, home: null, workspaces: null, apiKeys: null, llmPreferences: null, chatSettings: null, help: null, showLLMSelector: null, }, }, community_hub: { publish: { system_prompt: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, public_description: null, private_description: null, publish_button: null, submitting: null, submit: null, prompt_label: null, prompt_description: null, prompt_placeholder: null, }, agent_flow: { public_description: null, private_description: null, success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null, description_label: null, description_description: null, tags_label: null, tags_description: null, tags_placeholder: null, visibility_label: null, publish_button: null, submitting: null, submit: null, privacy_note: null, }, generic: { unauthenticated: { title: null, description: null, button: null, }, }, slash_command: { success_title: null, success_description: null, success_thank_you: null, view_on_hub: null, modal_title: null, name_label: null, name_description: null, name_placeholder: null,
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/ru/common.js
frontend/src/locales/ru/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Добро пожаловать в", getStarted: "Начать", }, llm: { title: "Предпочитаемые LLM", description: "AnythingLLM может работать с различными провайдерами LLM. Этот сервис будет обеспечивать обработку чата.", }, userSetup: { title: "Настройка пользователя", description: "Настройте параметры пользователя.", howManyUsers: "Сколько пользователей будут использовать этот экземпляр?", justMe: "Только я", myTeam: "Моя команда", instancePassword: "Пароль экземпляра", setPassword: "Хотите установить пароль?", passwordReq: "Пароль должен содержать не менее 8 символов.", passwordWarn: "Важно сохранить этот пароль, так как способа его восстановления не существует.", adminUsername: "Имя пользователя для учётной записи администратора", adminUsernameReq: "Имя пользователя должно состоять не менее чем из 6 символов и содержать только строчные буквы, цифры, символы подчеркивания и дефисы без пробелов.", adminPassword: "Пароль для учётной записи администратора", adminPasswordReq: "Пароль должен содержать не менее 8 символов.", teamHint: "По умолчанию, вы будете единственным администратором. После завершения настройки вы сможете создавать учётные записи и приглашать других пользователей или администраторов. Не потеряйте пароль, так как только администраторы могут его сбросить.", }, data: { title: "Обработка данных и конфиденциальность", description: "Мы стремимся обеспечить прозрачность и контроль в отношении ваших персональных данных.", settingsHint: "Эти настройки можно изменить в любое время в настройках.", }, survey: { title: "Добро пожаловать в AnythingLLM", description: "Помогите нам сделать AnythingLLM, созданным с учётом ваших потребностей (необязательно).", email: "Какой у вас адрес электронной почты?", useCase: "Для чего вы будете использовать AnythingLLM?", useCaseWork: "Для работы", useCasePersonal: "Для личного использования", useCaseOther: "Другое", comment: "Откуда вы узнали о AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube и т.д. — сообщите, где вы о нас узнали!", skip: "Пропустить опрос", thankYou: "Спасибо за ваш отзыв!", }, workspace: { title: "Создайте ваше первое рабочее пространство", description: "Создайте ваше первое рабочее пространство и начните работу с AnythingLLM.", }, }, common: { "workspaces-name": "Имя рабочих пространств", error: "ошибка", success: "успех", user: "Пользователь", selection: "Выбор модели", saving: "Сохранение...", save: "Сохранить изменения", previous: "Предыдущая страница", next: "Следующая страница", optional: "Необязательный", yes: "Да", no: "Нет", search: null, }, settings: { title: "Настройки экземпляра", system: "Системные настройки", invites: "Приглашение", users: "Пользователи", workspaces: "Рабочие пространства", "workspace-chats": "Чат рабочего пространства", customization: "Внешний вид", "api-keys": "API ключи", llm: "Предпочтение LLM", transcription: "Модель транскрипции", embedder: "Настройки встраивания", "text-splitting": "Разделение и сегментация текста", "voice-speech": "Голос и Речь", "vector-database": "Векторная база данных", embeds: "Виджеты встраивания чата", "embed-chats": "История встраивания чатов", security: "Безопасность", "event-logs": "Журналы событий", privacy: "Конфиденциальность и данные", "ai-providers": "Поставщики ИИ", "agent-skills": "Навыки агента", admin: "Администратор", tools: "Инструменты", "experimental-features": "Экспериментальные функции", contact: "Связаться с Поддержкой", "browser-extension": "Расширение браузера", "system-prompt-variables": "Переменные системного запроса", interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Добро пожаловать в", "placeholder-username": "Имя пользователя", "placeholder-password": "Пароль", login: "Войти", validating: "Проверка...", "forgot-pass": "Забыли пароль", reset: "Сбросить", }, "sign-in": { start: "Войти в ваш", end: "аккаунт.", }, "password-reset": { title: "Сброс пароля", description: "Предоставьте необходимую информацию ниже, чтобы сбросить ваш пароль.", "recovery-codes": "Коды восстановления", "recovery-code": "Код восстановления {{index}}", "back-to-login": "Вернуться к входу", }, }, "new-workspace": { title: "Новая Рабочая Область", placeholder: "Моя Рабочая Область", }, "workspaces—settings": { general: "Общие настройки", chat: "Настройки чата", vector: "Векторная база данных", members: "Участники", agent: "Конфигурация агента", }, general: { vector: { title: "Количество векторов", description: "Общее количество векторов в вашей векторной базе данных.", }, names: { description: "Это изменит только отображаемое имя вашего рабочего пространства.", }, message: { title: "Предлагаемые сообщения чата", description: "Настройте сообщения, которые будут предложены пользователям вашего рабочего пространства.", add: "Добавить новое сообщение", save: "Сохранить сообщения", heading: "Объясните мне", body: "преимущества AnythingLLM", }, pfp: { title: "Изображение профиля помощника", description: "Настройте изображение профиля помощника для этого рабочего пространства.", image: "Изображение рабочего пространства", remove: "Удалить изображение рабочего пространства", }, delete: { title: "Удалить Рабочее Пространство", description: "Удалите это рабочее пространство и все его данные. Это удалит рабочее пространство для всех пользователей.", delete: "Удалить рабочее пространство", deleting: "Удаление рабочего пространства...", "confirm-start": "Вы собираетесь удалить весь ваш", "confirm-end": "рабочее пространство. Это удалит все векторные встраивания в вашей векторной базе данных.\n\nОригинальные исходные файлы останутся нетронутыми. Это действие необратимо.", }, }, chat: { llm: { title: "Поставщик LLM рабочего пространства", description: "Конкретный поставщик и модель LLM, которые будут использоваться для этого рабочего пространства. По умолчанию используется системный поставщик и настройки LLM.", search: "Искать всех поставщиков LLM", }, model: { title: "Модель чата рабочего пространства", description: "Конкретная модель чата, которая будет использоваться для этого рабочего пространства. Если пусто, будет использоваться системное предпочтение LLM.", wait: "-- ожидание моделей --", }, mode: { title: "Режим чата", chat: { title: "Чат", "desc-start": "будет предоставлять ответы с общей информацией LLM", and: "и", "desc-end": "найденный контекст документов.", }, query: { title: "Запрос", "desc-start": "будет предоставлять ответы", only: "только", "desc-end": "если найден контекст документов.", }, }, history: { title: "История чата", "desc-start": "Количество предыдущих чатов, которые будут включены в краткосрочную память ответа.", recommend: "Рекомендуем 20.", "desc-end": "Любое количество более 45 может привести к непрерывным сбоям чата в зависимости от размера сообщений.", }, prompt: { title: "Подсказка", description: "Подсказка, которая будет использоваться в этом рабочем пространстве. Определите контекст и инструкции для AI для создания ответа. Вы должны предоставить тщательно разработанную подсказку, чтобы AI мог генерировать релевантный и точный ответ.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Ответ об отказе в режиме запроса", "desc-start": "В режиме", query: "запроса", "desc-end": "вы можете вернуть пользовательский ответ об отказе, если контекст не найден.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "Температура LLM", "desc-start": "Этот параметр контролирует, насколько 'креативными' будут ответы вашего LLM.", "desc-end": "Чем выше число, тем более креативные ответы. Для некоторых моделей это может привести к несвязным ответам при слишком высоких настройках.", hint: "Большинство LLM имеют различные допустимые диапазоны значений. Проконсультируйтесь с вашим поставщиком LLM для получения этой информации.", }, }, "vector-workspace": { identifier: "Идентификатор векторной базы данных", snippets: { title: "Максимальное количество контекстных фрагментов", description: "Этот параметр контролирует максимальное количество контекстных фрагментов, которые будут отправлены LLM для каждого чата или запроса.", recommend: "Рекомендуемое количество: 4", }, doc: { title: "Порог сходства документов", description: "Минимальная оценка сходства, необходимая для того, чтобы источник считался связанным с чатом. Чем выше число, тем более схожим должен быть источник с чатом.", zero: "Без ограничений", low: "Низкий (оценка сходства ≥ .25)", medium: "Средний (оценка сходства ≥ .50)", high: "Высокий (оценка сходства ≥ .75)", }, reset: { reset: "Сброс векторной базы данных", resetting: "Очистка векторов...", confirm: "Вы собираетесь сбросить векторную базу данных этого рабочего пространства. Это удалит все текущие векторные встраивания.\n\nОригинальные исходные файлы останутся нетронутыми. Это действие необратимо.", error: "Не удалось сбросить векторную базу данных рабочего пространства!", success: "Векторная база данных рабочего пространства была сброшена!", }, }, agent: { "performance-warning": "Производительность LLM, не поддерживающих вызовы инструментов, сильно зависит от возможностей и точности модели. Некоторые способности могут быть ограничены или не функционировать.", provider: { title: "Поставщик LLM агента рабочего пространства", description: "Конкретный поставщик и модель LLM, которые будут использоваться для агента @agent этого рабочего пространства.", }, mode: { chat: { title: "Модель чата агента рабочего пространства", description: "Конкретная модель чата, которая будет использоваться для агента @agent этого рабочего пространства.", }, title: "Модель агента рабочего пространства", description: "Конкретная модель LLM, которая будет использоваться для агента @agent этого рабочего пространства.", wait: "-- ожидание моделей --", }, skill: { title: "Навыки агента по умолчанию", description: "Улучшите естественные способности агента по умолчанию с помощью этих предустановленных навыков. Эта настройка применяется ко всем рабочим пространствам.", rag: { title: "RAG и долговременная память", description: "Позвольте агенту использовать ваши локальные документы для ответа на запрос или попросите агента 'запомнить' части контента для долгосрочного извлечения из памяти.", }, view: { title: "Просмотр и резюмирование документов", description: "Позвольте агенту перечислять и резюмировать содержание файлов рабочего пространства, которые в данный момент встроены.", }, scrape: { title: "Сбор данных с веб-сайтов", description: "Позвольте агенту посещать и собирать содержимое веб-сайтов.", }, generate: { title: "Создание диаграмм", description: "Включите возможность создания различных типов диаграмм из предоставленных данных или данных, указанных в чате.", }, save: { title: "Создание и сохранение файлов в браузер", description: "Включите возможность создания и записи файлов, которые можно сохранить и загрузить в вашем браузере.", }, web: { title: "Поиск в Интернете и просмотр в реальном времени", "desc-start": "Позвольте вашему агенту искать в Интернете для ответа на ваши вопросы, подключаясь к поставщику поиска (SERP).", "desc-end": "Поиск в Интернете во время сессий агента не будет работать, пока это не настроено.", }, }, }, recorded: { title: "Чаты рабочего пространства", description: "Это все записанные чаты и сообщения, отправленные пользователями, упорядоченные по дате создания.", export: "Экспорт", table: { id: "Идентификатор", by: "Отправлено", workspace: "Рабочее пространство", prompt: "Подсказка", response: "Ответ", at: "Отправлено в", }, }, api: { title: "API ключи", description: "API ключи позволяют владельцу программно получать доступ к этому экземпляру AnythingLLM и управлять им.", link: "Прочитать документацию по API", generate: "Создать новый API ключ", table: { key: "API ключ", by: "Создано", created: "Создано", }, }, llm: { title: "Предпочтение LLM", description: "Это учетные данные и настройки для вашего предпочтительного поставщика чата и встраивания LLM. Важно, чтобы эти ключи были актуальными и правильными, иначе AnythingLLM не будет работать должным образом.", provider: "Поставщик LLM", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Предпочтение модели транскрипции", description: "Это учетные данные и настройки для вашего предпочтительного поставщика моделей транскрипции. Важно, чтобы эти ключи были актуальными и правильными, иначе медиафайлы и аудио не будут транскрибироваться.", provider: "Поставщик транскрипции", "warn-start": "Использование локальной модели whisper на машинах с ограниченной оперативной памятью или процессором может привести к зависанию AnythingLLM при обработке медиафайлов.", "warn-recommend": "Мы рекомендуем минимум 2ГБ оперативной памяти и загружать файлы <10МБ.", "warn-end": "Встроенная модель будет автоматически загружена при первом использовании.", }, embedding: { title: "Настройки встраивания", "desc-start": "При использовании LLM, который не поддерживает встроенный механизм встраивания - возможно, потребуется дополнительно указать учетные данные для встраивания текста.", "desc-end": "Встраивание - это процесс превращения текста в векторы. Эти учетные данные необходимы для превращения ваших файлов и подсказок в формат, который AnythingLLM может использовать для обработки.", provider: { title: "Поставщик встраивания", }, }, text: { title: "Настройки разделения и сегментации текста", "desc-start": "Иногда может понадобиться изменить стандартный способ разделения и сегментации новых документов перед их вставкой в векторную базу данных.", "desc-end": "Следует изменять этот параметр только при полном понимании работы разделения текста и его побочных эффектов.", size: { title: "Размер сегмента текста", description: "Это максимальная длина символов, которые могут присутствовать в одном векторе.", recommend: "Максимальная длина модели встраивания составляет", }, overlap: { title: "Перекрытие сегментов текста", description: "Это максимальное перекрытие символов, которое происходит при сегментации между двумя смежными сегментами текста.", }, }, vector: { title: "Векторная база данных", description: "Это учетные данные и настройки для того, как будет функционировать ваш экземпляр AnythingLLM. Важно, чтобы эти ключи были актуальными и правильными.", provider: { title: "Поставщик векторной базы данных", description: "Настройка для LanceDB не требуется.", }, }, embeddable: { title: "Встраиваемые виджеты чата", description: "Встраиваемые виджеты чата - это интерфейсы чата, ориентированные на публичное использование и привязанные к одному рабочему пространству. Они позволяют создавать рабочие пространства, которые затем можно публиковать в Интернете.", create: "Создать встраивание", table: { workspace: "Рабочее пространство", chats: "Отправленные чаты", active: "Активные домены", created: null, }, }, "embed-chats": { title: "Встраивание чатов", export: "Экспорт", description: "Это все записанные чаты и сообщения от любого встраивания, которое вы опубликовали.", table: { embed: "Встраивание", sender: "Отправитель", message: "Сообщение", response: "Ответ", at: "Отправлено в", }, }, event: { title: "Журналы событий", description: "Просматривайте все действия и события, происходящие в этом экземпляре для мониторинга.", clear: "Очистить журналы событий", table: { type: "Тип события", user: "Пользователь", occurred: "Произошло в", }, }, privacy: { title: "Конфиденциальность и обработка данных", description: "Это ваша конфигурация для того, как подключенные сторонние поставщики и AnythingLLM обрабатывают ваши данные.", llm: "Выбор LLM", embedding: "Предпочтение встраивания", vector: "Векторная база данных", anonymous: "Анонимная телеметрия включена", }, connectors: { "search-placeholder": "Поиск коннекторов данных", "no-connectors": "Коннекторы данных не найдены.", github: { name: "Репозиторий GitHub", description: "Импортируйте весь публичный или приватный репозиторий GitHub одним кликом.", URL: "URL репозитория GitHub", URL_explained: "URL репозитория GitHub, который вы хотите собрать.", token: "Токен доступа GitHub", optional: "необязательно", token_explained: "Токен доступа для предотвращения ограничения запросов.", token_explained_start: "Без ", token_explained_link1: "личного токена доступа", token_explained_middle: ", API GitHub может ограничить количество файлов для сбора из-за лимитов запросов. Вы можете ", token_explained_link2: "создать временный токен доступа", token_explained_end: ", чтобы избежать этой проблемы.", ignores: "Игнорирование файлов", git_ignore: "Список в формате .gitignore для исключения определённых файлов при сборе. Нажмите Enter после каждой записи, которую хотите сохранить.", task_explained: "После завершения все файлы будут доступны для внедрения в рабочие пространства через выбор документов.", branch: "Ветка, из которой нужно собрать файлы.", branch_loading: "-- загрузка доступных веток --", branch_explained: "Ветка, из которой нужно собрать файлы.", token_information: "Если не заполнить поле <b>Токен доступа GitHub</b>, этот коннектор данных сможет собрать только <b>файлы верхнего уровня</b> репозитория из-за ограничений публичного API GitHub.", token_personal: "Получите бесплатный личный токен доступа с аккаунтом GitHub здесь.", }, gitlab: { name: "Репозиторий GitLab", description: "Импортируйте весь публичный или приватный репозиторий GitLab одним кликом.", URL: "URL репозитория GitLab", URL_explained: "URL репозитория GitLab, который вы хотите собрать.", token: "Токен доступа GitLab", optional: "необязательно", token_explained: "Токен доступа для предотвращения ограничения запросов.", token_description: "Выберите дополнительные сущности для получения через API GitLab.", token_explained_start: "Без ", token_explained_link1: "личного токена доступа", token_explained_middle: ", API GitLab может ограничить количество файлов для сбора из-за лимитов запросов. Вы можете ", token_explained_link2: "создать временный токен доступа", token_explained_end: ", чтобы избежать этой проблемы.", fetch_issues: "Получать задачи как документы", ignores: "Игнорирование файлов", git_ignore: "Список в формате .gitignore для исключения определённых файлов при сборе. Нажмите Enter после каждой записи, которую хотите сохранить.", task_explained: "После завершения все файлы будут доступны для внедрения в рабочие пространства через выбор документов.", branch: "Ветка, из которой нужно собрать файлы", branch_loading: "-- загрузка доступных веток --", branch_explained: "Ветка, из которой нужно собрать файлы.", token_information:
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/es/common.js
frontend/src/locales/es/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Bienvenido a", getStarted: "Comenzar", }, llm: { title: "Preferencia de LLM", description: "AnythingLLM puede funcionar con muchos proveedores de LLM. Este será el servicio que gestionará el chat.", }, userSetup: { title: "Configuración de usuario", description: "Configura los ajustes de tu usuario.", howManyUsers: "¿Cuántos usuarios utilizarán esta instancia?", justMe: "Solo yo", myTeam: "Mi equipo", instancePassword: "Contraseña de la instancia", setPassword: "¿Deseas establecer una contraseña?", passwordReq: "Las contraseñas deben tener al menos 8 caracteres.", passwordWarn: "Es importante guardar esta contraseña porque no hay método de recuperación.", adminUsername: "Nombre de usuario del administrador", adminUsernameReq: "El nombre de usuario debe tener al menos 6 caracteres y solo puede contener letras minúsculas, números, guiones bajos y guiones sin espacios.", adminPassword: "Contraseña de la cuenta de administrador", adminPasswordReq: "Las contraseñas deben tener al menos 8 caracteres.", teamHint: "Por defecto, serás el único administrador. Una vez completada la incorporación, puedes crear e invitar a otros a ser usuarios o administradores. No pierdas tu contraseña, ya que solo los administradores pueden restablecer las contraseñas.", }, data: { title: "Manejo de datos y privacidad", description: "Estamos comprometidos con la transparencia y el control en lo que respecta a tus datos personales.", settingsHint: "Estos ajustes se pueden reconfigurar en cualquier momento en la configuración.", }, survey: { title: "Bienvenido a AnythingLLM", description: "Ayúdanos a hacer que AnythingLLM se adapte a tus necesidades. Opcional.", email: "¿Cuál es tu correo electrónico?", useCase: "¿Para qué usarás AnythingLLM?", useCaseWork: "Para el trabajo", useCasePersonal: "Para uso personal", useCaseOther: "Otro", comment: "¿Cómo te enteraste de AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. - ¡Haznos saber cómo nos encontraste!", skip: "Omitir encuesta", thankYou: "¡Gracias por tus comentarios!", }, workspace: { title: "Crea tu primer espacio de trabajo", description: "Crea tu primer espacio de trabajo y comienza a usar AnythingLLM.", }, }, common: { "workspaces-name": "Nombre de los espacios de trabajo", error: "error", success: "éxito", user: "Usuario", selection: "Selección de modelo", saving: "Guardando...", save: "Guardar cambios", previous: "Página anterior", next: "Página siguiente", optional: "Opcional", yes: "Sí", no: "No", search: "Buscar", }, settings: { title: "Ajustes de la instancia", system: "Ajustes generales", invites: "Invitaciones", users: "Usuarios", workspaces: "Espacios de trabajo", "workspace-chats": "Chats del espacio de trabajo", customization: "Personalización", interface: "Preferencias de la interfaz de usuario", branding: "Marca y marca blanca", chat: "Chat", "api-keys": "API de desarrollador", llm: "LLM", transcription: "Transcripción", embedder: "Incrustador (Embedder)", "text-splitting": "División de texto y fragmentación", "voice-speech": "Voz y habla", "vector-database": "Base de datos vectorial", embeds: "Incrustaciones de chat", "embed-chats": "Historial de incrustaciones de chat", security: "Seguridad", "event-logs": "Registros de eventos", privacy: "Privacidad y datos", "ai-providers": "Proveedores de IA", "agent-skills": "Habilidades del agente", admin: "Administrador", tools: "Herramientas", "system-prompt-variables": "Variables de prompt del sistema", "experimental-features": "Funciones experimentales", contact: "Contactar con soporte", "browser-extension": "Extensión del navegador", }, login: { "multi-user": { welcome: "Bienvenido a", "placeholder-username": "Nombre de usuario", "placeholder-password": "Contraseña", login: "Iniciar sesión", validating: "Validando...", "forgot-pass": "Olvidé mi contraseña", reset: "Restablecer", }, "sign-in": { start: "Inicia sesión en tu", end: "cuenta.", }, "password-reset": { title: "Restablecimiento de contraseña", description: "Proporciona la información necesaria a continuación para restablecer tu contraseña.", "recovery-codes": "Códigos de recuperación", "recovery-code": "Código de recuperación {{index}}", "back-to-login": "Volver al inicio de sesión", }, }, "main-page": { noWorkspaceError: "Por favor, crea un espacio de trabajo antes de iniciar un chat.", checklist: { title: "Primeros pasos", tasksLeft: "tareas restantes", completed: "¡Estás en camino de convertirte en un experto en AnythingLLM!", dismiss: "cerrar", tasks: { create_workspace: { title: "Crear un espacio de trabajo", description: "Crea tu primer espacio de trabajo para comenzar", action: "Crear", }, send_chat: { title: "Enviar un chat", description: "Inicia una conversación con tu asistente de IA", action: "Chatear", }, embed_document: { title: "Incrustar un documento", description: "Agrega tu primer documento a tu espacio de trabajo", action: "Incrustar", }, setup_system_prompt: { title: "Configurar un prompt del sistema", description: "Configura el comportamiento de tu asistente de IA", action: "Configurar", }, define_slash_command: { title: "Definir un comando de barra", description: "Crea comandos personalizados para tu asistente", action: "Definir", }, visit_community: { title: "Visitar el Centro de la Comunidad", description: "Explora los recursos y plantillas de la comunidad", action: "Explorar", }, }, }, quickLinks: { title: "Enlaces rápidos", sendChat: "Enviar chat", embedDocument: "Incrustar un documento", createWorkspace: "Crear espacio de trabajo", }, exploreMore: { title: "Explorar más funciones", features: { customAgents: { title: "Agentes de IA personalizados", description: "Crea potentes agentes y automatizaciones de IA sin código.", primaryAction: "Chatear usando @agent", secondaryAction: "Crear un flujo de agente", }, slashCommands: { title: "Comandos de barra", description: "Ahorra tiempo e inyecta prompts usando comandos de barra personalizados.", primaryAction: "Crear un comando de barra", secondaryAction: "Explorar en el Centro", }, systemPrompts: { title: "Prompts del sistema", description: "Modifica el prompt del sistema para personalizar las respuestas de IA de un espacio de trabajo.", primaryAction: "Modificar un prompt del sistema", secondaryAction: "Administrar variables de prompt", }, }, }, announcements: { title: "Actualizaciones y anuncios", }, resources: { title: "Recursos", links: { docs: "Documentación", star: "Marcar con una estrella en Github", }, keyboardShortcuts: "Atajos de teclado", }, }, "new-workspace": { title: "Nuevo espacio de trabajo", placeholder: "Mi espacio de trabajo", }, "workspaces—settings": { general: "Ajustes generales", chat: "Ajustes de chat", vector: "Base de datos vectorial", members: "Miembros", agent: "Configuración del agente", }, general: { vector: { title: "Recuento de vectores", description: "Número total de vectores en tu base de datos vectorial.", }, names: { description: "Esto solo cambiará el nombre para mostrar de tu espacio de trabajo.", }, message: { title: "Mensajes de chat sugeridos", description: "Personaliza los mensajes que se sugerirán a los usuarios de tu espacio de trabajo.", add: "Agregar nuevo mensaje", save: "Guardar mensajes", heading: "Explícame", body: "los beneficios de AnythingLLM", }, pfp: { title: "Imagen de perfil del asistente", description: "Personaliza la imagen de perfil del asistente para este espacio de trabajo.", image: "Imagen del espacio de trabajo", remove: "Eliminar imagen del espacio de trabajo", }, delete: { title: "Eliminar espacio de trabajo", description: "Elimina este espacio de trabajo y todos sus datos. Esto eliminará el espacio de trabajo para todos los usuarios.", delete: "Eliminar espacio de trabajo", deleting: "Eliminando espacio de trabajo...", "confirm-start": "Estás a punto de eliminar todo tu", "confirm-end": "espacio de trabajo. Esto eliminará todas las incrustaciones de vectores en tu base de datos vectorial.\n\nLos archivos fuente originales permanecerán intactos. Esta acción es irreversible.", }, }, chat: { llm: { title: "Proveedor de LLM del espacio de trabajo", description: "El proveedor y modelo de LLM específico que se utilizará para este espacio de trabajo. Por defecto, utiliza el proveedor y la configuración de LLM del sistema.", search: "Buscar todos los proveedores de LLM", }, model: { title: "Modelo de chat del espacio de trabajo", description: "El modelo de chat específico que se utilizará para este espacio de trabajo. Si está vacío, utilizará la preferencia de LLM del sistema.", wait: "-- esperando modelos --", }, mode: { title: "Modo de chat", chat: { title: "Chat", "desc-start": "proporcionará respuestas con el conocimiento general del LLM", and: "y", "desc-end": "el contexto del documento que se encuentre.", }, query: { title: "Consulta", "desc-start": "proporcionará respuestas", only: "solo", "desc-end": "si se encuentra contexto del documento.", }, }, history: { title: "Historial de chat", "desc-start": "El número de chats anteriores que se incluirán en la memoria a corto plazo de la respuesta.", recommend: "Recomendado 20.", "desc-end": "Cualquier valor superior a 45 es probable que provoque fallos continuos en el chat dependiendo del tamaño del mensaje.", }, prompt: { title: "Prompt del sistema", description: "El prompt que se utilizará en este espacio de trabajo. Define el contexto y las instrucciones para que la IA genere una respuesta. Debes proporcionar un prompt cuidadosamente elaborado para que la IA pueda generar una respuesta relevante y precisa.", history: { title: "Historial de prompts del sistema", clearAll: "Borrar todo", noHistory: "No hay historial de prompts del sistema disponible", restore: "Restaurar", delete: "Eliminar", publish: "Publicar en el Centro de la Comunidad", deleteConfirm: "¿Estás seguro de que quieres eliminar este elemento del historial?", clearAllConfirm: "¿Estás seguro de que quieres borrar todo el historial? Esta acción no se puede deshacer.", expand: "Expandir", }, }, refusal: { title: "Respuesta de rechazo en modo de consulta", "desc-start": "Cuando estés en modo de", query: "consulta", "desc-end": ", es posible que desees devolver una respuesta de rechazo personalizada cuando no se encuentre contexto.", "tooltip-title": "¿Por qué veo esto?", "tooltip-description": "Estás en modo de consulta, que solo utiliza información de tus documentos. Cambia al modo de chat para conversaciones más flexibles, o haz clic aquí para visitar nuestra documentación y obtener más información sobre los modos de chat.", }, temperature: { title: "Temperatura del LLM", "desc-start": 'Esta configuración controla cuán "creativas" serán tus respuestas del LLM.', "desc-end": "Cuanto mayor sea el número, más creativo. Para algunos modelos, esto puede llevar a respuestas incoherentes si se establece un valor demasiado alto.", hint: "La mayoría de los LLM tienen varios rangos aceptables de valores válidos. Consulta a tu proveedor de LLM para obtener esa información.", }, }, "vector-workspace": { identifier: "Identificador de la base de datos vectorial", snippets: { title: "Fragmentos de contexto máximos", description: "Esta configuración controla la cantidad máxima de fragmentos de contexto que se enviarán al LLM por chat o consulta.", recommend: "Recomendado: 4", }, doc: { title: "Umbral de similitud de documentos", description: "La puntuación de similitud mínima requerida para que una fuente se considere relacionada con el chat. Cuanto mayor sea el número, más similar debe ser la fuente al chat.", zero: "Sin restricción", low: "Bajo (puntuación de similitud ≥ .25)", medium: "Medio (puntuación de similitud ≥ .50)", high: "Alto (puntuación de similitud ≥ .75)", }, reset: { reset: "Restablecer base de datos vectorial", resetting: "Borrando vectores...", confirm: "Estás a punto de restablecer la base de datos vectorial de este espacio de trabajo. Esto eliminará todas las incrustaciones de vectores actualmente incrustadas.\n\nLos archivos fuente originales permanecerán intactos. Esta acción es irreversible.", error: "¡No se pudo restablecer la base de datos vectorial del espacio de trabajo!", success: "¡La base de datos vectorial del espacio de trabajo se restableció!", }, }, agent: { "performance-warning": "El rendimiento de los LLM que no admiten explícitamente la llamada a herramientas depende en gran medida de las capacidades y la precisión del modelo. Algunas habilidades pueden ser limitadas o no funcionales.", provider: { title: "Proveedor de LLM del agente del espacio de trabajo", description: "El proveedor y modelo de LLM específico que se utilizará para el agente @agent de este espacio de trabajo.", }, mode: { chat: { title: "Modelo de chat del agente del espacio de trabajo", description: "El modelo de chat específico que se utilizará para el agente @agent de este espacio de trabajo.", }, title: "Modelo de agente del espacio de trabajo", description: "El modelo de LLM específico que se utilizará para el agente @agent de este espacio de trabajo.", wait: "-- esperando modelos --", }, skill: { title: "Habilidades predeterminadas del agente", description: "Mejora las habilidades naturales del agente predeterminado con estas habilidades preconstruidas. Esta configuración se aplica a todos los espacios de trabajo.", rag: { title: "RAG y memoria a largo plazo", description: 'Permite que el agente aproveche tus documentos locales para responder una consulta o pídele al agente que "recuerde" fragmentos de contenido para la recuperación de memoria a largo plazo.', }, view: { title: "Ver y resumir documentos", description: "Permite que el agente liste y resuma el contenido de los archivos del espacio de trabajo actualmente incrustados.", }, scrape: { title: "Extraer sitios web", description: "Permite que el agente visite y extraiga el contenido de los sitios web.", }, generate: { title: "Generar gráficos", description: "Habilita al agente predeterminado para generar varios tipos de gráficos a partir de datos proporcionados o dados en el chat.", }, save: { title: "Generar y guardar archivos en el navegador", description: "Habilita al agente predeterminado para generar y escribir en archivos que se guardan y se pueden descargar en tu navegador.", }, web: { title: "Búsqueda y navegación web en vivo", "desc-start": "Habilita a tu agente para buscar en la web para responder tus preguntas conectándose a un proveedor de búsqueda web (SERP).", "desc-end": "La búsqueda web durante las sesiones del agente no funcionará hasta que esto esté configurado.", }, }, }, recorded: { title: "Chats del espacio de trabajo", description: "Estos son todos los chats y mensajes grabados que han sido enviados por los usuarios, ordenados por su fecha de creación.", export: "Exportar", table: { id: "ID", by: "Enviado por", workspace: "Espacio de trabajo", prompt: "Prompt", response: "Respuesta", at: "Enviado el", }, }, customization: { interface: { title: "Preferencias de la interfaz de usuario", description: "Establece tus preferencias de la interfaz de usuario para AnythingLLM.", }, branding: { title: "Marca y marca blanca", description: "Personaliza tu instancia de AnythingLLM con tu propia marca.", }, chat: { title: "Chat", description: "Establece tus preferencias de chat para AnythingLLM.", auto_submit: { title: "Envío automático de entrada de voz", description: "Enviar automáticamente la entrada de voz después de un período de silencio", }, auto_speak: { title: "Hablar respuestas automáticamente", description: "Hablar automáticamente las respuestas de la IA", }, spellcheck: { title: "Habilitar corrector ortográfico", description: "Habilitar o deshabilitar el corrector ortográfico en el campo de entrada del chat", }, }, items: { theme: { title: "Tema", description: "Selecciona tu tema de color preferido para la aplicación.", }, "show-scrollbar": { title: "Mostrar barra de desplazamiento", description: "Habilitar o deshabilitar la barra de desplazamiento en la ventana de chat.", }, "support-email": { title: "Correo electrónico de soporte", description: "Establece la dirección de correo electrónico de soporte a la que los usuarios pueden acceder cuando necesiten ayuda.", }, "app-name": { title: "Nombre", description: "Establece un nombre que se mostrará en la página de inicio de sesión para todos los usuarios.", }, "chat-message-alignment": { title: "Alineación de mensajes de chat", description: "Selecciona el modo de alineación de mensajes cuando utilices la interfaz de chat.", }, "display-language": { title: "Idioma de visualización", description: "Selecciona el idioma preferido para renderizar la interfaz de usuario de AnythingLLM, cuando las traducciones estén disponibles.", }, logo: { title: "Logotipo de la marca", description: "Sube tu logotipo personalizado para mostrarlo en todas las páginas.", add: "Agregar un logotipo personalizado", recommended: "Tamaño recomendado: 800 x 200", remove: "Eliminar", replace: "Reemplazar", }, "welcome-messages": { title: "Mensajes de bienvenida", description: "Personaliza los mensajes de bienvenida que se muestran a tus usuarios. Solo los usuarios no administradores verán estos mensajes.", new: "Nuevo", system: "sistema", user: "usuario", message: "mensaje", assistant: "Asistente de chat de AnythingLLM", "double-click": "Doble clic para editar...", save: "Guardar mensajes", }, "browser-appearance": { title: "Apariencia del navegador", description: "Personaliza la apariencia de la pestaña y el título del navegador cuando la aplicación está abierta.", tab: { title: "Título", description: "Establece un título de pestaña personalizado cuando la aplicación está abierta en un navegador.", }, favicon: { title: "Favicon", description: "Usa un favicon personalizado para la pestaña del navegador.", }, }, "sidebar-footer": { title: "Elementos del pie de página de la barra lateral", description: "Personaliza los elementos del pie de página que se muestran en la parte inferior de la barra lateral.", icon: "Icono", link: "Enlace", }, "render-html": { title: null, description: null, }, }, }, api: { title: "Claves de API", description: "Las claves de API permiten al titular acceder y administrar programáticamente esta instancia de AnythingLLM.", link: "Leer la documentación de la API", generate: "Generar nueva clave de API", table: { key: "Clave de API", by: "Creado por", created: "Creado", }, }, llm: { title: "Preferencia de LLM", description: "Estas son las credenciales y la configuración de tu proveedor preferido de chat e incrustación de LLM. Es importante que estas claves estén actualizadas y sean correctas, de lo contrario, AnythingLLM no funcionará correctamente.", provider: "Proveedor de LLM", providers: { azure_openai: { azure_service_endpoint: "Punto de conexión del servicio de Azure", api_key: "Clave de API", chat_deployment_name: "Nombre de la implementación del chat", chat_model_token_limit: "Límite de tokens del modelo de chat", model_type: "Tipo de modelo", default: "Predeterminado", reasoning: "Razonamiento", model_type_tooltip: null, }, }, }, transcription: { title: "Preferencia del modelo de transcripción", description: "Estas son las credenciales y la configuración de tu proveedor de modelo de transcripción preferido. Es importante que estas claves estén actualizadas y sean correctas, de lo contrario, los archivos multimedia y el audio no se transcribirán.", provider: "Proveedor de transcripción", "warn-start": "El uso del modelo local de Whisper en máquinas con RAM o CPU limitadas puede detener AnythingLLM al procesar archivos multimedia.", "warn-recommend": "Recomendamos al menos 2 GB de RAM y subir archivos de menos de 10 MB.", "warn-end": "El modelo integrado se descargará automáticamente en el primer uso.", }, embedding: { title: "Preferencia de incrustación", "desc-start": "Cuando se utiliza un LLM que no admite de forma nativa un motor de incrustación, es posible que debas especificar credenciales adicionales para la incrustación de texto.", "desc-end": "La incrustación es el proceso de convertir texto en vectores. Estas credenciales son necesarias para convertir tus archivos y prompts en un formato que AnythingLLM pueda usar para procesar.", provider: { title: "Proveedor de incrustación", }, }, text: { title: "Preferencias de división de texto y fragmentación", "desc-start": "A veces, es posible que desees cambiar la forma predeterminada en que se dividen y fragmentan los nuevos documentos antes de insertarlos en tu base de datos vectorial.", "desc-end": "Solo debes modificar esta configuración si comprendes cómo funciona la división de texto y sus efectos secundarios.", size: { title: "Tamaño del fragmento de texto", description: "Esta es la longitud máxima de caracteres que puede estar presente en un solo vector.", recommend: "La longitud máxima del modelo de incrustación es", }, overlap: { title: "Superposición de fragmentos de texto", description: "Esta es la superposición máxima de caracteres que se produce durante la fragmentación entre dos fragmentos de texto adyacentes.", }, }, vector: { title: "Base de datos vectorial", description: "Estas son las credenciales y la configuración de cómo funcionará tu instancia de AnythingLLM. Es importante que estas claves estén actualizadas y sean correctas.", provider: { title: "Proveedor de base de datos vectorial", description: "No se necesita configuración para LanceDB.", }, }, embeddable: { title: "Widgets de chat incrustables", description: "Los widgets de chat incrustables son interfaces de chat de cara al público que están vinculadas a un único espacio de trabajo. Estos te permiten crear espacios de trabajo que luego puedes publicar para todo el mundo.", create: "Crear incrustación", table: { workspace: "Espacio de trabajo", chats: "Chats enviados", active: "Dominios activos", created: "Creado", }, }, "embed-chats": { title: "Historial de chat incrustado", export: "Exportar", description: "Estos son todos los chats y mensajes grabados de cualquier incrustación que hayas publicado.", table: { embed: "Incrustación", sender: "Remitente", message: "Mensaje", response: "Respuesta", at: "Enviado el", }, }, event: { title: "Registros de eventos", description: "Ve todas las acciones y eventos que ocurren en esta instancia para su supervisión.", clear: "Borrar registros de eventos", table: { type: "Tipo de evento", user: "Usuario", occurred: "Ocurrido el", }, }, privacy: { title: "Privacidad y manejo de datos", description: "Esta es tu configuración sobre cómo los proveedores de terceros conectados y AnythingLLM manejan tus datos.", llm: "Selección de LLM", embedding: "Preferencia de incrustación", vector: "Base de datos vectorial", anonymous: "Telemetría anónima habilitada", }, connectors: { "search-placeholder": "Buscar conectores de datos", "no-connectors": "No se encontraron conectores de datos.", obsidian: { name: "Obsidian", description: "Importa el vault de Obsidian con un solo clic.", vault_location: "Ubicación del vault", vault_description: "Selecciona la carpeta de tu vault de Obsidian para importar todas las notas y sus conexiones.", selected_files: "Se encontraron {{count}} archivos markdown", importing: "Importando vault...", import_vault: "Importar vault", processing_time: "Esto puede llevar un tiempo dependiendo del tamaño de tu vault.", vault_warning: "Para evitar conflictos, asegúrate de que tu vault de Obsidian no esté abierto actualmente.", }, github: { name: "Repositorio de GitHub", description: "Importa un repositorio completo de GitHub, público o privado, con un solo clic.", URL: "URL del repositorio de GitHub", URL_explained: "URL del repositorio de GitHub que deseas recopilar.", token: "Token de acceso de GitHub", optional: "opcional", token_explained: "Token de acceso para evitar la limitación de velocidad.", token_explained_start: "Sin un ", token_explained_link1: "Token de acceso personal", token_explained_middle: ", la API de GitHub puede limitar el número de archivos que se pueden recopilar debido a los límites de velocidad. Puedes ", token_explained_link2: "crear un token de acceso temporal", token_explained_end: " para evitar este problema.", ignores: "Archivos ignorados", git_ignore: "Lista en formato .gitignore para ignorar archivos específicos durante la recopilación. Presiona Intro después de cada entrada que quieras guardar.", task_explained: "Una vez completado, todos los archivos estarán disponibles para incrustar en los espacios de trabajo en el selector de documentos.", branch: "Rama de la que deseas recopilar archivos.", branch_loading: "-- cargando ramas disponibles --", branch_explained: "Rama de la que deseas recopilar archivos.", token_information: "Sin completar el <b>Token de acceso de GitHub</b>, este conector de datos solo podrá recopilar los archivos de <b>nivel superior</b> del repositorio debido a los límites de velocidad de la API pública de GitHub.", token_personal: "Obtén un token de acceso personal gratuito con una cuenta de GitHub aquí.", }, gitlab: { name: "Repositorio de GitLab", description: "Importa un repositorio completo de GitLab, público o privado, con un solo clic.", URL: "URL del repositorio de GitLab", URL_explained: "URL del repositorio de GitLab que deseas recopilar.", token: "Token de acceso de GitLab", optional: "opcional", token_explained: "Token de acceso para evitar la limitación de velocidad.", token_description: "Selecciona entidades adicionales para obtener de la API de GitLab.", token_explained_start: "Sin un ", token_explained_link1: "Token de acceso personal", token_explained_middle: ", la API de GitLab puede limitar el número de archivos que se pueden recopilar debido a los límites de velocidad. Puedes ", token_explained_link2: "crear un token de acceso temporal", token_explained_end: " para evitar este problema.", fetch_issues: "Obtener issues como documentos", ignores: "Archivos ignorados", git_ignore: "Lista en formato .gitignore para ignorar archivos específicos durante la recopilación. Presiona Intro después de cada entrada que quieras guardar.", task_explained: "Una vez completado, todos los archivos estarán disponibles para incrustar en los espacios de trabajo en el selector de documentos.", branch: "Rama de la que deseas recopilar archivos", branch_loading: "-- cargando ramas disponibles --", branch_explained: "Rama de la que deseas recopilar archivos.", token_information: "Sin completar el <b>Token de acceso de GitLab</b>, este conector de datos solo podrá recopilar los archivos de <b>nivel superior</b> del repositorio debido a los límites de velocidad de la API pública de GitLab.", token_personal: "Obtén un token de acceso personal gratuito con una cuenta de GitLab aquí.", }, youtube: { name: "Transcripción de YouTube", description: "Importa la transcripción de un vídeo completo de YouTube desde un enlace.", URL: "URL del vídeo de YouTube", URL_explained_start: "Introduce la URL de cualquier vídeo de YouTube para obtener su transcripción. El vídeo debe tener ", URL_explained_link: "subtítulos", URL_explained_end: " disponibles.", task_explained: "Una vez completada, la transcripción estará disponible para incrustar en los espacios de trabajo en el selector de documentos.", language: "Idioma de la transcripción", language_explained: "Selecciona el idioma de la transcripción que deseas recopilar.", loading_languages: "-- cargando idiomas disponibles --", }, "website-depth": { name: "Extractor de enlaces en masa", description: "Extrae un sitio web y sus subenlaces hasta una cierta profundidad.", URL: "URL del sitio web", URL_explained: "URL del sitio web que deseas extraer.", depth: "Profundidad de rastreo", depth_explained:
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/lv/common.js
frontend/src/locales/lv/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Laipni lūgti", getStarted: "Sākt darbu", }, llm: { title: "LLM preferences", description: "AnythingLLM var strādāt ar daudziem LLM pakalpojumu sniedzējiem. Šis būs pakalpojums, kas apstrādās sarunas.", }, userSetup: { title: "Lietotāja iestatīšana", description: "Konfigurējiet savus lietotāja iestatījumus.", howManyUsers: "Cik daudz lietotāju izmantos šo instanci?", justMe: "Tikai es", myTeam: "Mana komanda", instancePassword: "Instances parole", setPassword: "Vai vēlaties iestatīt paroli?", passwordReq: "Parolēm jābūt vismaz 8 rakstzīmes garām.", passwordWarn: "Svarīgi saglabāt šo paroli, jo nav atjaunošanas metodes.", adminUsername: "Administratora konta lietotājvārds", adminUsernameReq: "Lietotājvārdam jābūt vismaz 6 rakstzīmes garam un jāsatur tikai mazie burti, cipari, pasvītrojumi un domuzīmes bez atstarpēm.", adminPassword: "Administratora konta parole", adminPasswordReq: "Parolēm jābūt vismaz 8 rakstzīmes garām.", teamHint: "Pēc noklusējuma jūs būsiet vienīgais administrators. Kad ievadīšana būs pabeigta, jūs varēsiet izveidot un uzaicināt citus būt par lietotājiem vai administratoriem. Neaizmirstiet savu paroli, jo tikai administratori var atiestatīt paroles.", }, data: { title: "Datu apstrāde un privātums", description: "Mēs esam apņēmušies nodrošināt caurskatāmību un kontroli pār jūsu personīgajiem datiem.", settingsHint: "Šos iestatījumus var pārkonfigurēt jebkurā laikā iestatījumos.", }, survey: { title: "Laipni lūgti AnythingLLM", description: "Palīdziet mums veidot AnythingLLM atbilstoši jūsu vajadzībām. Neobligāti.", email: "Kāds ir jūsu e-pasts?", useCase: "Kam izmantosiet AnythingLLM?", useCaseWork: "Darbam", useCasePersonal: "Personīgai lietošanai", useCaseOther: "Citam nolūkam", comment: "Kā jūs uzzinājāt par AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube utt. - Ļaujiet mums zināt, kā jūs mūs atradāt!", skip: "Izlaist aptauju", thankYou: "Paldies par jūsu atsauksmi!", }, workspace: { title: "Izveidojiet savu pirmo darba telpu", description: "Izveidojiet savu pirmo darba telpu un sāciet darbu ar AnythingLLM.", }, }, common: { "workspaces-name": "Darba telpas nosaukums", error: "kļūda", success: "veiksmīgi", user: "Lietotājs", selection: "Modeļa izvēle", saving: "Saglabā...", save: "Saglabāt izmaiņas", previous: "Iepriekšējā lapa", next: "Nākamā lapa", optional: "Neobligāti", yes: "Jā", no: "Nē", search: null, }, settings: { title: "Instances iestatījumi", system: "Vispārīgie iestatījumi", invites: "Ielūgumi", users: "Lietotāji", workspaces: "Darba telpas", "workspace-chats": "Darba telpas sarunas", customization: "Pielāgošana", interface: "UI preferences", branding: "Zīmolraide un identitāte", chat: "Sarunas", "api-keys": "Izstrādātāja API", llm: "LLM", transcription: "Transkripcija", embedder: "Embedder", "text-splitting": "Teksta sadalītājs un sadrumstalošana", "voice-speech": "Balss un runa", "vector-database": "Vektoru datubāze", embeds: "Sarunas ietvere", "embed-chats": "Sarunas ietveres vēsture", security: "Drošība", "event-logs": "Notikumu žurnāli", privacy: "Privātums un dati", "ai-providers": "AI pakalpojumu sniedzēji", "agent-skills": "Aģenta prasmes", admin: "Administrators", tools: "Rīki", "system-prompt-variables": "Sistēmas uzvednes mainīgie", "experimental-features": "Eksperimentālās funkcijas", contact: "Sazināties ar atbalstu", "browser-extension": "Pārlūka paplašinājums", }, login: { "multi-user": { welcome: "Laipni lūgti", "placeholder-username": "Lietotājvārds", "placeholder-password": "Parole", login: "Ielogoties", validating: "Validē...", "forgot-pass": "Aizmirsi paroli", reset: "Atiestatīt", }, "sign-in": { start: "Piesakieties savā", end: "kontā.", }, "password-reset": { title: "Paroles atiestatīšana", description: "Sniedziet nepieciešamo informāciju zemāk, lai atiestatītu savu paroli.", "recovery-codes": "Atjaunošanas kodi", "recovery-code": "Atjaunošanas kods {{index}}", "back-to-login": "Atpakaļ uz pieteikšanos", }, }, "main-page": { noWorkspaceError: "Lūdzu izveidojiet darba telpu pirms sarunas sākšanas.", checklist: { title: "Darba sākšana", tasksLeft: "atlikušie uzdevumi", completed: "Jūs esat ceļā, lai kļūtu par AnythingLLM ekspertu!", dismiss: "aizvērt", tasks: { create_workspace: { title: "Izveidot darba telpu", description: "Izveidojiet savu pirmo darba telpu, lai sāktu", action: "Izveidot", }, send_chat: { title: "Nosūtīt sarunu", description: "Sāciet sarunu ar savu AI asistentu", action: "Saruna", }, embed_document: { title: "Iegult dokumentu", description: "Pievienojiet savu pirmo dokumentu darba telpai", action: "Iegult", }, setup_system_prompt: { title: "Iestatīt sistēmas uzvedni", description: "Konfigurējiet sava AI asistenta uzvedību", action: "Iestatīt", }, define_slash_command: { title: "Definēt slīpsvītras komandu", description: "Izveidojiet pielāgotas komandas savam asistentam", action: "Definēt", }, visit_community: { title: "Apmeklēt kopienas centru", description: "Izpētiet kopienas resursus un veidnes", action: "Pārlūkot", }, }, }, quickLinks: { title: "Ātrās saites", sendChat: "Sūtīt sarunu", embedDocument: "Iegult dokumentu", createWorkspace: "Izveidot darba telpu", }, exploreMore: { title: "Izpētiet vairāk funkciju", features: { customAgents: { title: "Pielāgoti AI aģenti", description: "Veidojiet spēcīgus AI aģentus un automatizācijas bez koda.", primaryAction: "Sarunāties izmantojot @agent", secondaryAction: "Veidot aģenta plūsmu", }, slashCommands: { title: "Slīpsvītras komandas", description: "Ietaupiet laiku un ievietojiet uzvednes izmantojot pielāgotas slīpsvītras komandas.", primaryAction: "Izveidot slīpsvītras komandu", secondaryAction: "Izpētīt centrā", }, systemPrompts: { title: "Sistēmas uzvednes", description: "Modificējiet sistēmas uzvedni, lai pielāgotu AI atbildes darba telpā.", primaryAction: "Modificēt sistēmas uzvedni", secondaryAction: "Pārvaldīt uzvednes mainīgos", }, }, }, announcements: { title: "Atjauninājumi un paziņojumi", }, resources: { title: "Resursi", links: { docs: "Dokumentācija", star: "Zvaigzne GitHub", }, keyboardShortcuts: null, }, }, "new-workspace": { title: "Jauna darba telpa", placeholder: "Mana darba telpa", }, "workspaces—settings": { general: "Vispārīgie iestatījumi", chat: "Sarunas iestatījumi", vector: "Vektoru datubāze", members: "Dalībnieki", agent: "Aģenta konfigurācija", }, general: { vector: { title: "Vektoru skaits", description: "Kopējais vektoru skaits jūsu vektoru datubāzē.", }, names: { description: "Tas mainīs tikai jūsu darba telpas attēlojamo nosaukumu.", }, message: { title: "Ieteiktās sarunas ziņas", description: "Pielāgojiet ziņas, kas tiks ieteiktas jūsu darba telpas lietotājiem.", add: "Pievienot jaunu ziņu", save: "Saglabāt ziņas", heading: "Izskaidro man", body: "AnythingLLM priekšrocības", }, pfp: { title: "Asistenta profila attēls", description: "Pielāgojiet asistenta profila attēlu šai darba telpai.", image: "Darba telpas attēls", remove: "Noņemt darba telpas attēlu", }, delete: { title: "Dzēst darba telpu", description: "Dzēst šo darba telpu un visus tās datus. Tas dzēsīs darba telpu visiem lietotājiem.", delete: "Dzēst darba telpu", deleting: "Dzēš darba telpu...", "confirm-start": "Jūs gatavojaties dzēst visu savu", "confirm-end": "darba telpu. Tas noņems visus vektoru iegulšanas jūsu vektoru datubāzē.\n\nOriģinālie avota faili paliks neskartie. Šī darbība ir neatgriezeniska.", }, }, chat: { llm: { title: "Darba telpas LLM pakalpojumu sniedzējs", description: "Konkrētais LLM pakalpojumu sniedzējs un modelis, kas tiks izmantots šai darba telpai. Pēc noklusējuma tas izmanto sistēmas LLM pakalpojumu sniedzēju un iestatījumus.", search: "Meklēt visus LLM pakalpojumu sniedzējus", }, model: { title: "Darba telpas sarunas modelis", description: "Konkrētais sarunas modelis, kas tiks izmantots šai darba telpai. Ja tukšs, izmantos sistēmas LLM preferences.", wait: "-- gaida modeļus --", }, mode: { title: "Sarunas režīms", chat: { title: "Saruna", "desc-start": "sniegs atbildes ar LLM vispārējām zināšanām", and: "un", "desc-end": "dokumentu kontekstu, kas tiek atrasts.", }, query: { title: "Vaicājums", "desc-start": "sniegs atbildes", only: "tikai", "desc-end": "ja tiek atrasts dokumentu konteksts.", }, }, history: { title: "Sarunu vēsture", "desc-start": "Iepriekšējo sarunu skaits, kas tiks iekļauts atbildes īslaicīgajā atmiņā.", recommend: "Ieteicams 20. ", "desc-end": "Vairāk nekā 45 var novest pie nepārtrauktām sarunu kļūmēm atkarībā no ziņojuma izmēra.", }, prompt: { title: "Sistēmas uzvedne", description: "Uzvedne, kas tiks izmantota šajā darba telpā. Definējiet kontekstu un instrukcijas AI, lai ģenerētu atbildi. Jums vajadzētu nodrošināt rūpīgi izstrādātu uzvedni, lai AI varētu ģenerēt atbilstošu un precīzu atbildi.", history: { title: "Sistēmas uzvednes vēsture", clearAll: "Notīrīt visu", noHistory: "Nav pieejama sistēmas uzvednes vēsture", restore: "Atjaunot", delete: "Dzēst", deleteConfirm: "Vai tiešām vēlaties dzēst šo vēstures ierakstu?", clearAllConfirm: "Vai tiešām vēlaties nodzēst visu vēsturi? Šo darbību nevar atsaukt.", expand: "Paplašināt", publish: null, }, }, refusal: { title: "Vaicājuma režīma atteikuma atbilde", "desc-start": "Kad", query: "vaicājuma", "desc-end": "režīmā, jūs varētu vēlēties atgriezt pielāgotu atteikuma atbildi, kad konteksts nav atrasts.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM Temperatūra", "desc-start": 'Šis iestatījums kontrolē, cik "radošas" būs jūsu LLM atbildes.', "desc-end": "Jo lielāks skaitlis, jo radošākas atbildes. Dažiem modeļiem tas var novest pie nesaprotamām atbildēm, ja iestatīts pārāk augsts.", hint: "Lielākajai daļai LLM ir dažādi pieņemami derīgo vērtību diapazoni. Konsultējieties ar savu LLM pakalpojumu sniedzēju par šo informāciju.", }, }, "vector-workspace": { identifier: "Vektoru datubāzes identifikators", snippets: { title: "Maksimālie konteksta fragmenti", description: "Šis iestatījums kontrolē maksimālo konteksta fragmentu skaitu, kas tiks nosūtīti LLM katrai sarunai vai vaicājumam.", recommend: "Ieteicams: 4", }, doc: { title: "Dokumentu līdzības slieksnis", description: "Minimālais līdzības rādītājs, kas nepieciešams, lai avots tiktu uzskatīts par saistītu ar sarunu. Jo lielāks skaitlis, jo līdzīgākam avotam jābūt sarunai.", zero: "Bez ierobežojuma", low: "Zems (līdzības vērtējums ≥ .25)", medium: "Vidējs (līdzības vērtējums ≥ .50)", high: "Augsts (līdzības vērtējums ≥ .75)", }, reset: { reset: "Atiestatīt vektoru datubāzi", resetting: "Notīra vektorus...", confirm: "Jūs gatavojaties atiestatīt šīs darba telpas vektoru datubāzi. Tas noņems visas pašlaik iegultās vektoru iegulšanas.\n\nOriģinālie avota faili paliks neskartie. Šī darbība ir neatgriezeniska.", error: "Darba telpas vektoru datubāzi nevarēja atiestatīt!", success: "Darba telpas vektoru datubāze tika atiestatīta!", }, }, agent: { "performance-warning": "LLM, kas tieši neatbalsta rīku izsaukumus, veiktspēja ir ļoti atkarīga no modeļa iespējām un precizitātes. Dažas iespējas var būt ierobežotas vai nefunkcionālas.", provider: { title: "Darba telpas aģenta LLM pakalpojumu sniedzējs", description: "Konkrētais LLM pakalpojumu sniedzējs un modelis, kas tiks izmantots šīs darba telpas @agent aģentam.", }, mode: { chat: { title: "Darba telpas aģenta sarunas modelis", description: "Konkrētais sarunas modelis, kas tiks izmantots šīs darba telpas @agent aģentam.", }, title: "Darba telpas aģenta modelis", description: "Konkrētais LLM modelis, kas tiks izmantots šīs darba telpas @agent aģentam.", wait: "-- gaida modeļus --", }, skill: { title: "Noklusējuma aģenta prasmes", description: "Uzlabojiet noklusējuma aģenta dabiskās spējas ar šīm iepriekš izveidotajām prasmēm. Šis uzstādījums attiecas uz visām darba telpām.", rag: { title: "RAG un ilgtermiņa atmiņa", description: 'Ļaujiet aģentam izmantot jūsu lokālos dokumentus, lai atbildētu uz vaicājumu, vai lūdziet aģentu "atcerēties" satura daļas ilgtermiņa atmiņas izguvei.', }, view: { title: "Skatīt un apkopot dokumentus", description: "Ļaujiet aģentam uzskaitīt un apkopot pašlaik iegulto darba telpas failu saturu.", }, scrape: { title: "Iegūt tīmekļa vietnes", description: "Ļaujiet aģentam apmeklēt un iegūt tīmekļa vietņu saturu.", }, generate: { title: "Ģenerēt diagrammas", description: "Iespējot noklusējuma aģentam ģenerēt dažāda veida diagrammas no sarunā sniegtajiem vai dotajiem datiem.", }, save: { title: "Ģenerēt un saglabāt failus pārlūkā", description: "Iespējot noklusējuma aģentam ģenerēt un rakstīt failus, kas saglabājas un var tikt lejupielādēti jūsu pārlūkā.", }, web: { title: "Tiešsaistes tīmekļa meklēšana un pārlūkošana", "desc-start": "Ļaujiet savam aģentam meklēt tīmeklī, lai atbildētu uz jūsu jautājumiem, savienojoties ar tīmekļa meklēšanas (SERP) pakalpojumu sniedzēju.", "desc-end": "Tīmekļa meklēšana aģenta sesijās nedarbosies, līdz tas nebūs iestatīts.", }, }, }, recorded: { title: "Darba telpas sarunas", description: "Šīs ir visas ierakstītās sarunas un ziņas, ko lietotāji ir nosūtījuši, sakārtotas pēc to izveides datuma.", export: "Eksportēt", table: { id: "ID", by: "Nosūtīja", workspace: "Darba telpa", prompt: "Uzvedne", response: "Atbilde", at: "Nosūtīts", }, }, customization: { interface: { title: "UI preferences", description: "Iestatiet savas UI preferences AnythingLLM.", }, branding: { title: "Zīmolrade un identitāte", description: "Pielāgojiet savu AnythingLLM instanci ar pielāgotu zīmolradi.", }, chat: { title: "Saruna", description: "Iestatiet savas sarunas preferences AnythingLLM.", auto_submit: { title: "Automātiski iesniegt runas ievadi", description: "Automātiski iesniegt runas ievadi pēc klusuma perioda", }, auto_speak: { title: "Automātiski runāt atbildes", description: "Automātiski runāt atbildes no AI", }, spellcheck: { title: "Iespējot pareizrakstības pārbaudi", description: "Iespējot vai atspējot pareizrakstības pārbaudi sarunas ievades laukā", }, }, items: { theme: { title: "Tēma", description: "Izvēlieties vēlamo krāsu tēmu lietotnei.", }, "show-scrollbar": { title: "Rādīt ritjoslu", description: "Iespējot vai atspējot ritjoslu sarunas logā.", }, "support-email": { title: "Atbalsta e-pasts", description: "Iestatiet atbalsta e-pasta adresi, kam lietotājiem jābūt pieejamam, kad viņiem nepieciešama palīdzība.", }, "app-name": { title: "Nosaukums", description: "Iestatiet nosaukumu, kas tiek rādīts pieteikšanās lapā visiem lietotājiem.", }, "chat-message-alignment": { title: "Sarunas ziņu līdzinājums", description: "Izvēlieties ziņu līdzinājuma režīmu, izmantojot sarunas saskarni.", }, "display-language": { title: "Displeja valoda", description: "Izvēlieties vēlamo valodu AnythingLLM lietotāja saskarnei - kad pieejami tulkojumi.", }, logo: { title: "Zīmola logotips", description: "Augšupielādējiet savu pielāgoto logotipu, lai to rādītu visās lapās.", add: "Pievienot pielāgotu logotipu", recommended: "Ieteicamais izmērs: 800 x 200", remove: "Noņemt", replace: "Aizvietot", }, "welcome-messages": { title: "Sveiciena ziņojumi", description: "Pielāgojiet sveiciena ziņojumus, kas tiek rādīti lietotājiem. Tikai ne-administratori redzēs šos ziņojumus.", new: "Jauns", system: "sistēma", user: "lietotājs", message: "ziņojums", assistant: "AnythingLLM čata asistents", "double-click": "Dubultklikšķis, lai rediģētu...", save: "Saglabāt ziņojumus", }, "browser-appearance": { title: "Pārlūkprogrammas izskats", description: "Pielāgojiet pārlūkprogrammas cilnes izskatu un nosaukumu, kad lietotne ir atvērta.", tab: { title: "Nosaukums", description: "Iestatiet pielāgotu cilnes nosaukumu, kad lietotne ir atvērta pārlūkprogrammā.", }, favicon: { title: "Favicon", description: "Izmantojiet pielāgotu favicon pārlūkprogrammas cilnei.", }, }, "sidebar-footer": { title: "Sānu joslas kājenes vienumi", description: "Pielāgojiet kājenes vienumus, kas tiek attēloti sānu joslas apakšā.", icon: "Ikona", link: "Saite", }, "render-html": { title: null, description: null, }, }, }, api: { title: "API atslēgas", description: "API atslēgas ļauj to īpašniekam programmatiski piekļūt un pārvaldīt šo AnythingLLM instanci.", link: "Lasīt API dokumentāciju", generate: "Ģenerēt jaunu API atslēgu", table: { key: "API atslēga", by: "Izveidoja", created: "Izveidots", }, }, llm: { title: "LLM preferences", description: "Šie ir akreditācijas dati un iestatījumi jūsu vēlamajam LLM čata un iegulšanas pakalpojuma sniedzējam. Ir svarīgi, lai šīs atslēgas būtu aktuālas un pareizas, pretējā gadījumā AnythingLLM nedarbosies pareizi.", provider: "LLM pakalpojuma sniedzējs", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Transkripcijas modeļa preferences", description: "Šie ir akreditācijas dati un iestatījumi jūsu vēlamajam transkripcijas modeļa pakalpojuma sniedzējam. Ir svarīgi, lai šīs atslēgas būtu aktuālas un pareizas, pretējā gadījumā multivides faili un audio netiks transkribēti.", provider: "Transkripcijas pakalpojuma sniedzējs", "warn-start": "Izmantojot lokālo whisper modeli iekārtās ar ierobežotu RAM vai CPU var apstādināt AnythingLLM, apstrādājot multivides failus.", "warn-recommend": "Mēs iesakām vismaz 2GB RAM un augšupielādēt failus <10Mb.", "warn-end": "Iebūvētais modelis automātiski lejupielādēsies pirmajā lietošanas reizē.", }, embedding: { title: "Iegulšanas preferences", "desc-start": "Izmantojot LLM, kas neatbalsta iebūvētu iegulšanas dzinēju - jums var būt nepieciešams papildus norādīt akreditācijas datus teksta iegulšanai.", "desc-end": "Iegulšana ir process, ar kuru teksts tiek pārveidots vektoros. Šie akreditācijas dati ir nepieciešami, lai pārveidotu jūsu failus un vaicājumus formātā, kuru AnythingLLM var izmantot apstrādei.", provider: { title: "Iegulšanas pakalpojuma sniedzējs", }, }, text: { title: "Teksta sadalīšanas un sagatavošanas preferences", "desc-start": "Dažreiz jūs, iespējams, vēlēsieties mainīt noklusējuma veidu, kā jauni dokumenti tiek sadalīti un sagatavoti pirms ievietošanas vektoru datubāzē.", "desc-end": "Jums vajadzētu mainīt šo iestatījumu tikai tad, ja saprotat, kā darbojas teksta sadalīšana un tās blakusefekti.", size: { title: "Teksta gabala izmērs", description: "Šis ir maksimālais rakstzīmju skaits, kas var būt vienā vektorā.", recommend: "Iegult modeļa maksimālo garumu ir", }, overlap: { title: "Teksta gabalu pārklāšanās", description: "Šī ir maksimālā rakstzīmju pārklāšanās, kas notiek sadalīšanas laikā starp diviem blakus esošiem teksta gabaliem.", }, }, vector: { title: "Vektoru datubāze", description: "Šie ir akreditācijas dati un iestatījumi tam, kā darbosies jūsu AnythingLLM instance. Ir svarīgi, lai šīs atslēgas būtu aktuālas un pareizas.", provider: { title: "Vektoru datubāzes pakalpojuma sniedzējs", description: "LanceDB nav nepieciešama konfigurācija.", }, }, embeddable: { title: "Iegulstāmie čata logrīki", description: "Iegulstāmie čata logrīki ir publiskas saziņas saskarnes, kas ir piesaistītas vienam darbam. Tie ļauj izveidot darba vietas, kuras pēc tam varat publicēt pasaulē.", create: "Izveidot iegulumu", table: { workspace: "Darba vieta", chats: "Nosūtītie čati", active: "Aktīvie domēni", created: null, }, }, "embed-chats": { title: "Iegulto čatu saraksts", export: "Eksportēt", description: "Šie ir visi ierakstītie čati un ziņojumi no jebkura iegultā logrīka, ko esat publicējis.", table: { embed: "Iegultais", sender: "Sūtītājs", message: "Ziņojums", response: "Atbilde", at: "Nosūtīts", }, }, event: { title: "Notikumu žurnāli", description: "Skatiet visas darbības un notikumus, kas notiek šajā instancē uzraudzības nolūkos.", clear: "Notīrīt notikumu žurnālus", table: { type: "Notikuma veids", user: "Lietotājs", occurred: "Notika", }, }, privacy: { title: "Privātums un datu apstrāde", description: "Šī ir jūsu konfigurācija tam, kā savienotie trešo pušu pakalpojumu sniedzēji un AnythingLLM apstrādā jūsu datus.", llm: "LLM izvēle", embedding: "Iegulšanas preferences", vector: "Vektoru datubāze", anonymous: "Anonīmā telemetrija iespējota", }, connectors: { "search-placeholder": "Meklēt datu savienotājus", "no-connectors": "Nav atrasti datu savienotāji.", obsidian: { name: "Obsidian", description: "Importējiet Obsidian krātuvi ar vienu klikšķi.", vault_location: "Krātuves atrašanās vieta", vault_description: "Atlasiet savu Obsidian krātuves mapi, lai importētu visas piezīmes un to savienojumus.", selected_files: "Atrasti {{count}} markdown faili", importing: "Notiek krātuves importēšana...", import_vault: "Importēt krātuvi", processing_time: "Tas var aizņemt laiku atkarībā no jūsu krātuves lieluma.", vault_warning: "Lai izvairītos no konfliktiem, pārliecinieties, ka jūsu Obsidian krātuve pašlaik nav atvērta.", }, github: { name: "GitHub repozitorijs", description: "Importējiet visu publisku vai privātu GitHub repozitoriju ar vienu klikšķi.", URL: "GitHub repozitorija URL", URL_explained: "GitHub repozitorija URL, kuru vēlaties savākt.", token: "GitHub piekļuves tokens", optional: "neobligāts", token_explained: "Piekļuves tokens, lai novērstu ātruma ierobežojumus.", token_explained_start: "Bez ", token_explained_link1: "personiskā piekļuves tokena", token_explained_middle: ", GitHub API var ierobežot savācamo failu skaitu ātruma ierobežojumu dēļ. Jūs varat ", token_explained_link2: "izveidot pagaidu piekļuves tokenu", token_explained_end: ", lai izvairītos no šīs problēmas.", ignores: "Failu ignorēšana", git_ignore: "Saraksts .gitignore formātā, lai ignorētu konkrētus failus savākšanas laikā. Nospiediet enter pēc katra ieraksta, kuru vēlaties saglabāt.", task_explained: "Kad tas būs pabeigts, visi faili būs pieejami iegulšanai darba vietās dokumentu atlasītājā.", branch: "Zars, no kura vēlaties savākt failus.", branch_loading: "-- notiek pieejamo zaru ielāde --", branch_explained: "Zars, no kura vēlaties savākt failus.", token_information: "Bez <b>GitHub piekļuves tokena</b> aizpildīšanas šis datu savienotājs varēs savākt tikai <b>augšējā līmeņa</b> failus repozitorijā GitHub publiskā API ātruma ierobežojumu dēļ.", token_personal: "Iegūstiet bezmaksas personisko piekļuves tokenu ar GitHub kontu šeit.", }, gitlab: { name: "GitLab repozitorijs", description: "Importējiet visu publisku vai privātu GitLab repozitoriju ar vienu klikšķi.", URL: "GitLab repozitorija URL", URL_explained: "GitLab repozitorija URL, kuru vēlaties savākt.", token: "GitLab piekļuves tokens", optional: "neobligāts", token_explained: "Piekļuves tokens, lai novērstu ātruma ierobežojumus.", token_description: "Atlasiet papildu entītijas, ko iegūt no GitLab API.", token_explained_start: "Bez ", token_explained_link1: "personiskā piekļuves tokena", token_explained_middle: ", GitLab API var ierobežot savācamo failu skaitu ātruma ierobežojumu dēļ. Jūs varat ", token_explained_link2: "izveidot pagaidu piekļuves tokenu", token_explained_end: ", lai izvairītos no šīs problēmas.", fetch_issues: "Iegūt problēmas kā dokumentus", ignores: "Failu ignorēšana", git_ignore: "Saraksts .gitignore formātā, lai ignorētu konkrētus failus savākšanas laikā. Nospiediet enter pēc katra ieraksta, kuru vēlaties saglabāt.", task_explained: "Kad tas būs pabeigts, visi faili būs pieejami iegulšanai darba vietās dokumentu atlasītājā.", branch: "Zars, no kura vēlaties savākt failus", branch_loading: "-- notiek pieejamo zaru ielāde --", branch_explained: "Zars, no kura vēlaties savākt failus.", token_information: "Bez <b>GitLab piekļuves tokena</b> aizpildīšanas šis datu savienotājs varēs savākt tikai <b>augšējā līmeņa</b> failus repozitorijā GitLab publiskā API ātruma ierobežojumu dēļ.", token_personal: "Iegūstiet bezmaksas personisko piekļuves tokenu ar GitLab kontu šeit.", }, youtube: { name: "YouTube transkripcija", description: "Importējiet visa YouTube video transkripciju no saites.", URL: "YouTube video URL", URL_explained_start: "Ievadiet jebkura YouTube video URL, lai iegūtu tā transkripciju. Video ir jābūt pieejamiem ", URL_explained_link: "slēgtajiem parakstiem", URL_explained_end: ".", task_explained: "Kad tas būs pabeigts, transkripcija būs pieejama iegulšanai darba vietās dokumentu atlasītājā.", language: "Transkripcijas valoda", language_explained: "Atlasiet transkripcijas valodu, kuru vēlaties savākt.", loading_languages: "-- notiek pieejamo valodu ielāde --", }, "website-depth": { name: "Vairāku saišu skrāpētājs", description: "Skrāpējiet vietni un tās apakšsaites līdz noteiktam dziļumam.", URL: "Vietnes URL", URL_explained: "URL vietnei, kuru vēlaties skrāpēt.", depth: "Pārmeklēšanas dziļums", depth_explained: "Šis ir bērnu saišu skaits, kurām darbiniekam būtu jāseko no sākotnējā URL.", max_pages: "Maksimālais lapu skaits", max_pages_explained: "Maksimālais skrāpējamo saišu skaits.", task_explained: "Kad tas būs pabeigts, viss skrāpētais saturs būs pieejams iegulšanai darba vietās dokumentu atlasītājā.", }, confluence: { name: "Confluence", description: "Importējiet visu Confluence lapu ar vienu klikšķi.", deployment_type: "Confluence izvietošanas veids", deployment_type_explained: "Nosakiet, vai jūsu Confluence instance ir izvietota Atlassian mākonī vai pašu uzturētā.", base_url: "Confluence pamata URL", base_url_explained: "Šis ir jūsu Confluence telpas pamata URL.", space_key: "Confluence telpas atslēga", space_key_explained: "Šī ir jūsu confluence instances telpas atslēga, kas tiks izmantota. Parasti sākas ar ~", username: "Confluence lietotājvārds", username_explained: "Jūsu Confluence lietotājvārds", auth_type: "Confluence autentifikācijas veids", auth_type_explained: "Atlasiet autentifikācijas veidu, kuru vēlaties izmantot, lai piekļūtu savām Confluence lapām.", auth_type_username: "Lietotājvārds un piekļuves tokens", auth_type_personal: "Personiskais piekļuves tokens", token: "Confluence piekļuves tokens", token_explained_start: "Jums ir jānodrošina piekļuves tokens autentifikācijai. Jūs varat ģenerēt piekļuves tokenu", token_explained_link: "šeit", token_desc: "Piekļuves tokens autentifikācijai", pat_token: "Confluence personiskais piekļuves tokens", pat_token_explained: "Jūsu Confluence personiskais piekļuves tokens.", task_explained: "Kad tas būs pabeigts, lapas saturs būs pieejams iegulšanai darba vietās dokumentu atlasītājā.", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "Dokumenti", "data-connectors": "Datu savienotāji", "desktop-only": "Šo iestatījumu rediģēšana ir pieejama tikai galddatora ierīcē. Lūdzu, piekļūstiet šai lapai savā galddatorā, lai turpinātu.", dismiss: "Noraidīt", editing: "Rediģēšana", }, directory: {
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/da/common.js
frontend/src/locales/da/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Velkommen til", getStarted: "Kom godt i gang", }, llm: { title: "LLM-præference", description: "AnythingLLM kan arbejde med mange LLM-udbydere. Dette vil være den tjeneste, der håndterer chat.", }, userSetup: { title: "Brugeropsætning", description: "Konfigurer dine brugerindstillinger.", howManyUsers: "Hvor mange brugere vil benytte denne instans?", justMe: "Kun mig", myTeam: "Mit team", instancePassword: "Instansadgangskode", setPassword: "Vil du oprette en adgangskode?", passwordReq: "Adgangskoder skal være på mindst 8 tegn.", passwordWarn: "Det er vigtigt at gemme denne adgangskode, da der ikke findes nogen metode til genoprettelse.", adminUsername: "Brugernavn til admin-konto", adminUsernameReq: "Brugernavnet skal være mindst 6 tegn langt og må kun indeholde små bogstaver, tal, understregninger og bindestreger uden mellemrum.", adminPassword: "Adgangskode til admin-konto", adminPasswordReq: "Adgangskoder skal være på mindst 8 tegn.", teamHint: "Som standard vil du være den eneste administrator. Når onboarding er fuldført, kan du oprette og invitere andre til at blive brugere eller administratorer. Glem ikke din adgangskode, da kun administratorer kan nulstille adgangskoder.", }, data: { title: "Datahåndtering & Privatliv", description: "Vi er forpligtet til gennemsigtighed og kontrol, når det gælder dine persondata.", settingsHint: "Disse indstillinger kan ændres når som helst under indstillingerne.", }, survey: { title: "Velkommen til AnythingLLM", description: "Hjælp os med at gøre AnythingLLM tilpasset dine behov. Valgfrit.", email: "Hvad er din e-mail?", useCase: "Hvad vil du bruge AnythingLLM til?", useCaseWork: "Til arbejde", useCasePersonal: "Til personligt brug", useCaseOther: "Andet", comment: "Hvordan hørte du om AnythingLLM?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube, etc. - Fortæl os, hvordan du fandt os!", skip: "Spring undersøgelsen over", thankYou: "Tak for din feedback!", }, workspace: { title: "Opret dit første arbejdsområde", description: "Opret dit første arbejdsområde og kom i gang med AnythingLLM.", }, }, common: { "workspaces-name": "Navn på arbejdsområder", error: "fejl", success: "succes", user: "Bruger", selection: "Modelvalg", saving: "Gemmer...", save: "Gem ændringer", previous: "Forrige side", next: "Næste side", optional: "Valgfrit", yes: "Ja", no: "Nej", search: null, }, settings: { title: "Instansindstillinger", system: "Generelle indstillinger", invites: "Invitationer", users: "Brugere", workspaces: "Arbejdsområder", "workspace-chats": "Arbejdsområde-chat", customization: "Tilpasning", "api-keys": "Udvikler API", llm: "LLM", transcription: "Transskription", embedder: "Indlejring", "text-splitting": "Tekst-splitter og opdeling", "voice-speech": "Stemme & Tale", "vector-database": "Vektordatabase", embeds: "Chat-indlejring", "embed-chats": "Historik for chat-indlejringer", security: "Sikkerhed", "event-logs": "Hændelseslog", privacy: "Privatliv & Data", "ai-providers": "AI-udbydere", "agent-skills": "Agentfærdigheder", admin: "Administrator", tools: "Værktøjer", "experimental-features": "Eksperimentelle funktioner", contact: "Kontakt support", "browser-extension": "Browserudvidelse", "system-prompt-variables": null, interface: null, branding: null, chat: null, }, login: { "multi-user": { welcome: "Velkommen til", "placeholder-username": "Brugernavn", "placeholder-password": "Adgangskode", login: "Log ind", validating: "Validerer...", "forgot-pass": "Glemt adgangskode", reset: "Nulstil", }, "sign-in": { start: "Log ind på din", end: "konto.", }, "password-reset": { title: "Nulstilling af adgangskode", description: "Angiv de nødvendige oplysninger nedenfor for at nulstille din adgangskode.", "recovery-codes": "Gendannelseskoder", "recovery-code": "Gendannelseskode {{index}}", "back-to-login": "Tilbage til log ind", }, }, "new-workspace": { title: "Nyt arbejdsområde", placeholder: "Mit arbejdsområde", }, "workspaces—settings": { general: "Generelle indstillinger", chat: "Chatindstillinger", vector: "Vektordatabase", members: "Medlemmer", agent: "Agentkonfiguration", }, general: { vector: { title: "Antal vektorer", description: "Samlet antal vektorer i din vektordatabase.", }, names: { description: "Dette vil kun ændre visningsnavnet på dit arbejdsområde.", }, message: { title: "Foreslåede chatbeskeder", description: "Tilpas de beskeder, der vil blive foreslået til brugerne af dit arbejdsområde.", add: "Tilføj ny besked", save: "Gem beskeder", heading: "Forklar mig", body: "fordelene ved AnythingLLM", }, pfp: { title: "Assistentens profilbillede", description: "Tilpas assistentens profilbillede for dette arbejdsområde.", image: "Arbejdsområdebillede", remove: "Fjern arbejdsområdebillede", }, delete: { title: "Slet arbejdsområde", description: "Slet dette arbejdsområde og alle dets data. Dette vil slette arbejdsområdet for alle brugere.", delete: "Slet arbejdsområde", deleting: "Sletter arbejdsområde...", "confirm-start": "Du er ved at slette dit hele", "confirm-end": "arbejdsområde. Dette vil fjerne alle vektor-indlejringer i din vektordatabase.\n\nDe oprindelige kildefiler forbliver uberørte. Denne handling kan ikke fortrydes.", }, }, chat: { llm: { title: "Arbejdsområdets LLM-udbyder", description: "Den specifikke LLM-udbyder og -model, der vil blive brugt for dette arbejdsområde. Som standard anvendes systemets LLM-udbyder og indstillinger.", search: "Søg blandt alle LLM-udbydere", }, model: { title: "Arbejdsområdets chatmodel", description: "Den specifikke chatmodel, der vil blive brugt for dette arbejdsområde. Hvis tom, anvendes systemets LLM-præference.", wait: "-- venter på modeller --", }, mode: { title: "Chat-tilstand", chat: { title: "Chat", "desc-start": "vil give svar baseret på LLM'ens generelle viden", and: "og", "desc-end": "dokumentkontekst der findes.", }, query: { title: "Forespørgsel", "desc-start": "vil give svar", only: "kun", "desc-end": "hvis dokumentkontekst findes.", }, }, history: { title: "Chat-historik", "desc-start": "Antallet af tidligere chats, der vil blive inkluderet i svarens korttidshukommelse.", recommend: "Anbefal 20. ", "desc-end": "Alt over 45 kan sandsynligvis føre til gentagne chat-fejl afhængigt af beskedstørrelsen.", }, prompt: { title: "Prompt", description: "Prompten, der vil blive brugt i dette arbejdsområde. Definér konteksten og instruktionerne til, at AI'en kan generere et svar. Du bør levere en omhyggeligt udformet prompt, så AI'en kan generere et relevant og præcist svar.", history: { title: null, clearAll: null, noHistory: null, restore: null, delete: null, deleteConfirm: null, clearAllConfirm: null, expand: null, publish: null, }, }, refusal: { title: "Afvisningssvar for forespørgsels-tilstand", "desc-start": "Når du er i", query: "forespørgsels-tilstand", "desc-end": "tilstand, kan du vælge at returnere et brugerdefineret afvisningssvar, når der ikke findes nogen kontekst.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM-temperatur", "desc-start": 'Denne indstilling styrer, hvor "kreative" dine LLM-svar vil være.', "desc-end": "Jo højere tallet er, desto mere kreative bliver svarene. For nogle modeller kan for høje værdier føre til usammenhængende svar.", hint: "De fleste LLM'er har forskellige acceptable intervaller for gyldige værdier. Konsulter din LLM-udbyder for den information.", }, }, "vector-workspace": { identifier: "Identifikator for vektordatabase", snippets: { title: "Maksimalt antal kontekstuddrag", description: "Denne indstilling styrer det maksimale antal kontekstuddrag, der vil blive sendt til LLM'en pr. chat eller forespørgsel.", recommend: "Anbefalet: 4", }, doc: { title: "Tærskel for dokuments lighed", description: "Den minimale lighedsscore, der kræves for, at en kilde betragtes som relateret til chatten. Jo højere tallet er, desto mere lig skal kilden være chatten.", zero: "Ingen begrænsning", low: "Lav (lighedsscore ≥ 0,25)", medium: "Middel (lighedsscore ≥ 0,50)", high: "Høj (lighedsscore ≥ 0,75)", }, reset: { reset: "Nulstil vektordatabase", resetting: "Rydder vektorer...", confirm: "Du er ved at nulstille dette arbejdsområdes vektordatabase. Dette vil fjerne alle vektor-indlejringer, der aktuelt er indlejret.\n\nDe oprindelige kildefiler forbliver uberørte. Denne handling kan ikke fortrydes.", error: "Kunne ikke nulstille arbejdsområdets vektordatabase!", success: "Arbejdsområdets vektordatabase blev nulstillet!", }, }, agent: { "performance-warning": "Ydeevnen for LLM'er, der ikke eksplicit understøtter værktøjskald, er i høj grad afhængig af modellens kapacitet og nøjagtighed. Nogle funktioner kan være begrænsede eller ikke-fungerende.", provider: { title: "Arbejdsområdets agent LLM-udbyder", description: "Den specifikke LLM-udbyder og -model, der vil blive brugt for dette arbejdsområdes @agent-agent.", }, mode: { chat: { title: "Arbejdsområdets agent chatmodel", description: "Den specifikke chatmodel, der vil blive brugt for dette arbejdsområdes @agent-agent.", }, title: "Arbejdsområdets agentmodel", description: "Den specifikke LLM-model, der vil blive brugt for dette arbejdsområdes @agent-agent.", wait: "-- venter på modeller --", }, skill: { title: "Standard agentfærdigheder", description: "Forbedr standardagentens naturlige evner med disse forudbyggede færdigheder. Denne opsætning gælder for alle arbejdsområder.", rag: { title: "RAG & langtidshukommelse", description: 'Giv agenten mulighed for at udnytte dine lokale dokumenter til at besvare en forespørgsel eller få agenten til at "huske" dele af indhold for langtidshukommelse.', }, view: { title: "Se og opsummér dokumenter", description: "Giv agenten mulighed for at liste og opsummere indholdet af de filer i arbejdsområdet, der aktuelt er indlejret.", }, scrape: { title: "Scrape hjemmesider", description: "Giv agenten mulighed for at besøge og scrape indholdet fra hjemmesider.", }, generate: { title: "Generer diagrammer", description: "Gør det muligt for standardagenten at generere forskellige typer diagrammer fra data, der leveres eller gives i chat.", }, save: { title: "Generer og gem filer i browseren", description: "Gør det muligt for standardagenten at generere og skrive til filer, der gemmes og kan downloades i din browser.", }, web: { title: "Live web-søgning og browsing", "desc-start": "Gør det muligt for din agent at søge på internettet for at besvare dine spørgsmål ved at forbinde til en web-søgeudbyder (SERP).", "desc-end": "Web-søgning under agent-sessioner vil ikke fungere, før dette er opsat.", }, }, }, recorded: { title: "Arbejdsområde-chat", description: "Dette er alle de optagede chats og beskeder, der er blevet sendt af brugere, sorteret efter oprettelsesdato.", export: "Eksporter", table: { id: "Id", by: "Sendt af", workspace: "Arbejdsområde", prompt: "Prompt", response: "Svar", at: "Sendt kl.", }, }, api: { title: "API-nøgler", description: "API-nøgler giver indehaveren mulighed for programmatisk at få adgang til og administrere denne AnythingLLM-instans.", link: "Læs API-dokumentationen", generate: "Generér ny API-nøgle", table: { key: "API-nøgle", by: "Oprettet af", created: "Oprettet", }, }, llm: { title: "LLM-præference", description: "Disse er legitimationsoplysningerne og indstillingerne for din foretrukne LLM chat- og indlejringsudbyder. Det er vigtigt, at disse nøgler er opdaterede og korrekte, ellers vil AnythingLLM ikke fungere korrekt.", provider: "LLM-udbyder", providers: { azure_openai: { azure_service_endpoint: null, api_key: null, chat_deployment_name: null, chat_model_token_limit: null, model_type: null, default: null, reasoning: null, model_type_tooltip: null, }, }, }, transcription: { title: "Foretrukken transskriptionsmodel", description: "Disse er legitimationsoplysningerne og indstillingerne for din foretrukne transskriptionsmodeludbyder. Det er vigtigt, at disse nøgler er opdaterede og korrekte, ellers vil mediefiler og lyd ikke blive transskriberet.", provider: "Transskriptionsudbyder", "warn-start": "Brug af den lokale whisper-model på maskiner med begrænset RAM eller CPU kan få AnythingLLM til at gå i stå under behandling af mediefiler.", "warn-recommend": "Vi anbefaler mindst 2GB RAM og upload af filer <10Mb.", "warn-end": "Den indbyggede model vil automatisk blive downloadet ved første brug.", }, embedding: { title: "Foretrukken indlejringsmetode", "desc-start": "Når du bruger en LLM, der ikke understøtter en indlejringsmotor natively, skal du muligvis yderligere angive legitimationsoplysninger til indlejring af tekst.", "desc-end": "Indlejring er processen med at omdanne tekst til vektorer. Disse legitimationsoplysninger er nødvendige for at omdanne dine filer og prompts til et format, som AnythingLLM kan bruge til behandling.", provider: { title: "Indlejringsudbyder", }, }, text: { title: "Præferencer for tekstopdeling & segmentering", "desc-start": "Nogle gange vil du måske ændre den standardmåde, som nye dokumenter deles og opdeles i bidder, inden de indsættes i din vektordatabase.", "desc-end": "Du bør kun ændre denne indstilling, hvis du forstår, hvordan tekstopdeling fungerer og dens bivirkninger.", size: { title: "Størrelse på tekstbidder", description: "Dette er den maksimale længde af tegn, der kan være i en enkelt vektor.", recommend: "Indlejringsmodellens maksimale længde er", }, overlap: { title: "Overlap mellem tekstbidder", description: "Dette er det maksimale overlap af tegn, der forekommer ved opdeling mellem to tilstødende tekstbidder.", }, }, vector: { title: "Vektordatabase", description: "Disse er legitimationsoplysningerne og indstillingerne for, hvordan din AnythingLLM-instans vil fungere. Det er vigtigt, at disse nøgler er opdaterede og korrekte.", provider: { title: "Vektordatabaseudbyder", description: "Ingen konfiguration er nødvendig for LanceDB.", }, }, embeddable: { title: "Indlejrede chatwidgets", description: "Indlejrede chatwidgets er offentligt tilgængelige chatgrænseflader, der er knyttet til et enkelt arbejdsområde. Disse giver dig mulighed for at opbygge arbejdsområder, som du derefter kan offentliggøre for verden.", create: "Opret indlejring", table: { workspace: "Arbejdsområde", chats: "Sendte chats", active: "Aktive domæner", created: null, }, }, "embed-chats": { title: "Indlejrede chats", export: "Eksporter", description: "Dette er alle de optagede chats og beskeder fra enhver indlejring, du har offentliggjort.", table: { embed: "Indlejring", sender: "Afsender", message: "Besked", response: "Svar", at: "Sendt kl.", }, }, event: { title: "Hændelseslog", description: "Se alle handlinger og hændelser, der sker på denne instans for overvågning.", clear: "Ryd hændelseslog", table: { type: "Hændelsestype", user: "Bruger", occurred: "Skete kl.", }, }, privacy: { title: "Privatliv & datahåndtering", description: "Dette er din konfiguration for, hvordan tilsluttede tredjepartsudbydere og AnythingLLM håndterer dine data.", llm: "Valg af LLM", embedding: "Foretrukken indlejring", vector: "Vektordatabase", anonymous: "Anonym telemetri aktiveret", }, connectors: { "search-placeholder": "Søg efter datakonnektorer", "no-connectors": "Ingen datakonnektorer fundet.", github: { name: "GitHub-repository", description: "Importer et helt offentligt eller privat GitHub-repository med et enkelt klik.", URL: "GitHub-repository URL", URL_explained: "URL til det GitHub-repository, du ønsker at indsamle.", token: "GitHub-adgangstoken", optional: "valgfrit", token_explained: "Adgangstoken for at undgå hastighedsbegrænsning.", token_explained_start: "Uden en ", token_explained_link1: "Personlig adgangstoken", token_explained_middle: ", kan GitHub API'en begrænse antallet af filer, der kan indsamles på grund af ratebegrænsning. Du kan ", token_explained_link2: "oprette en midlertidig adgangstoken", token_explained_end: " for at undgå dette problem.", ignores: "Fil-ignoreringer", git_ignore: "Liste i .gitignore-format for at ignorere specifikke filer under indsamling. Tryk enter efter hver post, du vil gemme.", task_explained: "Når færdig, vil alle filer være tilgængelige for indlejring i arbejdsområder i dokumentvælgeren.", branch: "Den gren, du ønsker at indsamle filer fra.", branch_loading: "-- indlæser tilgængelige grene --", branch_explained: "Den gren, du ønsker at indsamle filer fra.", token_information: "Uden at udfylde <b>GitHub-adgangstoken</b> vil denne datakonnektor kun kunne indsamle <b>topniveau</b> filer fra repoet på grund af GitHubs offentlige API-ratebegrænsninger.", token_personal: "Få en gratis personlig adgangstoken med en GitHub-konto her.", }, gitlab: { name: "GitLab-repository", description: "Importer et helt offentligt eller privat GitLab-repository med et enkelt klik.", URL: "GitLab-repository URL", URL_explained: "URL til det GitLab-repository, du ønsker at indsamle.", token: "GitLab-adgangstoken", optional: "valgfrit", token_explained: "Adgangstoken for at undgå ratebegrænsning.", token_description: "Vælg yderligere enheder at hente fra GitLab API'en.", token_explained_start: "Uden en ", token_explained_link1: "personlig adgangstoken", token_explained_middle: ", kan GitLab API'en begrænse antallet af filer, der kan indsamles på grund af ratebegrænsning. Du kan ", token_explained_link2: "oprette en midlertidig adgangstoken", token_explained_end: " for at undgå dette problem.", fetch_issues: "Hent issues som dokumenter", ignores: "Fil-ignoreringer", git_ignore: "Liste i .gitignore-format for at ignorere specifikke filer under indsamling. Tryk enter efter hver post, du vil gemme.", task_explained: "Når færdig, vil alle filer være tilgængelige for indlejring i arbejdsområder i dokumentvælgeren.", branch: "Den gren, du ønsker at indsamle filer fra", branch_loading: "-- indlæser tilgængelige grene --", branch_explained: "Den gren, du ønsker at indsamle filer fra.", token_information: "Uden at udfylde <b>GitLab-adgangstoken</b> vil denne datakonnektor kun kunne indsamle <b>topniveau</b> filer fra repoet på grund af GitLabs offentlige API-ratebegrænsninger.", token_personal: "Få en gratis personlig adgangstoken med en GitLab-konto her.", }, youtube: { name: "YouTube-transskription", description: "Importer transskriptionen af en hel YouTube-video fra et link.", URL: "YouTube-video URL", URL_explained_start: "Indtast URL'en til en hvilken som helst YouTube-video for at hente dens transskription. Videoen skal have ", URL_explained_link: "undertekster", URL_explained_end: " tilgængelige.", task_explained: "Når færdig, vil transskriptionen være tilgængelig for indlejring i arbejdsområder i dokumentvælgeren.", language: "Transskript-sprog", language_explained: "Vælg det sprog, for transskriptionen, du ønsker at indsamle.", loading_languages: "-- indlæser tilgængelige sprog --", }, "website-depth": { name: "Bulk link-scraper", description: "Scrape en hjemmeside og dens under-links op til en vis dybde.", URL: "Hjemmeside URL", URL_explained: "URL til den hjemmeside, du ønsker at scrape.", depth: "Gennemsøgningsdybde", depth_explained: "Dette er antallet af under-links, som arbejderen skal følge fra oprindelses-URL'en.", max_pages: "Maksimalt antal sider", max_pages_explained: "Maksimalt antal links, der skal scrapes.", task_explained: "Når færdig, vil alt scraped indhold være tilgængeligt for indlejring i arbejdsområder i dokumentvælgeren.", }, confluence: { name: "Confluence", description: "Importer en hel Confluence-side med et enkelt klik.", deployment_type: "Confluence-udrulningstype", deployment_type_explained: "Bestem om din Confluence-instans er hostet på Atlassian Cloud eller selvhostet.", base_url: "Confluence-basis URL", base_url_explained: "Dette er basis-URL'en for dit Confluence-område.", space_key: "Confluence-områdenøgle", space_key_explained: "Dette er nøglekoden for dit Confluence-område, som vil blive brugt. Begynder typisk med ~", username: "Confluence-brugernavn", username_explained: "Dit Confluence-brugernavn", auth_type: "Confluence godkendelsestype", auth_type_explained: "Vælg den godkendelsestype, du ønsker at bruge for at få adgang til dine Confluence-sider.", auth_type_username: "Brugernavn og adgangstoken", auth_type_personal: "Personlig adgangstoken", token: "Confluence-adgangstoken", token_explained_start: "Du skal angive en adgangstoken for godkendelse. Du kan generere en adgangstoken", token_explained_link: "her", token_desc: "Adgangstoken til godkendelse", pat_token: "Confluence personlig adgangstoken", pat_token_explained: "Din personlige Confluence-adgangstoken.", task_explained: "Når færdig, vil sideindholdet være tilgængeligt for indlejring i arbejdsområder i dokumentvælgeren.", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "Dokumenter", "data-connectors": "Datakonnektorer", "desktop-only": "Redigering af disse indstillinger er kun tilgængelig på en stationær enhed. Venligst tilgå denne side fra din stationære computer for at fortsætte.", dismiss: "Afvis", editing: "Redigerer", }, directory: { "my-documents": "Mine dokumenter", "new-folder": "Ny mappe", "search-document": "Søg efter dokument", "no-documents": "Ingen dokumenter", "move-workspace": "Flyt til arbejdsområde", name: "Navn", "delete-confirmation": "Er du sikker på, at du vil slette disse filer og mapper?\nDette vil fjerne filerne fra systemet og automatisk fjerne dem fra alle eksisterende arbejdsområder.\nDenne handling kan ikke fortrydes.", "removing-message": "Fjerner {{count}} dokumenter og {{folderCount}} mapper. Vent venligst.", "move-success": "Flyttede {{count}} dokumenter med succes.", date: "Dato", type: "Type", no_docs: "Ingen dokumenter", select_all: "Vælg alle", deselect_all: "Fravælg alle", remove_selected: "Fjern valgte", costs: "*Engangsomkostning for indlejringer", save_embed: "Gem og indlejr", }, upload: { "processor-offline": "Dokumentbehandler utilgængelig", "processor-offline-desc": "Vi kan ikke uploade dine filer lige nu, fordi dokumentbehandleren er offline. Prøv igen senere.", "click-upload": "Klik for at uploade eller træk og slip", "file-types": "understøtter tekstfiler, CSV-filer, regneark, lydfiler og mere!", "or-submit-link": "eller indsæt et link", "placeholder-link": "https://example.com", fetching: "Henter...", "fetch-website": "Hent hjemmeside", "privacy-notice": "Disse filer vil blive uploadet til dokumentbehandleren, der kører på denne AnythingLLM-instans. Filene sendes ikke eller deles med en tredjepart.", }, pinning: { what_pinning: "Hvad er dokumentfastlåsning?", pin_explained_block1: "Når du <b>fastlåser</b> et dokument i AnythingLLM, vil vi indsætte hele dokumentets indhold i din prompt-vindue, så din LLM kan forstå det fuldt ud.", pin_explained_block2: "Dette fungerer bedst med <b>store kontekstmodeller</b> eller små filer, der er kritiske for dens vidensbase.", pin_explained_block3: "Hvis du ikke får de svar, du ønsker fra AnythingLLM som standard, er fastlåsning en fremragende måde at få svar af højere kvalitet med et enkelt klik.", accept: "Okay, jeg har forstået", }, watching: { what_watching: "Hvad gør det at overvåge et dokument?", watch_explained_block1: "Når du <b>overvåger</b> et dokument i AnythingLLM, vil vi <i>automatisk</i> synkronisere dokumentets indhold fra dets oprindelige kilde med jævne mellemrum. Dette vil automatisk opdatere indholdet i alle arbejdsområder, hvor denne fil administreres.", watch_explained_block2: "Denne funktion understøtter i øjeblikket kun onlinebaseret indhold og vil ikke være tilgængelig for manuelt uploadede dokumenter.", watch_explained_block3_start: "Du kan administrere, hvilke dokumenter der overvåges fra ", watch_explained_block3_link: "Filhåndtering", watch_explained_block3_end: " adminvisning.", accept: "Okay, jeg har forstået", }, obsidian: { name: null, description: null, vault_location: null, vault_description: null, selected_files: null, importing: null, import_vault: null, processing_time: null, vault_warning: null, }, }, chat_window: { welcome: "Velkommen til dit nye arbejdsområde.", get_started: "For at komme i gang, enten", get_started_default: "For at komme i gang", upload: "upload et dokument", or: "eller", send_chat: "send en chat.", send_message: "Send en besked", attach_file: "Vedhæft en fil til denne chat", slash: "Vis alle tilgængelige skråstreg-kommandoer til chat.", agents: "Vis alle tilgængelige agenter, du kan bruge til chat.", text_size: "Ændr tekststørrelse.", microphone: "Tal din prompt.", send: "Send promptbesked til arbejdsområdet", attachments_processing: null, tts_speak_message: null, copy: null, regenerate: null, regenerate_response: null, good_response: null, more_actions: null, hide_citations: null, show_citations: null, pause_tts_speech_message: null, fork: null, delete: null, save_submit: null, cancel: null, edit_prompt: null, edit_response: null, at_agent: null, default_agent_description: null, custom_agents_coming_soon: null, slash_reset: null, preset_reset_description: null, add_new_preset: null, command: null, your_command: null, placeholder_prompt: null, description: null, placeholder_description: null, save: null, small: null, normal: null, large: null, workspace_llm_manager: { search: null, loading_workspace_settings: null, available_models: null, available_models_description: null, save: null, saving: null, missing_credentials: null, missing_credentials_description: null, }, }, profile_settings: { edit_account: "Rediger konto", profile_picture: "Profilbillede", remove_profile_picture: "Fjern profilbillede", username: "Brugernavn", username_description: "Brugernavnet må kun indeholde små bogstaver, tal, understregninger og bindestreger uden mellemrum", new_password: "Ny adgangskode", password_description: "Adgangskoden skal være mindst 8 tegn lang", cancel: "Annuller", update_account: "Opdater konto", theme: "Tema-præference", language: "Foretrukket sprog", failed_upload: null, upload_success: null, failed_remove: null, profile_updated: null, failed_update_user: null, account: null, support: null, signout: null, }, customization: { interface: { title: null, description: null, }, branding: { title: null, description: null, }, chat: { title: null, description: null, auto_submit: { title: null, description: null, }, auto_speak: { title: null, description: null, }, spellcheck: { title: null, description: null, }, }, items: { theme: { title: null, description: null, }, "show-scrollbar": { title: null, description: null, }, "support-email": { title: null, description: null, }, "app-name": { title: null, description: null, }, "chat-message-alignment": { title: null, description: null, }, "display-language": { title: null, description: null, }, logo: { title: null, description: null, add: null, recommended: null, remove: null, replace: null, }, "welcome-messages": { title: null, description: null, new: null, system: null, user: null, message: null, assistant: null, "double-click": null, save: null, }, "browser-appearance": { title: null, description: null, tab: { title: null, description: null, }, favicon: { title: null, description: null, }, }, "sidebar-footer": { title: null, description: null, icon: null, link: null, }, "render-html": { title: null, description: null, }, }, }, "main-page": { noWorkspaceError: null, checklist: { title: null, tasksLeft: null, completed: null, dismiss: null, tasks: { create_workspace: { title: null, description: null, action: null, }, send_chat: { title: null, description: null, action: null, }, embed_document: { title: null, description: null, action: null, }, setup_system_prompt: { title: null,
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/src/locales/et/common.js
frontend/src/locales/et/common.js
// Anything with "null" requires a translation. Contribute to translation via a PR! const TRANSLATIONS = { onboarding: { home: { title: "Tere tulemast", getStarted: "Alusta", }, llm: { title: "LLM-i eelistus", description: "AnythingLLM töötab paljude LLM-teenusepakkujatega. See teenus haldab vestlust.", }, userSetup: { title: "Kasutaja seadistus", description: "Seadista oma kasutajasätted.", howManyUsers: "Mitu kasutajat seda instantsi kasutab?", justMe: "Ainult mina", myTeam: "Minu meeskond", instancePassword: "Instantsi parool", setPassword: "Kas soovid parooli seadistada?", passwordReq: "Parool peab olema vähemalt 8 märki.", passwordWarn: "Salvesta see parool hoolikalt, sest taastamisvõimalust ei ole.", adminUsername: "Admini kasutajanimi", adminUsernameReq: "Kasutajanimi peab olema vähemalt 6 märki ning võib sisaldada ainult väiketähti, numbreid, alakriipse ja sidekriipse.", adminPassword: "Admini parool", adminPasswordReq: "Parool peab olema vähemalt 8 märki.", teamHint: "Vaikimisi oled ainus administraator. Pärast häälestust saad luua ning kutsuda teisi kasutajaid või administreerida neid. Parooli kaotamisel saab paroole lähtestada vaid administraator.", }, data: { title: "Andmetöötlus ja privaatsus", description: "Oleme pühendunud läbipaistvusele ning kontrollile sinu andmete osas.", settingsHint: "Neid sätteid saab igal ajal seadetes muuta.", }, survey: { title: "Tere tulemast AnythingLLM-i", description: "Aita meil AnythingLLM sinu vajadustele vastavaks kujundada. Valikuline.", email: "Mis on su e-post?", useCase: "Milleks kasutad AnythingLLM-i?", useCaseWork: "Töö jaoks", useCasePersonal: "Isiklikuks kasutuseks", useCaseOther: "Muu", comment: "Kust kuulsid AnythingLLM-ist?", commentPlaceholder: "Reddit, Twitter, GitHub, YouTube jne – anna meile teada!", skip: "Jäta vahele", thankYou: "Aitäh tagasiside eest!", }, workspace: { title: "Loo oma esimene tööruum", description: "Loo esimene tööruum ja alusta AnythingLLM-iga.", }, }, common: { "workspaces-name": "Tööruumide nimi", error: "viga", success: "õnnestus", user: "Kasutaja", selection: "Mudeli valik", saving: "Salvestan…", save: "Salvesta muudatused", previous: "Eelmine leht", next: "Järgmine leht", optional: "Valikuline", yes: "Jah", no: "Ei", search: null, }, settings: { title: "Instantsi seaded", system: "Üldseaded", invites: "Kutsed", users: "Kasutajad", workspaces: "Tööruumid", "workspace-chats": "Tööruumi vestlused", customization: "Kohandamine", interface: "Kasutajaliidese eelistused", branding: "Bränding ja valgesildistamine", chat: "Vestlus", "api-keys": "Arendaja API", llm: "LLM", transcription: "Transkriptsioon", embedder: "Embeddija", "text-splitting": "Teksti lõikamine ja tükeldus", "voice-speech": "Hääle ja kõne seaded", "vector-database": "Vektoriandmebaas", embeds: "Vestluse embed", "embed-chats": "Embed-vestluste ajalugu", security: "Turvalisus", "event-logs": "Sündmuste logid", privacy: "Privaatsus ja andmed", "ai-providers": "AI-pakkujad", "agent-skills": "Agendi oskused", admin: "Admin", tools: "Tööriistad", "system-prompt-variables": "Süsteemprompti muutujad", "experimental-features": "Eksperimentaalsed funktsioonid", contact: "Tugi", "browser-extension": "Brauserilaiend", }, login: { "multi-user": { welcome: "Tere tulemast", "placeholder-username": "Kasutajanimi", "placeholder-password": "Parool", login: "Logi sisse", validating: "Kontrollin…", "forgot-pass": "Unustasid parooli", reset: "Lähtesta", }, "sign-in": { start: "Logi sisse oma", end: "kontosse.", }, "password-reset": { title: "Parooli lähtestamine", description: "Sisesta all vajalik info, et parool lähtestada.", "recovery-codes": "Taastamiskoodid", "recovery-code": "Taastamiskood {{index}}", "back-to-login": "Tagasi sisselogimisele", }, }, "main-page": { noWorkspaceError: "Enne vestlust loo tööruum.", checklist: { title: "Alustamine", tasksLeft: "ülesannet jäänud", completed: "Oled teel AnythingLLM-i eksperdiks saama!", dismiss: "sulge", tasks: { create_workspace: { title: "Loo tööruum", description: "Loo esimene tööruum alustamiseks", action: "Loo", }, send_chat: { title: "Saada vestlus", description: "Alusta vestlust oma AI-abilisega", action: "Vestle", }, embed_document: { title: "Põimi dokument", description: "Lisa esimene dokument oma tööruumi", action: "Põimi", }, setup_system_prompt: { title: "Seadista süsteemprompt", description: "Määra AI-abilise käitumine", action: "Seadista", }, define_slash_command: { title: "Loo kaldkriipskäsk", description: "Tee oma abilise jaoks kohandatud käsud", action: "Loo", }, visit_community: { title: "Külasta kogukonna keskust", description: "Uuri kogukonna ressursse ja malle", action: "Sirvi", }, }, }, quickLinks: { title: "Kiirlingid", sendChat: "Saada vestlus", embedDocument: "Põimi dokument", createWorkspace: "Loo tööruum", }, exploreMore: { title: "Avasta rohkem funktsioone", features: { customAgents: { title: "Kohandatud AI-agendid", description: "Ehita võimsaid agente ja automatsioone ilma koodita.", primaryAction: "Vestle @agent abil", secondaryAction: "Loo agendivoog", }, slashCommands: { title: "Kaldkriipskäsklused", description: "Säästa aega ja lisa käske kohandatud käskudega.", primaryAction: "Loo kaldkriipskäsk", secondaryAction: "Sirvi Hubs", }, systemPrompts: { title: "Süsteempromptid", description: "Muuda süsteemprompti, et kohandada AI vastuseid tööruumis.", primaryAction: "Muuda süsteemprompti", secondaryAction: "Halda prompt-muutujaid", }, }, }, announcements: { title: "Uuendused ja teadaanded", }, resources: { title: "Ressursid", links: { docs: "Dokumentatsioon", star: "GitHubi tärn", }, keyboardShortcuts: "Klaviatuuri otseteed", }, }, "new-workspace": { title: "Uus tööruum", placeholder: "Minu tööruum", }, "workspaces—settings": { general: "Üldseaded", chat: "Vestluse seaded", vector: "Vektoriandmebaas", members: "Liikmed", agent: "Agendi konfiguratsioon", }, general: { vector: { title: "Vektorite arv", description: "Vektorite koguarv sinu vektoriandmebaasis.", }, names: { description: "See muudab ainult tööruumi kuvatavat nime.", }, message: { title: "Soovitatud vestlussõnumid", description: "Kohanda sõnumeid, mida tööruumi kasutajatele soovitatakse.", add: "Lisa uus sõnum", save: "Salvesta sõnumid", heading: "Selgita mulle", body: "AnythingLLM eeliseid", }, pfp: { title: "Abilise profiilipilt", description: "Kohanda selle tööruumi abilise profiilipilti.", image: "Tööruumi pilt", remove: "Eemalda tööruumi pilt", }, delete: { title: "Kustuta tööruum", description: "Kustuta see tööruum ja kõik selle andmed. See eemaldab tööruumi kõikidele kasutajatele.", delete: "Kustuta tööruum", deleting: "Kustutan tööruumi…", "confirm-start": "Oled kustutamas kogu", "confirm-end": "tööruumi. See eemaldab kõik vektorid vektoriandmebaasist.\n\nAlgseid faile ei puudutata. Tegevust ei saa tagasi võtta.", }, }, chat: { llm: { title: "Tööruumi LLM-pakkuja", description: "LLM-pakkuja ja mudel, mida selles tööruumis kasutatakse. Vaikimisi kasutatakse süsteemi LLM-seadeid.", search: "Otsi LLM-pakkujaid", }, model: { title: "Tööruumi vestlusmudel", description: "Vestlusmudel, mida tööruumis kasutatakse. Kui tühi, kasutatakse süsteemi LLM-eelistust.", wait: "-- laadib mudeleid --", }, mode: { title: "Vestlusrežiim", chat: { title: "Vestlus", "desc-start": "annab vastuseid LLM-i üldteadmistest", and: "ja", "desc-end": "leitud dokumendikontekstist.", }, query: { title: "Päring", "desc-start": "annab vastuseid", only: "ainult", "desc-end": "kui leitakse dokumendikontekst.", }, }, history: { title: "Vestlusajalugu", "desc-start": "Eelmiste sõnumite arv, mis kaasatakse vastuse lühimällu.", recommend: "Soovitatav 20. ", "desc-end": "Üle 45 võib sõltuvalt sõnumi suurusest põhjustada tõrkeid.", }, prompt: { title: "Süsteemprompt", description: "Prompt, mida tööruumis kasutatakse. Määra kontekst ja juhised, et AI toodaks asjakohase vastuse.", history: { title: "Süsteempromptide ajalugu", clearAll: "Tühjenda kõik", noHistory: "Ajalugu puudub", restore: "Taasta", delete: "Kustuta", publish: "Avalda kogukonnas", deleteConfirm: "Kas oled kindel, et soovid selle kirje kustutada?", clearAllConfirm: "Kas oled kindel, et soovid kogu ajaloo tühjendada? Tegevus on pöördumatu.", expand: "Laienda", }, }, refusal: { title: "Päringurežiimi keeldumisteade", "desc-start": "Kui ollakse", query: "päringu", "desc-end": "režiimis, võib määrata kohandatud vastuse, kui konteksti ei leita.", "tooltip-title": null, "tooltip-description": null, }, temperature: { title: "LLM-i temperatuur", "desc-start": 'Määrab, kui "loovad" vastused on.', "desc-end": "Kõrgem väärtus = loovam, ent liiga kõrge võib tekitada ebaühtlasi vastuseid.", hint: "Kontrolli pakkujalt lubatud vahemikke.", }, }, "vector-workspace": { identifier: "Vektoriandmebaasi identifikaator", snippets: { title: "Maksimaalne konteksti lõikude arv", description: "Maksimaalne lõikude arv, mis saadetakse LLM-ile ühe vestluse/päringu kohta.", recommend: "Soovitatav: 4", }, doc: { title: "Dokumendi sarnasuse lävi", description: "Minimaalne sarnasusskoor, et allikas oleks vestlusega seotud. Mida kõrgem, seda sarnasem peab allikas olema.", zero: "Piirang puudub", low: "Madal (≥ 0,25)", medium: "Keskmine (≥ 0,50)", high: "Kõrge (≥ 0,75)", }, reset: { reset: "Lähtesta vektoriandmebaas", resetting: "Puhastan vektoreid…", confirm: "Lähtestad selle tööruumi vektoriandmebaasi. Kõik vektorid eemaldatakse.\n\nAlgseid faile ei puudutata. Tegevus on pöördumatu.", error: "Vektoriandmebaasi lähtestamine ebaõnnestus!", success: "Vektoriandmebaas lähtestati!", }, }, agent: { "performance-warning": "Mudelite, mis ei toeta tööriistakutsumisi, jõudlus sõltub tugevalt mudeli võimest. Mõned funktsioonid võivad olla piiratud.", provider: { title: "Tööruumi agendi LLM-pakkuja", description: "LLM-pakkuja ja mudel, mida kasutatakse @agent agendi jaoks.", }, mode: { chat: { title: "Tööruumi agendi vestlusmudel", description: "Vestlusmudel, mida @agent agendi jaoks kasutatakse.", }, title: "Tööruumi agendi mudel", description: "LLM-mudel, mida @agent agendi jaoks kasutatakse.", wait: "-- laadib mudeleid --", }, skill: { title: "Agendi vaikimisi oskused", description: "Paranda vaikimisi agendi loomulikke oskusi nende eelnevalt ehitatud võimetega. Kehtib kõikidele tööruumidele.", rag: { title: "RAG ja pikaajaline mälu", description: 'Lubab agendil kasutada kohalikke dokumente vastamiseks või "meelde jätmiseks".', }, view: { title: "Vaata ja kokkuvõtlikusta dokumente", description: "Lubab agendil loetleda ja kokku võtta praegu põimitud faile.", }, scrape: { title: "Kraabi veebilehti", description: "Lubab agendil külastada ja kraapida veebisisu.", }, generate: { title: "Loo diagramme", description: "Lubab agendil luua erinevaid diagramme antud andmetest.", }, save: { title: "Loo ja salvesta faile brauserisse", description: "Lubab agendil luua faile, mis salvestatakse ja allalaaditakse brauseris.", }, web: { title: "Reaalajas veebihaku tugi", "desc-start": "Lubab agendil kasutada veebiotsingut küsimustele vastamiseks, ühendudes SERP-teenusega.", "desc-end": "Veebiotsing ei tööta enne, kui seadistus on tehtud.", }, }, }, recorded: { title: "Tööruumi vestlused", description: "Kõik salvestatud vestlused ja sõnumid kuvatakse loomise aja järgi.", export: "Ekspordi", table: { id: "ID", by: "Saatja", workspace: "Tööruum", prompt: "Päring", response: "Vastus", at: "Saadetud", }, }, customization: { interface: { title: "Kasutajaliidese eelistused", description: "Sea AnythingLLM-i UI eelistused.", }, branding: { title: "Bränding ja valgesildistamine", description: "Valgesildista oma AnythingLLM kohandatud brändinguga.", }, chat: { title: "Vestlus", description: "Sea vestluse eelistused.", auto_submit: { title: "Automaatselt esita kõnesisend", description: "Saada kõnesisend ära pärast vaikuse perioodi", }, auto_speak: { title: "Loe vastused ette", description: "AI loeb vastused automaatselt ette", }, spellcheck: { title: "Luba õigekirjakontroll", description: "Lülita vestlusväljale õigekirjakontroll sisse/välja", }, }, items: { theme: { title: "Teema", description: "Vali rakenduse värviteema.", }, "show-scrollbar": { title: "Kuva kerimisriba", description: "Kuva või peida vestlusakna kerimisriba.", }, "support-email": { title: "Toe e-post", description: "Määra e-posti aadress, kuhu kasutajad saavad abi saamiseks pöörduda.", }, "app-name": { title: "Nimi", description: "Nimi, mis kuvatakse kõigile kasutajatele sisselogimislehel.", }, "chat-message-alignment": { title: "Vestlussõnumite joondus", description: "Vali sõnumite joondus vestlusliideses.", }, "display-language": { title: "Kuvakeel", description: "Vali keel, milles AnythingLLM UI kuvatakse (kui tõlge on olemas).", }, logo: { title: "Brändi logo", description: "Laadi üles kohandatud logo, mis kuvatakse kõikjal.", add: "Lisa logo", recommended: "Soovituslik suurus: 800 × 200", remove: "Eemalda", replace: "Asenda", }, "welcome-messages": { title: "Tervitussõnumid", description: "Kohanda sõnumeid, mida kasutajad näevad sisselogimisel. Ainult mitte-adminid näevad neid.", new: "Uus", system: "süsteem", user: "kasutaja", message: "sõnum", assistant: "AnythingLLM vestlusabi", "double-click": "Topeltklõps muutmiseks…", save: "Salvesta sõnumid", }, "browser-appearance": { title: "Brauseri välimus", description: "Kohanda brauseri vahekaardi pealkirja ja ikooni.", tab: { title: "Pealkiri", description: "Sea kohandatud vahekaardi pealkiri, kui rakendus on avatud.", }, favicon: { title: "Favicon", description: "Kasuta kohandatud faviconi brauseri vahekaardil.", }, }, "sidebar-footer": { title: "Külgriba jaluse elemendid", description: "Kohanda külgriba allosas kuvatavaid linke/ikooni.", icon: "Ikoon", link: "Link", }, "render-html": { title: null, description: null, }, }, }, api: { title: "API võtmed", description: "API võtmed võimaldavad programmipõhiselt hallata seda AnythingLLM instantsi.", link: "Loe API dokumentatsiooni", generate: "Genereeri uus API võti", table: { key: "API võti", by: "Loonud", created: "Loodud", }, }, llm: { title: "LLM-i eelistus", description: "Siin on sinu valitud LLM-teenusepakkuja võtmed ja seaded. Need peavad olema õiged, vastasel juhul AnythingLLM ei tööta.", provider: "LLM-pakkuja", providers: { azure_openai: { azure_service_endpoint: "Azure teenuse lõpp-punkt", api_key: "API võti", chat_deployment_name: "Vestluse deploy nimi", chat_model_token_limit: "Mudeli tokeni limiit", model_type: "Mudeli tüüp", default: "Vaikimisi", reasoning: "Põhjendus", model_type_tooltip: null, }, }, }, transcription: { title: "Transkriptsiooni mudeli eelistus", description: "Siin on sinu valitud transkriptsioonimudeli pakkuja seaded. Vale seadistuse korral heli- ja meediafaile ei transkribeerita.", provider: "Transkriptsiooni pakkuja", "warn-start": "Kohaliku Whisper-mudeli kasutamine vähese RAM-i või CPU-ga masinal võib faili töötlemise ummistada.", "warn-recommend": "Soovitame vähemalt 2 GB RAM-i ning <10 MB faile.", "warn-end": "Sisseehitatud mudel laaditakse alla esmakasutusel automaatselt.", }, embedding: { title: "Embedding-i eelistus", "desc-start": "Kui kasutad LLM-i, mis ei sisalda embedding-mootorit, tuleb määrata täiendavad võtmed.", "desc-end": "Embedding muudab teksti vektoriteks. Need võtmed on vajalikud, et AnythingLLM saaks sinu failid ja päringud töödelda.", provider: { title: "Embedding-i pakkuja", }, }, text: { title: "Teksti lõikamise ja tükeldamise seaded", "desc-start": "Vahel soovid muuta, kuidas uued dokumendid enne vektoriandmebaasi lisamist tükeldatakse.", "desc-end": "Muuda seda ainult siis, kui mõistad tekstilõike mõju.", size: { title: "Tekstitüki suurus", description: "Maksimaalne märgipikkus ühes vektoris.", recommend: "Embed-mudeli maks pikkus on", }, overlap: { title: "Tekstitüki kattuvus", description: "Maksimaalne märkide kattuvus kahe kõrvuti tüki vahel.", }, }, vector: { title: "Vektoriandmebaas", description: "Siin on seaded, kuidas AnythingLLM töötab. Vale seadistus võib põhjustada tõrkeid.", provider: { title: "Vektoriandmebaasi pakkuja", description: "LanceDB puhul seadistust pole vaja.", }, }, embeddable: { title: "Embed-vestlusvidinad", description: "Avalikkusele suunatud vestlusliidesed, mis on seotud ühe tööruumiga.", create: "Loo embed", table: { workspace: "Tööruum", chats: "Saadetud vestlused", active: "Aktiivsed domeenid", created: "Loodud", }, }, "embed-chats": { title: "Embed-vestluste ajalugu", export: "Ekspordi", description: "Kõik embed-ide salvestatud vestlused ja sõnumid.", table: { embed: "Embed", sender: "Saatja", message: "Sõnum", response: "Vastus", at: "Saadetud", }, }, event: { title: "Sündmuste logid", description: "Vaata instantsis toimuvaid tegevusi ja jälgi sündmusi.", clear: "Tühjenda logid", table: { type: "Sündmuse tüüp", user: "Kasutaja", occurred: "Toimus", }, }, privacy: { title: "Privaatsus ja andmetöötlus", description: "Konfiguratsioon kolmandate osapoolte ja AnythingLLM-i andmekäitluse kohta.", llm: "LLM-i valik", embedding: "Embedding-i eelistus", vector: "Vektoriandmebaas", anonymous: "Anonüümne telemeetria lubatud", }, connectors: { "search-placeholder": "Otsi andmepistikuid", "no-connectors": "Andmepistikuid ei leitud.", obsidian: { name: "Obsidian", description: "Impordi Obsidiani vault ühe klõpsuga.", vault_location: "Vaulti asukoht", vault_description: "Vali oma Obsidiani vaulti kaust, et importida kõik märkmed ja nende seosed.", selected_files: "Leiti {{count}} Markdown-faili", importing: "Vaulti importimine…", import_vault: "Impordi vault", processing_time: "See võib võtta aega sõltuvalt vaulti suurusest.", vault_warning: "Konfliktide vältimiseks veendu, et Obsidiani vault ei oleks praegu avatud.", }, github: { name: "GitHubi repo", description: "Impordi kogu avalik või privaatne GitHubi repo ühe klõpsuga.", URL: "GitHubi repo URL", URL_explained: "Repo URL, mida soovid koguda.", token: "GitHubi juurdepääsuvõti", optional: "valikuline", token_explained: "Võti API piirangute vältimiseks.", token_explained_start: "Ilma ", token_explained_link1: "isikliku juurdepääsuvõtmeta", token_explained_middle: " võib GitHubi API piirata kogutavate failide hulka. Sa võid ", token_explained_link2: "luua ajutise juurdepääsuvõtme", token_explained_end: " selle vältimiseks.", ignores: "Faili välistused", git_ignore: ".gitignore formaadis nimekiri failidest, mida kogumisel ignoreerida. Vajuta Enter iga kirje järel.", task_explained: "Kui valmis, on failid dokumentide valijas tööruumidesse põimimiseks saadaval.", branch: "Haru, kust faile koguda", branch_loading: "-- harude laadimine --", branch_explained: "Haru, kust faile koguda.", token_information: "Ilma <b>GitHubi juurdepääsuvõtmeta</b> saab pistik koguda ainult repo <b>juurtaseme</b> faile GitHubi API piirangute tõttu.", token_personal: "Hangi tasuta isiklik juurdepääsuvõti GitHubist siit.", }, gitlab: { name: "GitLabi repo", description: "Impordi kogu avalik või privaatne GitLabi repo ühe klõpsuga.", URL: "GitLabi repo URL", URL_explained: "Repo URL, mida soovid koguda.", token: "GitLabi juurdepääsuvõti", optional: "valikuline", token_explained: "Võti API piirangute vältimiseks.", token_description: "Vali täiendavad objektid, mida GitLabi API-st tuua.", token_explained_start: "Ilma ", token_explained_link1: "isikliku juurdepääsuvõtmeta", token_explained_middle: " võib GitLabi API piirata kogutavate failide hulka. Sa võid ", token_explained_link2: "luua ajutise juurdepääsuvõtme", token_explained_end: " selle vältimiseks.", fetch_issues: "Tõmba Issues dokumendina", ignores: "Faili välistused", git_ignore: ".gitignore formaadis nimekiri failidest, mida kogumisel ignoreerida. Vajuta Enter iga kirje järel.", task_explained: "Kui valmis, on failid dokumentide valijas tööruumidesse põimimiseks saadaval.", branch: "Haru, kust faile koguda", branch_loading: "-- harude laadimine --", branch_explained: "Haru, kust faile koguda.", token_information: "Ilma <b>GitLabi juurdepääsuvõtmeta</b> saab pistik koguda ainult repo <b>juurtaseme</b> faile GitLabi API piirangute tõttu.", token_personal: "Hangi tasuta isiklik juurdepääsuvõti GitLabist siit.", }, youtube: { name: "YouTube'i transkript", description: "Impordi YouTube'i video täielik transkript lingi abil.", URL: "YouTube'i video URL", URL_explained_start: "Sisesta ükskõik millise YouTube'i video URL, et tuua selle transkript. Videol peavad olema ", URL_explained_link: "subtiitrid", URL_explained_end: " saadaval.", task_explained: "Kui valmis, on transkript dokumentide valijas tööruumidesse põimimiseks saadaval.", language: "Transkripti keel", language_explained: "Vali transkripti keel, mida soovid koguda.", loading_languages: "-- keelte laadimine --", }, "website-depth": { name: "Massiline linkide kraapija", description: "Kraabi veebisaiti ja selle alamlinke määratud sügavuseni.", URL: "Veebisaidi URL", URL_explained: "Veebisaidi URL, mida soovid kraapida.", depth: "Kraapimissügavus", depth_explained: "Alamlinkide arv, mida töötaja alg-URL-ist järgib.", max_pages: "Maksimaalne lehtede arv", max_pages_explained: "Maksimaalne linkide arv, mida kraapida.", task_explained: "Kui valmis, on kogu kraabitud sisu dokumentide valijas tööruumidesse põimimiseks saadaval.", }, confluence: { name: "Confluence", description: "Impordi kogu Confluence'i leht ühe klõpsuga.", deployment_type: "Confluence'i tüüp", deployment_type_explained: "Määra, kas Confluence töötab Atlassiani pilves või on isemajutatud.", base_url: "Confluence'i baas-URL", base_url_explained: "Sinu Confluence'i ruumi baas-URL.", space_key: "Confluence'i space key", space_key_explained: "Space key, mida kasutatakse (tavaliselt algab ~ märgiga).", username: "Confluence'i kasutajanimi", username_explained: "Sinu Confluence'i kasutajanimi.", auth_type: "Autentimise tüüp", auth_type_explained: "Vali autentimise tüüp, millega Confluence'i lehtedele ligi pääseda.", auth_type_username: "Kasutajanimi + juurdepääsuvõti", auth_type_personal: "Isiklik juurdepääsuvõti", token: "Confluence'i juurdepääsuvõti", token_explained_start: "Autentimiseks on vajalik juurdepääsuvõti. Saad selle genereerida", token_explained_link: "siin", token_desc: "Juurdepääsuvõti autentimiseks", pat_token: "Confluence'i PAT-võti", pat_token_explained: "Sinu isiklik juurdepääsuvõti.", task_explained: "Kui valmis, on lehe sisu dokumentide valijas tööruumidesse põimimiseks saadaval.", bypass_ssl: null, bypass_ssl_explained: null, }, manage: { documents: "Dokumendid", "data-connectors": "Andmepistikud", "desktop-only": "Neid sätteid saab muuta ainult lauaarvutis. Ava see leht töölaual.", dismiss: "Sulge", editing: "Muudan", }, directory: { "my-documents": "Minu dokumendid", "new-folder": "Uus kaust", "search-document": "Otsi dokumenti", "no-documents": "Dokumendid puuduvad", "move-workspace": "Liiguta tööruumi", name: "Nimi", "delete-confirmation": "Kas oled kindel, et soovid need failid ja kaustad kustutada?\nFailid eemaldatakse süsteemist ning kõigist tööruumidest.\nTegevust ei saa tagasi võtta.", "removing-message": "Eemaldan {{count}} dokumenti ja {{folderCount}} kausta. Palun oota.", "move-success": "Liigutatud edukalt {{count}} dokumenti.", date: "Kuupäev", type: "Tüüp", no_docs: "Dokumendid puuduvad", select_all: "Vali kõik", deselect_all: "Tühista valik", remove_selected: "Eemalda valitud", costs: "*Ühekordne embeddingu kulu", save_embed: "Salvesta ja põimi", }, upload: { "processor-offline": "Dokumenditöötleja pole saadaval", "processor-offline-desc": "Failide üleslaadimine pole võimalik, sest töötleja on offline. Proovi hiljem uuesti.", "click-upload": "Klõpsa või lohista failid siia", "file-types": "toetab tekstifaile, CSV-sid, arvutustabeleid, helifaile jpm!", "or-submit-link": "või esita link", "placeholder-link": "https://näide.ee", fetching: "Laen…", "fetch-website": "Tõmba veebisait", "privacy-notice": "Failid laetakse üles selle instantsi dokumenditöötlejasse ega jagata kolmandatele osapooltele.", }, pinning: { what_pinning: "Mis on dokumendi kinnitamine?", pin_explained_block1: "Kui <b>kinnitad</b> dokumendi, lisatakse kogu selle sisu sinu päringule, et LLM mõistaks seda täielikult.", pin_explained_block2: "Sobib eriti <b>suure kontekstiga mudelitele</b> või väikestele, kuid olulistele failidele.", pin_explained_block3: "Kui vaikimisi vastused ei rahulda, on kinnitamine lihtne viis kvaliteedi tõstmiseks.", accept: "Selge", }, watching: { what_watching: "Mida tähendab dokumendi jälgimine?", watch_explained_block1: "Kui <b>jälgid</b> dokumenti, sünkroniseerime selle sisu <i>automaatselt</i> allikast kindlate intervallidega, uuendades seda kõigis tööruumides.", watch_explained_block2: "Hetkel toetab see ainult veebi-põhist sisu, mitte käsitsi üleslaetud faile.", watch_explained_block3_start: "Saad jälgitavaid dokumente hallata ", watch_explained_block3_link: "Failihalduri", watch_explained_block3_end: " vaates.", accept: "Selge", }, }, chat_window: { welcome: "Tere tulemast oma uude tööruumi.", get_started: "Alustamiseks", get_started_default: "Alustamiseks", upload: "laadi dokument üles", or: "või", attachments_processing: "Manused töötlevad. Palun oota…", send_chat: "saada vestlus.", send_message: "Saada sõnum", attach_file: "Lisa fail vestlusele", slash: "Vaata kõiki slash-käske.", agents: "Vaata kõiki agente, keda saad kasutada.", text_size: "Muuda teksti suurust.", microphone: "Esita päring häälega.", send: "Saada päring tööruumi", tts_speak_message: "Loe sõnum ette", copy: "Kopeeri", regenerate: "Loo uuesti", regenerate_response: "Loo vastus uuesti", good_response: "Hea vastus", more_actions: "Rohkem toiminguid", hide_citations: "Peida viited", show_citations: "Näita viiteid", pause_tts_speech_message: "Pausi TTS kõne", fork: "Hargnemine", delete: "Kustuta", save_submit: "Salvesta ja saada", cancel: "Tühista", edit_prompt: "Redigeeri päringut", edit_response: "Redigeeri vastust", at_agent: "@agent", default_agent_description: " – selle tööruumi vaikimisi agent.", custom_agents_coming_soon: "kohandatud agendid tulekul!", slash_reset: "/reset", preset_reset_description: "Tühjenda vestlusajalugu ja alusta uut vestlust", add_new_preset: " Lisa uus preset", command: "Käsk", your_command: "sinu-käsk", placeholder_prompt: "Sisu, mis süstitakse sinu päringu ette.", description: "Kirjeldus", placeholder_description: "Vastab luuletusega LLM-idest.", save: "Salvesta", small: "Väike", normal: "Tavaline", large: "Suur", workspace_llm_manager: { search: "Otsi LLM-pakkujaid", loading_workspace_settings: "Laen tööruumi seadeid…", available_models: "Saadaval mudelid pakkujalt {{provider}}", available_models_description: "Vali mudel, mida tööruumis kasutada.", save: "Kasuta seda mudelit", saving: "Määran mudelit vaikimisi…", missing_credentials: "Sellel pakkujal puuduvad võtmed!", missing_credentials_description: "Klõpsa, et määrata võtmed", }, }, profile_settings: { edit_account: "Muuda kontot", profile_picture: "Profiilipilt", remove_profile_picture: "Eemalda profiilipilt", username: "Kasutajanimi", username_description: "Kasutajanimi võib sisaldada ainult väiketähti, numbreid, alakriipse ja sidekriipse, ilma tühikuteta", new_password: "Uus parool", password_description: "Parool peab olema vähemalt 8 märki",
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/frontend/public/embed/anythingllm-chat-widget.min.js
frontend/public/embed/anythingllm-chat-widget.min.js
!function(_t,xe){"object"==typeof exports&&typeof module<"u"?xe(exports):"function"==typeof define&&define.amd?define(["exports"],xe):xe((_t=typeof globalThis<"u"?globalThis:_t||self).EmbeddedAnythingLLM={})}(this,(function(_t){"use strict";var Hg,Vg,aN=Object.defineProperty,r1=(_t,xe,Ht)=>(((_t,xe,Ht)=>{xe in _t?aN(_t,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):_t[xe]=Ht})(_t,"symbol"!=typeof xe?xe+"":xe,Ht),Ht),xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cc={exports:{}},sa={},Sc={exports:{}},te={},Yr=Symbol.for("react.element"),a1=Symbol.for("react.portal"),s1=Symbol.for("react.fragment"),i1=Symbol.for("react.strict_mode"),l1=Symbol.for("react.profiler"),u1=Symbol.for("react.provider"),c1=Symbol.for("react.context"),d1=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),f1=Symbol.for("react.memo"),m1=Symbol.for("react.lazy"),Nc=Symbol.iterator; /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wc=Object.assign,xc={};function ar(t,e,n){this.props=t,this.context=e,this.refs=xc,this.updater=n||Tc}function Rc(){}function ii(t,e,n){this.props=t,this.context=e,this.refs=xc,this.updater=n||Tc}ar.prototype.isReactComponent={},ar.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},ar.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Rc.prototype=ar.prototype;var li=ii.prototype=new Rc;li.constructor=ii,wc(li,ar.prototype),li.isPureReactComponent=!0;var Lc=Array.isArray,Oc=Object.prototype.hasOwnProperty,ui={current:null},kc={key:!0,ref:!0,__self:!0,__source:!0};function Ic(t,e,n){var r,o={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)Oc.call(e,r)&&!kc.hasOwnProperty(r)&&(o[r]=e[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var l=Array(i),u=0;u<i;u++)l[u]=arguments[u+2];o.children=l}if(t&&t.defaultProps)for(r in i=t.defaultProps)void 0===o[r]&&(o[r]=i[r]);return{$$typeof:Yr,type:t,key:a,ref:s,props:o,_owner:ui.current}}function ci(t){return"object"==typeof t&&null!==t&&t.$$typeof===Yr}var Mc=/\/+/g;function di(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(n){return e[n]}))}(""+t.key):e.toString(36)}function ia(t,e,n,r,o){var a=typeof t;("undefined"===a||"boolean"===a)&&(t=null);var s=!1;if(null===t)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Yr:case a1:s=!0}}if(s)return o=o(s=t),t=""===r?"."+di(s,0):r,Lc(o)?(n="",null!=t&&(n=t.replace(Mc,"$&/")+"/"),ia(o,e,n,"",(function(u){return u}))):null!=o&&(ci(o)&&(o=function(t,e){return{$$typeof:Yr,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Mc,"$&/")+"/")+t)),e.push(o)),1;if(s=0,r=""===r?".":r+":",Lc(t))for(var i=0;i<t.length;i++){var l=r+di(a=t[i],i);s+=ia(a,e,n,l,o)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=Nc&&t[Nc]||t["@@iterator"])?t:null}(t),"function"==typeof l)for(t=l.call(t),i=0;!(a=t.next()).done;)s+=ia(a=a.value,e,n,l=r+di(a,i++),o);else if("object"===a)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function la(t,e,n){if(null==t)return t;var r=[],o=0;return ia(t,r,"","",(function(a){return e.call(n,a,o++)})),r}function b1(t){if(-1===t._status){var e=t._result;(e=e()).then((function(n){(0===t._status||-1===t._status)&&(t._status=1,t._result=n)}),(function(n){(0===t._status||-1===t._status)&&(t._status=2,t._result=n)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var Xe={current:null},ua={transition:null},A1={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:ua,ReactCurrentOwner:ui};te.Children={map:la,forEach:function(t,e,n){la(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return la(t,(function(){e++})),e},toArray:function(t){return la(t,(function(e){return e}))||[]},only:function(t){if(!ci(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},te.Component=ar,te.Fragment=s1,te.Profiler=l1,te.PureComponent=ii,te.StrictMode=i1,te.Suspense=p1,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A1,te.cloneElement=function(t,e,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=wc({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,s=ui.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var i=t.type.defaultProps;for(l in e)Oc.call(e,l)&&!kc.hasOwnProperty(l)&&(r[l]=void 0===e[l]&&void 0!==i?i[l]:e[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){i=Array(l);for(var u=0;u<l;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:Yr,type:t.type,key:o,ref:a,props:r,_owner:s}},te.createContext=function(t){return(t={$$typeof:c1,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u1,_context:t},t.Consumer=t},te.createElement=Ic,te.createFactory=function(t){var e=Ic.bind(null,t);return e.type=t,e},te.createRef=function(){return{current:null}},te.forwardRef=function(t){return{$$typeof:d1,render:t}},te.isValidElement=ci,te.lazy=function(t){return{$$typeof:m1,_payload:{_status:-1,_result:t},_init:b1}},te.memo=function(t,e){return{$$typeof:f1,type:t,compare:void 0===e?null:e}},te.startTransition=function(t){var e=ua.transition;ua.transition={};try{t()}finally{ua.transition=e}},te.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},te.useCallback=function(t,e){return Xe.current.useCallback(t,e)},te.useContext=function(t){return Xe.current.useContext(t)},te.useDebugValue=function(){},te.useDeferredValue=function(t){return Xe.current.useDeferredValue(t)},te.useEffect=function(t,e){return Xe.current.useEffect(t,e)},te.useId=function(){return Xe.current.useId()},te.useImperativeHandle=function(t,e,n){return Xe.current.useImperativeHandle(t,e,n)},te.useInsertionEffect=function(t,e){return Xe.current.useInsertionEffect(t,e)},te.useLayoutEffect=function(t,e){return Xe.current.useLayoutEffect(t,e)},te.useMemo=function(t,e){return Xe.current.useMemo(t,e)},te.useReducer=function(t,e,n){return Xe.current.useReducer(t,e,n)},te.useRef=function(t){return Xe.current.useRef(t)},te.useState=function(t){return Xe.current.useState(t)},te.useSyncExternalStore=function(t,e,n){return Xe.current.useSyncExternalStore(t,e,n)},te.useTransition=function(){return Xe.current.useTransition()},te.version="18.2.0",Sc.exports=te;var U=Sc.exports;const m=Ht(U); /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _1=U,v1=Symbol.for("react.element"),y1=Symbol.for("react.fragment"),D1=Object.prototype.hasOwnProperty,C1=_1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S1={key:!0,ref:!0,__self:!0,__source:!0};function Fc(t,e,n){var r,o={},a=null,s=null;for(r in void 0!==n&&(a=""+n),void 0!==e.key&&(a=""+e.key),void 0!==e.ref&&(s=e.ref),e)D1.call(e,r)&&!S1.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:v1,type:t,key:a,ref:s,props:o,_owner:C1.current}}sa.Fragment=y1,sa.jsx=Fc,sa.jsxs=Fc,Cc.exports=sa;var w=Cc.exports,pi={},Bc={exports:{}},ct={},Pc={exports:{}},Uc={}; /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(t){function e(S,C){var L=S.length;S.push(C);e:for(;0<L;){var k=L-1>>>1,$=S[k];if(!(0<o($,C)))break e;S[k]=C,S[L]=$,L=k}}function n(S){return 0===S.length?null:S[0]}function r(S){if(0===S.length)return null;var C=S[0],L=S.pop();if(L!==C){S[0]=L;e:for(var k=0,$=S.length,j=$>>>1;k<j;){var ge=2*(k+1)-1,pe=S[ge],ue=ge+1,ce=S[ue];if(0>o(pe,L))ue<$&&0>o(ce,pe)?(S[k]=ce,S[ue]=L,k=ue):(S[k]=pe,S[ge]=L,k=ge);else{if(!(ue<$&&0>o(ce,L)))break e;S[k]=ce,S[ue]=L,k=ue}}}return C}function o(S,C){var L=S.sortIndex-C.sortIndex;return 0!==L?L:S.id-C.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,i=s.now();t.unstable_now=function(){return s.now()-i}}var l=[],u=[],c=1,p=null,d=3,f=!1,b=!1,A=!1,y="function"==typeof setTimeout?setTimeout:null,h="function"==typeof clearTimeout?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function E(S){for(var C=n(u);null!==C;){if(null===C.callback)r(u);else{if(!(C.startTime<=S))break;r(u),C.sortIndex=C.expirationTime,e(l,C)}C=n(u)}}function _(S){if(A=!1,E(S),!b)if(null!==n(l))b=!0,B(N);else{var C=n(u);null!==C&&x(_,C.startTime-S)}}function N(S,C){b=!1,A&&(A=!1,h(R),R=-1),f=!0;var L=d;try{for(E(C),p=n(l);null!==p&&(!(p.expirationTime>C)||S&&!W());){var k=p.callback;if("function"==typeof k){p.callback=null,d=p.priorityLevel;var $=k(p.expirationTime<=C);C=t.unstable_now(),"function"==typeof $?p.callback=$:p===n(l)&&r(l),E(C)}else r(l);p=n(l)}if(null!==p)var j=!0;else{var ge=n(u);null!==ge&&x(_,ge.startTime-C),j=!1}return j}finally{p=null,d=L,f=!1}}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var K,v=!1,T=null,R=-1,H=5,I=-1;function W(){return!(t.unstable_now()-I<H)}function le(){if(null!==T){var S=t.unstable_now();I=S;var C=!0;try{C=T(!0,S)}finally{C?K():(v=!1,T=null)}}else v=!1}if("function"==typeof g)K=function(){g(le)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,V=O.port2;O.port1.onmessage=le,K=function(){V.postMessage(null)}}else K=function(){y(le,0)};function B(S){T=S,v||(v=!0,K())}function x(S,C){R=y((function(){S(t.unstable_now())}),C)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(S){S.callback=null},t.unstable_continueExecution=function(){b||f||(b=!0,B(N))},t.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<S?Math.floor(1e3/S):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(S){switch(d){case 1:case 2:case 3:var C=3;break;default:C=d}var L=d;d=C;try{return S()}finally{d=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(S,C){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var L=d;d=S;try{return C()}finally{d=L}},t.unstable_scheduleCallback=function(S,C,L){var k=t.unstable_now();switch("object"==typeof L&&null!==L?L="number"==typeof(L=L.delay)&&0<L?k+L:k:L=k,S){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return S={id:c++,callback:C,priorityLevel:S,startTime:L,expirationTime:$=L+$,sortIndex:-1},L>k?(S.sortIndex=L,e(u,S),null===n(l)&&S===n(u)&&(A?(h(R),R=-1):A=!0,x(_,L-k))):(S.sortIndex=$,e(l,S),b||f||(b=!0,B(N))),S},t.unstable_shouldYield=W,t.unstable_wrapCallback=function(S){var C=d;return function(){var L=d;d=C;try{return S.apply(this,arguments)}finally{d=L}}}})(Uc),Pc.exports=Uc;var N1=Pc.exports,qc=U,dt=N1; /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/index.js
server/index.js
process.env.NODE_ENV === "development" ? require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` }) : require("dotenv").config(); require("./utils/logger")(); const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const path = require("path"); const { reqBody } = require("./utils/http"); const { systemEndpoints } = require("./endpoints/system"); const { workspaceEndpoints } = require("./endpoints/workspaces"); const { chatEndpoints } = require("./endpoints/chat"); const { embeddedEndpoints } = require("./endpoints/embed"); const { embedManagementEndpoints } = require("./endpoints/embedManagement"); const { getVectorDbClass } = require("./utils/helpers"); const { adminEndpoints } = require("./endpoints/admin"); const { inviteEndpoints } = require("./endpoints/invite"); const { utilEndpoints } = require("./endpoints/utils"); const { developerEndpoints } = require("./endpoints/api"); const { extensionEndpoints } = require("./endpoints/extensions"); const { bootHTTP, bootSSL } = require("./utils/boot"); const { workspaceThreadEndpoints } = require("./endpoints/workspaceThreads"); const { documentEndpoints } = require("./endpoints/document"); const { agentWebsocket } = require("./endpoints/agentWebsocket"); const { experimentalEndpoints } = require("./endpoints/experimental"); const { browserExtensionEndpoints } = require("./endpoints/browserExtension"); const { communityHubEndpoints } = require("./endpoints/communityHub"); const { agentFlowEndpoints } = require("./endpoints/agentFlows"); const { mcpServersEndpoints } = require("./endpoints/mcpServers"); const { mobileEndpoints } = require("./endpoints/mobile"); const { httpLogger } = require("./middleware/httpLogger"); const app = express(); const apiRouter = express.Router(); const FILE_LIMIT = "3GB"; // Only log HTTP requests in development mode and if the ENABLE_HTTP_LOGGER environment variable is set to true if ( process.env.NODE_ENV === "development" && !!process.env.ENABLE_HTTP_LOGGER ) { app.use( httpLogger({ enableTimestamps: !!process.env.ENABLE_HTTP_LOGGER_TIMESTAMPS, }) ); } app.use(cors({ origin: true })); app.use(bodyParser.text({ limit: FILE_LIMIT })); app.use(bodyParser.json({ limit: FILE_LIMIT })); app.use( bodyParser.urlencoded({ limit: FILE_LIMIT, extended: true, }) ); if (!!process.env.ENABLE_HTTPS) { bootSSL(app, process.env.SERVER_PORT || 3001); } else { require("@mintplex-labs/express-ws").default(app); // load WebSockets in non-SSL mode. } app.use("/api", apiRouter); systemEndpoints(apiRouter); extensionEndpoints(apiRouter); workspaceEndpoints(apiRouter); workspaceThreadEndpoints(apiRouter); chatEndpoints(apiRouter); adminEndpoints(apiRouter); inviteEndpoints(apiRouter); embedManagementEndpoints(apiRouter); utilEndpoints(apiRouter); documentEndpoints(apiRouter); agentWebsocket(apiRouter); experimentalEndpoints(apiRouter); developerEndpoints(app, apiRouter); communityHubEndpoints(apiRouter); agentFlowEndpoints(apiRouter); mcpServersEndpoints(apiRouter); mobileEndpoints(apiRouter); // Externally facing embedder endpoints embeddedEndpoints(apiRouter); // Externally facing browser extension endpoints browserExtensionEndpoints(apiRouter); if (process.env.NODE_ENV !== "development") { const { MetaGenerator } = require("./utils/boot/MetaGenerator"); const IndexPage = new MetaGenerator(); app.use( express.static(path.resolve(__dirname, "public"), { extensions: ["js"], setHeaders: (res) => { // Disable I-framing of entire site UI res.removeHeader("X-Powered-By"); res.setHeader("X-Frame-Options", "DENY"); }, }) ); app.get("/robots.txt", function (_, response) { response.type("text/plain"); response.send("User-agent: *\nDisallow: /").end(); }); app.get("/manifest.json", async function (_, response) { IndexPage.generateManifest(response); return; }); app.use("/", function (_, response) { IndexPage.generate(response); return; }); } else { // Debug route for development connections to vectorDBs apiRouter.post("/v/:command", async (request, response) => { try { const VectorDb = getVectorDbClass(); const { command } = request.params; if (!Object.getOwnPropertyNames(VectorDb).includes(command)) { response.status(500).json({ message: "invalid interface command", commands: Object.getOwnPropertyNames(VectorDb), }); return; } try { const body = reqBody(request); const resBody = await VectorDb[command](body); response.status(200).json({ ...resBody }); } catch (e) { // console.error(e) console.error(JSON.stringify(e)); response.status(500).json({ error: e.message }); } return; } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); } app.all("*", function (_, response) { response.sendStatus(404); }); // In non-https mode we need to boot at the end since the server has not yet // started and is `.listen`ing. if (!process.env.ENABLE_HTTPS) bootHTTP(app, process.env.SERVER_PORT || 3001);
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/jobs/cleanup-orphan-documents.js
server/jobs/cleanup-orphan-documents.js
const fs = require('fs'); const path = require('path'); const { default: slugify } = require("slugify"); const { log, conclude } = require('./helpers/index.js'); const { WorkspaceParsedFiles } = require('../models/workspaceParsedFiles.js'); const { directUploadsPath } = require('../utils/files'); async function batchDeleteFiles(filesToDelete, batchSize = 500) { let deletedCount = 0; let failedCount = 0; for (let i = 0; i < filesToDelete.length; i += batchSize) { const batch = filesToDelete.slice(i, i + batchSize); try { await Promise.all(batch.map(filePath => fs.unlink(filePath))); deletedCount += batch.length; log(`Deleted batch ${Math.floor(i / batchSize) + 1}: ${batch.length} files`); } catch (err) { // If batch fails, try individual files sync for (const filePath of batch) { try { fs.unlinkSync(filePath); deletedCount++; } catch (fileErr) { failedCount++; log(`Failed to delete ${filePath}: ${fileErr.message}`); } } } } return { deletedCount, failedCount }; } (async () => { try { const filesToDelete = []; const knownFiles = await WorkspaceParsedFiles .where({}, null, null, { filename: true }) // Slugify the filename to match the direct uploads naming convention otherwise // files with spaces will not result in a match and will be pruned when attached to a thread. // This could then result in files showing "Attached" but the model not seeing them during chat. .then(files => new Set(files.map(f => slugify(f.filename)))); if (!fs.existsSync(directUploadsPath)) return log('No direct uploads path found - exiting.'); const filesInDirectUploadsPath = fs.readdirSync(directUploadsPath); if (filesInDirectUploadsPath.length === 0) return; for (let i = 0; i < filesInDirectUploadsPath.length; i++) { const file = filesInDirectUploadsPath[i]; if (knownFiles.has(file)) continue; filesToDelete.push(path.resolve(directUploadsPath, file)); } if (filesToDelete.length === 0) return; // No orphaned files to delete log(`Found ${filesToDelete.length} orphaned files to delete`); const { deletedCount, failedCount } = await batchDeleteFiles(filesToDelete); log(`Deleted ${deletedCount} orphaned files`); if (failedCount > 0) log(`Failed to delete ${failedCount} files`); } catch (e) { console.error(e) log(`errored with ${e.message}`) } finally { conclude(); } })();
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/jobs/sync-watched-documents.js
server/jobs/sync-watched-documents.js
const { Document } = require('../models/documents.js'); const { DocumentSyncQueue } = require('../models/documentSyncQueue.js'); const { CollectorApi } = require('../utils/collectorApi'); const { fileData } = require("../utils/files"); const { log, conclude, updateSourceDocument } = require('./helpers/index.js'); const { getVectorDbClass } = require('../utils/helpers/index.js'); const { DocumentSyncRun } = require('../models/documentSyncRun.js'); (async () => { try { const queuesToProcess = await DocumentSyncQueue.staleDocumentQueues(); if (queuesToProcess.length === 0) { log('No outstanding documents to sync. Exiting.'); return; } const collector = new CollectorApi(); if (!(await collector.online())) { log('Could not reach collector API. Exiting.'); return; } log(`${queuesToProcess.length} watched documents have been found to be stale and will be updated now.`) for (const queue of queuesToProcess) { let newContent = null; const document = queue.workspaceDoc; const workspace = document.workspace; const { metadata, type, source } = Document.parseDocumentTypeAndSource(document); if (!metadata || !DocumentSyncQueue.validFileTypes.includes(type)) { // Document is either broken, invalid, or not supported so drop it from future queues. log(`Document ${document.filename} has no metadata, is broken, or invalid and has been removed from all future runs.`) await DocumentSyncQueue.unwatch(document); continue; } if (['link', 'youtube'].includes(type)) { const response = await collector.forwardExtensionRequest({ endpoint: "/ext/resync-source-document", method: "POST", body: JSON.stringify({ type, options: { link: source } }) }); newContent = response?.content; } if (['confluence', 'github', 'gitlab', 'drupalwiki'].includes(type)) { const response = await collector.forwardExtensionRequest({ endpoint: "/ext/resync-source-document", method: "POST", body: JSON.stringify({ type, options: { chunkSource: metadata.chunkSource } }) }); newContent = response?.content; } if (!newContent) { // Check if the last "x" runs were all failures (not exits!). If so - remove the job entirely since it is broken. const failedRunCount = (await DocumentSyncRun.where({ queueId: queue.id }, DocumentSyncQueue.maxRepeatFailures, { createdAt: 'desc' })).filter((run) => run.status === DocumentSyncRun.statuses.failed).length; if (failedRunCount >= DocumentSyncQueue.maxRepeatFailures) { log(`Document ${document.filename} has failed to refresh ${failedRunCount} times continuously and will now be removed from the watched document set.`) await DocumentSyncQueue.unwatch(document); continue; } log(`Failed to get a new content response from collector for source ${source}. Skipping, but will retry next worker interval. Attempt ${failedRunCount === 0 ? 1 : failedRunCount}/${DocumentSyncQueue.maxRepeatFailures}`); await DocumentSyncQueue.saveRun(queue.id, DocumentSyncRun.statuses.failed, { filename: document.filename, workspacesModified: [], reason: 'No content found.' }) continue; } const currentDocumentData = await fileData(document.docpath) if (currentDocumentData.pageContent === newContent) { const nextSync = DocumentSyncQueue.calcNextSync(queue) log(`Source ${source} is unchanged and will be skipped. Next sync will be ${nextSync.toLocaleString()}.`); await DocumentSyncQueue._update( queue.id, { lastSyncedAt: new Date().toISOString(), nextSyncAt: nextSync.toISOString(), } ); await DocumentSyncQueue.saveRun(queue.id, DocumentSyncRun.statuses.exited, { filename: document.filename, workspacesModified: [], reason: 'Content unchanged.' }) continue; } // update the defined document and workspace vectorDB with the latest information // it will skip cache and create a new vectorCache file. const vectorDatabase = getVectorDbClass(); await vectorDatabase.deleteDocumentFromNamespace(workspace.slug, document.docId); await vectorDatabase.addDocumentToNamespace( workspace.slug, { ...currentDocumentData, pageContent: newContent, docId: document.docId }, document.docpath, true ); updateSourceDocument( document.docpath, { ...currentDocumentData, pageContent: newContent, docId: document.docId, published: (new Date).toLocaleString(), // Todo: Update word count and token_estimate? } ) log(`Workspace "${workspace.name}" vectors of ${source} updated. Document and vector cache updated.`) // Now we can bloom the results to all matching documents in all other workspaces const workspacesModified = [workspace.slug]; const moreReferences = await Document.where({ id: { not: document.id }, filename: document.filename }, null, null, { workspace: true }); if (moreReferences.length !== 0) { log(`${source} is referenced in ${moreReferences.length} other workspaces. Updating those workspaces as well...`) for (const additionalDocumentRef of moreReferences) { const additionalWorkspace = additionalDocumentRef.workspace; workspacesModified.push(additionalWorkspace.slug); await vectorDatabase.deleteDocumentFromNamespace(additionalWorkspace.slug, additionalDocumentRef.docId); await vectorDatabase.addDocumentToNamespace( additionalWorkspace.slug, { ...currentDocumentData, pageContent: newContent, docId: additionalDocumentRef.docId }, additionalDocumentRef.docpath, ); log(`Workspace "${additionalWorkspace.name}" vectors for ${source} was also updated with the new content from cache.`) } } const nextRefresh = DocumentSyncQueue.calcNextSync(queue); log(`${source} has been refreshed in all workspaces it is currently referenced in. Next refresh will be ${nextRefresh.toLocaleString()}.`) await DocumentSyncQueue._update( queue.id, { lastSyncedAt: new Date().toISOString(), nextSyncAt: nextRefresh.toISOString(), } ); await DocumentSyncQueue.saveRun(queue.id, DocumentSyncRun.statuses.success, { filename: document.filename, workspacesModified }) } } catch (e) { console.error(e) log(`errored with ${e.message}`) } finally { conclude(); } })();
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/jobs/helpers/index.js
server/jobs/helpers/index.js
const path = require('node:path'); const fs = require('node:fs'); const { parentPort } = require('node:worker_threads'); const documentsPath = process.env.NODE_ENV === "development" ? path.resolve(__dirname, `../../storage/documents`) : path.resolve(process.env.STORAGE_DIR, `documents`); function log(stringContent = '') { if (parentPort) parentPort.postMessage(`\x1b[33m[${process.pid}]\x1b[0m: ${stringContent}`); // running as worker else process.send(`\x1b[33m[${process.ppid}:${process.pid}]\x1b[0m: ${stringContent}`); // running as child_process } function conclude() { if (parentPort) parentPort.postMessage('done'); else process.exit(0); } function updateSourceDocument(docPath = null, jsonContent = {}) { const destinationFilePath = path.resolve(documentsPath, docPath); fs.writeFileSync(destinationFilePath, JSON.stringify(jsonContent, null, 4), { encoding: "utf-8", }); } module.exports = { log, conclude, updateSourceDocument, }
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/middleware/httpLogger.js
server/middleware/httpLogger.js
const httpLogger = ({ enableTimestamps = false }) => (req, res, next) => { // Capture the original res.end to log response status const originalEnd = res.end; res.end = function (chunk, encoding) { // Log the request method, status code, and path const statusColor = res.statusCode >= 400 ? "\x1b[31m" : "\x1b[32m"; // Red for errors, green for success console.log( `\x1b[32m[HTTP]\x1b[0m ${statusColor}${res.statusCode}\x1b[0m ${req.method} -> ${req.path} ${enableTimestamps ? `@ ${new Date().toLocaleTimeString("en-US", { hour12: true })}` : ""}`.trim() ); // Call the original end method return originalEnd.call(this, chunk, encoding); }; next(); }; module.exports = { httpLogger, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/workspaceThreads.js
server/endpoints/workspaceThreads.js
const { multiUserMode, userFromSession, reqBody, safeJsonParse, } = require("../utils/http"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { Telemetry } = require("../models/telemetry"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { EventLogs } = require("../models/eventLogs"); const { WorkspaceThread } = require("../models/workspaceThread"); const { validWorkspaceSlug, validWorkspaceAndThreadSlug, } = require("../utils/middleware/validWorkspace"); const { WorkspaceChats } = require("../models/workspaceChats"); const { convertToChatHistory } = require("../utils/helpers/chat/responses"); const { getModelTag } = require("./utils"); function workspaceThreadEndpoints(app) { if (!app) return; app.post( "/workspace/:slug/thread/new", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; const { thread, message } = await WorkspaceThread.new( workspace, user?.id ); await Telemetry.sendTelemetry( "workspace_thread_created", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }, user?.id ); await EventLogs.logEvent( "workspace_thread_created", { workspaceName: workspace?.name || "Unknown Workspace", }, user?.id ); response.status(200).json({ thread, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspace/:slug/threads", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; const threads = await WorkspaceThread.where({ workspace_id: workspace.id, user_id: user?.id || null, }); response.status(200).json({ threads }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/thread/:threadSlug", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (_, response) => { try { const thread = response.locals.thread; await WorkspaceThread.delete({ id: thread.id }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/thread-bulk-delete", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const { slugs = [] } = reqBody(request); if (slugs.length === 0) return response.sendStatus(200).end(); const user = await userFromSession(request, response); const workspace = response.locals.workspace; await WorkspaceThread.delete({ slug: { in: slugs }, user_id: user?.id ?? null, workspace_id: workspace.id, }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspace/:slug/thread/:threadSlug/chats", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (request, response) => { try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; const thread = response.locals.thread; const history = await WorkspaceChats.where( { workspaceId: workspace.id, user_id: user?.id || null, thread_id: thread.id, api_session_id: null, // Do not include API session chats. include: true, }, null, { id: "asc" } ); response.status(200).json({ history: convertToChatHistory(history) }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/thread/:threadSlug/update", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (request, response) => { try { const data = reqBody(request); const currentThread = response.locals.thread; const { thread, message } = await WorkspaceThread.update( currentThread, data ); response.status(200).json({ thread, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/thread/:threadSlug/delete-edited-chats", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (request, response) => { try { const { startingId } = reqBody(request); const user = await userFromSession(request, response); const workspace = response.locals.workspace; const thread = response.locals.thread; await WorkspaceChats.delete({ workspaceId: Number(workspace.id), thread_id: Number(thread.id), user_id: user?.id, id: { gte: Number(startingId) }, }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/thread/:threadSlug/update-chat", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (request, response) => { try { const { chatId, newText = null } = reqBody(request); if (!newText || !String(newText).trim()) throw new Error("Cannot save empty response"); const user = await userFromSession(request, response); const workspace = response.locals.workspace; const thread = response.locals.thread; const existingChat = await WorkspaceChats.get({ workspaceId: workspace.id, thread_id: thread.id, user_id: user?.id, id: Number(chatId), }); if (!existingChat) throw new Error("Invalid chat."); const chatResponse = safeJsonParse(existingChat.response, null); if (!chatResponse) throw new Error("Failed to parse chat response"); await WorkspaceChats._update(existingChat.id, { response: JSON.stringify({ ...chatResponse, text: String(newText), }), }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); } module.exports = { workspaceThreadEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/mcpServers.js
server/endpoints/mcpServers.js
const { reqBody } = require("../utils/http"); const MCPCompatibilityLayer = require("../utils/MCP"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); function mcpServersEndpoints(app) { if (!app) return; app.get( "/mcp-servers/force-reload", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_request, response) => { try { const mcp = new MCPCompatibilityLayer(); await mcp.reloadMCPServers(); return response.status(200).json({ success: true, error: null, servers: await mcp.servers(), }); } catch (error) { console.error("Error force reloading MCP servers:", error); return response.status(500).json({ success: false, error: error.message, servers: [], }); } } ); app.get( "/mcp-servers/list", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_request, response) => { try { const servers = await new MCPCompatibilityLayer().servers(); return response.status(200).json({ success: true, servers, }); } catch (error) { console.error("Error listing MCP servers:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); app.post( "/mcp-servers/toggle", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { name } = reqBody(request); const result = await new MCPCompatibilityLayer().toggleServerStatus( name ); return response.status(200).json({ success: result.success, error: result.error, }); } catch (error) { console.error("Error toggling MCP server:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); app.post( "/mcp-servers/delete", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { name } = reqBody(request); const result = await new MCPCompatibilityLayer().deleteServer(name); return response.status(200).json({ success: result.success, error: result.error, }); } catch (error) { console.error("Error deleting MCP server:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); } module.exports = { mcpServersEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/agentWebsocket.js
server/endpoints/agentWebsocket.js
const { Telemetry } = require("../models/telemetry"); const { WorkspaceAgentInvocation, } = require("../models/workspaceAgentInvocation"); const { AgentHandler } = require("../utils/agents"); const { WEBSOCKET_BAIL_COMMANDS, } = require("../utils/agents/aibitat/plugins/websocket"); const { safeJsonParse } = require("../utils/http"); // Setup listener for incoming messages to relay to socket so it can be handled by agent plugin. function relayToSocket(message) { if (this.handleFeedback) return this?.handleFeedback?.(message); this.checkBailCommand(message); } function agentWebsocket(app) { if (!app) return; app.ws("/agent-invocation/:uuid", async function (socket, request) { try { const agentHandler = await new AgentHandler({ uuid: String(request.params.uuid), }).init(); if (!agentHandler.invocation) { socket.close(); return; } socket.on("message", relayToSocket); socket.on("close", () => { agentHandler.closeAlert(); WorkspaceAgentInvocation.close(String(request.params.uuid)); return; }); socket.checkBailCommand = (data) => { const content = safeJsonParse(data)?.feedback; if (WEBSOCKET_BAIL_COMMANDS.includes(content)) { agentHandler.log( `User invoked bail command while processing. Closing session now.` ); agentHandler.aibitat.abort(); socket.close(); return; } }; await Telemetry.sendTelemetry("agent_chat_started"); await agentHandler.createAIbitat({ socket }); await agentHandler.startAgentCluster(); } catch (e) { console.error(e.message, e); socket?.send(JSON.stringify({ type: "wssFailure", content: e.message })); socket?.close(); } }); } module.exports = { agentWebsocket };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/chat.js
server/endpoints/chat.js
const { v4: uuidv4 } = require("uuid"); const { reqBody, userFromSession, multiUserMode } = require("../utils/http"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { Telemetry } = require("../models/telemetry"); const { streamChatWithWorkspace } = require("../utils/chats/stream"); const { ROLES, flexUserRoleValid, } = require("../utils/middleware/multiUserProtected"); const { EventLogs } = require("../models/eventLogs"); const { validWorkspaceAndThreadSlug, validWorkspaceSlug, } = require("../utils/middleware/validWorkspace"); const { writeResponseChunk } = require("../utils/helpers/chat/responses"); const { WorkspaceThread } = require("../models/workspaceThread"); const { User } = require("../models/user"); const truncate = require("truncate"); const { getModelTag } = require("./utils"); function chatEndpoints(app) { if (!app) return; app.post( "/workspace/:slug/stream-chat", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const user = await userFromSession(request, response); const { message, attachments = [] } = reqBody(request); const workspace = response.locals.workspace; if (!message?.length) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty." : null, }); return; } response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); if (multiUserMode(response) && !(await User.canSendChat(user))) { writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `You have met your maximum 24 hour chat quota of ${user.dailyMessageLimit} chats. Try again later.`, }); return; } await streamChatWithWorkspace( response, workspace, message, workspace?.chatMode, user, null, attachments ); await Telemetry.sendTelemetry("sent_chat", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", multiModal: Array.isArray(attachments) && attachments?.length !== 0, TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent( "sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", }, user?.id ); response.end(); } catch (e) { console.error(e); writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); response.end(); } } ); app.post( "/workspace/:slug/thread/:threadSlug/stream-chat", [ validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceAndThreadSlug, ], async (request, response) => { try { const user = await userFromSession(request, response); const { message, attachments = [] } = reqBody(request); const workspace = response.locals.workspace; const thread = response.locals.thread; if (!message?.length) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty." : null, }); return; } response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); if (multiUserMode(response) && !(await User.canSendChat(user))) { writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `You have met your maximum 24 hour chat quota of ${user.dailyMessageLimit} chats. Try again later.`, }); return; } await streamChatWithWorkspace( response, workspace, message, workspace?.chatMode, user, thread, attachments ); // If thread was renamed emit event to frontend via special `action` response. await WorkspaceThread.autoRenameThread({ thread, workspace, user, newName: truncate(message, 22), onRename: (thread) => { writeResponseChunk(response, { action: "rename_thread", thread: { slug: thread.slug, name: thread.name, }, }); }, }); await Telemetry.sendTelemetry("sent_chat", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", multiModal: Array.isArray(attachments) && attachments?.length !== 0, TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent( "sent_chat", { workspaceName: workspace.name, thread: thread.name, chatModel: workspace?.chatModel || "System Default", }, user?.id ); response.end(); } catch (e) { console.error(e); writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); response.end(); } } ); } module.exports = { chatEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/embedManagement.js
server/endpoints/embedManagement.js
const { EmbedChats } = require("../models/embedChats"); const { EmbedConfig } = require("../models/embedConfig"); const { EventLogs } = require("../models/eventLogs"); const { reqBody, userFromSession } = require("../utils/http"); const { validEmbedConfigId } = require("../utils/middleware/embedMiddleware"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { chatHistoryViewable, } = require("../utils/middleware/chatHistoryViewable"); function embedManagementEndpoints(app) { if (!app) return; app.get( "/embeds", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_, response) => { try { const embeds = await EmbedConfig.whereWithWorkspace({}, null, { createdAt: "desc", }); response.status(200).json({ embeds }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/embeds/new", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const user = await userFromSession(request, response); const data = reqBody(request); const { embed, message: error } = await EmbedConfig.new(data, user?.id); await EventLogs.logEvent( "embed_created", { embedId: embed.id }, user?.id ); response.status(200).json({ embed, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/embed/update/:embedId", [validatedRequest, flexUserRoleValid([ROLES.admin]), validEmbedConfigId], async (request, response) => { try { const user = await userFromSession(request, response); const { embedId } = request.params; const updates = reqBody(request); const { success, error } = await EmbedConfig.update(embedId, updates); await EventLogs.logEvent("embed_updated", { embedId }, user?.id); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/embed/:embedId", [validatedRequest, flexUserRoleValid([ROLES.admin]), validEmbedConfigId], async (request, response) => { try { const { embedId } = request.params; await EmbedConfig.delete({ id: Number(embedId) }); await EventLogs.logEvent( "embed_deleted", { embedId }, response?.locals?.user?.id ); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/embed/chats", [chatHistoryViewable, validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { offset = 0, limit = 20 } = reqBody(request); const embedChats = await EmbedChats.whereWithEmbedAndWorkspace( {}, limit, { id: "desc" }, offset * limit ); const totalChats = await EmbedChats.count(); const hasPages = totalChats > (offset + 1) * limit; response.status(200).json({ chats: embedChats, hasPages, totalChats }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/embed/chats/:chatId", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { chatId } = request.params; await EmbedChats.delete({ id: Number(chatId) }); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { embedManagementEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/invite.js
server/endpoints/invite.js
const { EventLogs } = require("../models/eventLogs"); const { Invite } = require("../models/invite"); const { User } = require("../models/user"); const { reqBody } = require("../utils/http"); const { simpleSSOLoginDisabledMiddleware, } = require("../utils/middleware/simpleSSOEnabled"); function inviteEndpoints(app) { if (!app) return; app.get("/invite/:code", async (request, response) => { try { const { code } = request.params; const invite = await Invite.get({ code }); if (!invite) { response.status(200).json({ invite: null, error: "Invite not found." }); return; } if (invite.status !== "pending") { response .status(200) .json({ invite: null, error: "Invite is no longer valid." }); return; } response .status(200) .json({ invite: { code, status: invite.status }, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.post( "/invite/:code", [simpleSSOLoginDisabledMiddleware], async (request, response) => { try { const { code } = request.params; const { username, password } = reqBody(request); const invite = await Invite.get({ code }); if (!invite || invite.status !== "pending") { response .status(200) .json({ success: false, error: "Invite not found or is invalid." }); return; } const { user, error } = await User.create({ username, password, role: "default", }); if (!user) { console.error("Accepting invite:", error); response.status(200).json({ success: false, error }); return; } await Invite.markClaimed(invite.id, user); await EventLogs.logEvent( "invite_accepted", { username: user.username, }, user.id ); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { inviteEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/document.js
server/endpoints/document.js
const { Document } = require("../models/documents"); const { normalizePath, documentsPath, isWithin } = require("../utils/files"); const { reqBody } = require("../utils/http"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const fs = require("fs"); const path = require("path"); function documentEndpoints(app) { if (!app) return; app.post( "/document/create-folder", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { name } = reqBody(request); const storagePath = path.join(documentsPath, normalizePath(name)); if (!isWithin(path.resolve(documentsPath), path.resolve(storagePath))) throw new Error("Invalid folder name."); if (fs.existsSync(storagePath)) { response.status(500).json({ success: false, message: "Folder by that name already exists", }); return; } fs.mkdirSync(storagePath, { recursive: true }); response.status(200).json({ success: true, message: null }); } catch (e) { console.error(e); response.status(500).json({ success: false, message: `Failed to create folder: ${e.message} `, }); } } ); app.post( "/document/move-files", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { files } = reqBody(request); const docpaths = files.map(({ from }) => from); const documents = await Document.where({ docpath: { in: docpaths } }); const embeddedFiles = documents.map((doc) => doc.docpath); const moveableFiles = files.filter( ({ from }) => !embeddedFiles.includes(from) ); const movePromises = moveableFiles.map(({ from, to }) => { const sourcePath = path.join(documentsPath, normalizePath(from)); const destinationPath = path.join(documentsPath, normalizePath(to)); return new Promise((resolve, reject) => { if ( !isWithin(documentsPath, sourcePath) || !isWithin(documentsPath, destinationPath) ) return reject("Invalid file location"); fs.rename(sourcePath, destinationPath, (err) => { if (err) { console.error(`Error moving file ${from} to ${to}:`, err); reject(err); } else { resolve(); } }); }); }); Promise.all(movePromises) .then(() => { const unmovableCount = files.length - moveableFiles.length; if (unmovableCount > 0) { response.status(200).json({ success: true, message: `${unmovableCount}/${files.length} files not moved. Unembed them from all workspaces.`, }); } else { response.status(200).json({ success: true, message: null, }); } }) .catch((err) => { console.error("Error moving files:", err); response .status(500) .json({ success: false, message: "Failed to move some files." }); }); } catch (e) { console.error(e); response .status(500) .json({ success: false, message: "Failed to move files." }); } } ); } module.exports = { documentEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/workspacesParsedFiles.js
server/endpoints/workspacesParsedFiles.js
const { reqBody, multiUserMode, userFromSession } = require("../utils/http"); const { handleFileUpload } = require("../utils/files/multer"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { Telemetry } = require("../models/telemetry"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { EventLogs } = require("../models/eventLogs"); const { validWorkspaceSlug } = require("../utils/middleware/validWorkspace"); const { CollectorApi } = require("../utils/collectorApi"); const { WorkspaceThread } = require("../models/workspaceThread"); const { WorkspaceParsedFiles } = require("../models/workspaceParsedFiles"); function workspaceParsedFilesEndpoints(app) { if (!app) return; app.get( "/workspace/:slug/parsed-files", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const threadSlug = request.query.threadSlug || null; const user = await userFromSession(request, response); const workspace = response.locals.workspace; const thread = threadSlug ? await WorkspaceThread.get({ slug: String(threadSlug) }) : null; const { files, contextWindow, currentContextTokenCount } = await WorkspaceParsedFiles.getContextMetadataAndLimits( workspace, thread || null, multiUserMode(response) ? user : null ); return response .status(200) .json({ files, contextWindow, currentContextTokenCount }); } catch (e) { console.error(e.message, e); return response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/delete-parsed-files", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async function (request, response) { try { const { fileIds = [] } = reqBody(request); if (!fileIds.length) return response.sendStatus(400).end(); const success = await WorkspaceParsedFiles.delete({ id: { in: fileIds.map((id) => parseInt(id)) }, }); return response.status(success ? 200 : 500).end(); } catch (e) { console.error(e.message, e); return response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/embed-parsed-file/:fileId", [ validatedRequest, // Embed is still an admin/manager only feature flexUserRoleValid([ROLES.admin, ROLES.manager]), validWorkspaceSlug, ], async function (request, response) { const { fileId = null } = request.params; try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; if (!fileId) return response.sendStatus(400).end(); const { success, error, document } = await WorkspaceParsedFiles.moveToDocumentsAndEmbed(fileId, workspace); if (!success) { return response.status(500).json({ success: false, error: error || "Failed to embed file", }); } await Telemetry.sendTelemetry("document_embedded"); await EventLogs.logEvent( "document_embedded", { documentName: document?.name || "unknown", workspaceId: workspace.id, }, user?.id ); return response.status(200).json({ success: true, error: null, document, }); } catch (e) { console.error(e.message, e); return response.sendStatus(500).end(); } finally { if (!fileId) return; await WorkspaceParsedFiles.delete({ id: parseInt(fileId) }); } } ); app.post( "/workspace/:slug/parse", [ validatedRequest, flexUserRoleValid([ROLES.all]), handleFileUpload, validWorkspaceSlug, ], async function (request, response) { try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; const Collector = new CollectorApi(); const { originalname } = request.file; const processingOnline = await Collector.online(); if (!processingOnline) { return response.status(500).json({ success: false, error: `Document processing API is not online. Document ${originalname} will not be parsed.`, }); } const { success, reason, documents } = await Collector.parseDocument(originalname); if (!success || !documents?.[0]) { return response.status(500).json({ success: false, error: reason || "No document returned from collector", }); } // Get thread ID if we have a slug const { threadSlug = null } = reqBody(request); const thread = threadSlug ? await WorkspaceThread.get({ slug: String(threadSlug), workspace_id: workspace.id, user_id: user?.id || null, }) : null; const files = await Promise.all( documents.map(async (doc) => { const metadata = { ...doc }; // Strip out pageContent delete metadata.pageContent; const filename = `${originalname}-${doc.id}.json`; const { file, error: dbError } = await WorkspaceParsedFiles.create({ filename, workspaceId: workspace.id, userId: user?.id || null, threadId: thread?.id || null, metadata: JSON.stringify(metadata), tokenCountEstimate: doc.token_count_estimate || 0, }); if (dbError) throw new Error(dbError); return file; }) ); Collector.log(`Document ${originalname} parsed successfully.`); await EventLogs.logEvent( "document_uploaded_to_chat", { documentName: originalname, workspace: workspace.slug, thread: thread?.name || null, }, user?.id ); return response.status(200).json({ success: true, error: null, files, }); } catch (e) { console.error(e.message, e); return response.sendStatus(500).end(); } } ); } module.exports = { workspaceParsedFilesEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/communityHub.js
server/endpoints/communityHub.js
const { SystemSettings } = require("../models/systemSettings"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { reqBody } = require("../utils/http"); const { CommunityHub } = require("../models/communityHub"); const { communityHubDownloadsEnabled, communityHubItem, } = require("../utils/middleware/communityHubDownloadsEnabled"); const { EventLogs } = require("../models/eventLogs"); const { Telemetry } = require("../models/telemetry"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); function communityHubEndpoints(app) { if (!app) return; app.get( "/community-hub/settings", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_, response) => { try { const { connectionKey } = await SystemSettings.hubSettings(); response.status(200).json({ success: true, connectionKey }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message }); } } ); app.post( "/community-hub/settings", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const data = reqBody(request); const result = await SystemSettings.updateSettings(data); if (result.error) throw new Error(result.error); response.status(200).json({ success: true, error: null }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message }); } } ); app.get( "/community-hub/explore", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_, response) => { try { const exploreItems = await CommunityHub.fetchExploreItems(); response.status(200).json({ success: true, result: exploreItems }); } catch (error) { console.error(error); response.status(500).json({ success: false, result: null, error: error.message, }); } } ); app.post( "/community-hub/item", [validatedRequest, flexUserRoleValid([ROLES.admin]), communityHubItem], async (_request, response) => { try { response.status(200).json({ success: true, item: response.locals.bundleItem, error: null, }); } catch (error) { console.error(error); response.status(500).json({ success: false, item: null, error: error.message, }); } } ); /** * Apply an item to the AnythingLLM instance. Used for simple items like slash commands and system prompts. */ app.post( "/community-hub/apply", [validatedRequest, flexUserRoleValid([ROLES.admin]), communityHubItem], async (request, response) => { try { const { options = {} } = reqBody(request); const item = response.locals.bundleItem; const { error: applyError } = await CommunityHub.applyItem(item, { ...options, currentUser: response.locals?.user, }); if (applyError) throw new Error(applyError); await Telemetry.sendTelemetry("community_hub_import", { itemType: response.locals.bundleItem.itemType, visibility: response.locals.bundleItem.visibility, }); await EventLogs.logEvent( "community_hub_import", { itemId: response.locals.bundleItem.id, itemType: response.locals.bundleItem.itemType, }, response.locals?.user?.id ); response.status(200).json({ success: true, error: null }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message }); } } ); /** * Import a bundle item to the AnythingLLM instance by downloading the zip file and importing it. * or whatever the item type requires. This is not used if the item is a simple text responses like * slash commands or system prompts. */ app.post( "/community-hub/import", [ validatedRequest, flexUserRoleValid([ROLES.admin]), communityHubItem, communityHubDownloadsEnabled, ], async (_, response) => { try { const { error: importError } = await CommunityHub.importBundleItem({ url: response.locals.bundleUrl, item: response.locals.bundleItem, }); if (importError) throw new Error(importError); await Telemetry.sendTelemetry("community_hub_import", { itemType: response.locals.bundleItem.itemType, visibility: response.locals.bundleItem.visibility, }); await EventLogs.logEvent( "community_hub_import", { itemId: response.locals.bundleItem.id, itemType: response.locals.bundleItem.itemType, }, response.locals?.user?.id ); response.status(200).json({ success: true, error: null }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message, }); } } ); app.get( "/community-hub/items", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_, response) => { try { const { connectionKey } = await SystemSettings.hubSettings(); const items = await CommunityHub.fetchUserItems(connectionKey); response.status(200).json({ success: true, ...items }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message }); } } ); app.post( "/community-hub/:communityHubItemType/create", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { communityHubItemType } = request.params; const { connectionKey } = await SystemSettings.hubSettings(); if (!connectionKey) throw new Error("Community Hub connection key not found"); const data = reqBody(request); const { success, error, itemId } = await CommunityHub.createStaticItem( communityHubItemType, data, connectionKey ); if (!success) throw new Error(error); await EventLogs.logEvent( "community_hub_publish", { itemType: communityHubItemType }, response.locals?.user?.id ); response .status(200) .json({ success: true, error: null, item: { id: itemId } }); } catch (error) { console.error(error); response.status(500).json({ success: false, error: error.message }); } } ); } module.exports = { communityHubEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/admin.js
server/endpoints/admin.js
const { ApiKey } = require("../models/apiKeys"); const { Document } = require("../models/documents"); const { EventLogs } = require("../models/eventLogs"); const { Invite } = require("../models/invite"); const { SystemSettings } = require("../models/systemSettings"); const { Telemetry } = require("../models/telemetry"); const { User } = require("../models/user"); const { DocumentVectors } = require("../models/vectors"); const { Workspace } = require("../models/workspace"); const { WorkspaceChats } = require("../models/workspaceChats"); const { getVectorDbClass, getEmbeddingEngineSelection, } = require("../utils/helpers"); const { validRoleSelection, canModifyAdmin, validCanModify, } = require("../utils/helpers/admin"); const { reqBody, userFromSession, safeJsonParse } = require("../utils/http"); const { strictMultiUserRoleValid, flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const ImportedPlugin = require("../utils/agents/imported"); const { simpleSSOLoginDisabledMiddleware, } = require("../utils/middleware/simpleSSOEnabled"); function adminEndpoints(app) { if (!app) return; app.get( "/admin/users", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (_request, response) => { try { const users = await User.where(); response.status(200).json({ users }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/users/new", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const currUser = await userFromSession(request, response); const newUserParams = reqBody(request); const roleValidation = validRoleSelection(currUser, newUserParams); if (!roleValidation.valid) { response .status(200) .json({ user: null, error: roleValidation.error }); return; } const { user: newUser, error } = await User.create(newUserParams); if (!!newUser) { await EventLogs.logEvent( "user_created", { userName: newUser.username, createdBy: currUser.username, }, currUser.id ); } response.status(200).json({ user: newUser, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/user/:id", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const currUser = await userFromSession(request, response); const { id } = request.params; const updates = reqBody(request); const user = await User.get({ id: Number(id) }); const canModify = validCanModify(currUser, user); if (!canModify.valid) { response.status(200).json({ success: false, error: canModify.error }); return; } const roleValidation = validRoleSelection(currUser, updates); if (!roleValidation.valid) { response .status(200) .json({ success: false, error: roleValidation.error }); return; } const validAdminRoleModification = await canModifyAdmin(user, updates); if (!validAdminRoleModification.valid) { response .status(200) .json({ success: false, error: validAdminRoleModification.error }); return; } const { success, error } = await User.update(id, updates); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/admin/user/:id", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const currUser = await userFromSession(request, response); const { id } = request.params; const user = await User.get({ id: Number(id) }); const canModify = validCanModify(currUser, user); if (!canModify.valid) { response.status(200).json({ success: false, error: canModify.error }); return; } await User.delete({ id: Number(id) }); await EventLogs.logEvent( "user_deleted", { userName: user.username, deletedBy: currUser.username, }, currUser.id ); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/admin/invites", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (_request, response) => { try { const invites = await Invite.whereWithUsers(); response.status(200).json({ invites }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/invite/new", [ validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager]), simpleSSOLoginDisabledMiddleware, ], async (request, response) => { try { const user = await userFromSession(request, response); const body = reqBody(request); const { invite, error } = await Invite.create({ createdByUserId: user.id, workspaceIds: body?.workspaceIds || [], }); await EventLogs.logEvent( "invite_created", { inviteCode: invite.code, createdBy: response.locals?.user?.username, }, response.locals?.user?.id ); response.status(200).json({ invite, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/admin/invite/:id", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { id } = request.params; const { success, error } = await Invite.deactivate(id); await EventLogs.logEvent( "invite_deleted", { deletedBy: response.locals?.user?.username }, response.locals?.user?.id ); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/admin/workspaces", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (_request, response) => { try { const workspaces = await Workspace.whereWithUsers(); response.status(200).json({ workspaces }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/admin/workspaces/:workspaceId/users", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { workspaceId } = request.params; const users = await Workspace.workspaceUsers(workspaceId); response.status(200).json({ users }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/workspaces/new", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const { name } = reqBody(request); const { workspace, message: error } = await Workspace.new( name, user.id ); response.status(200).json({ workspace, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/workspaces/:workspaceId/update-users", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { workspaceId } = request.params; const { userIds } = reqBody(request); const { success, error } = await Workspace.updateUsers( workspaceId, userIds ); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/admin/workspaces/:id", [validatedRequest, strictMultiUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { id } = request.params; const VectorDb = getVectorDbClass(); const workspace = await Workspace.get({ id: Number(id) }); if (!workspace) { response.sendStatus(404).end(); return; } await WorkspaceChats.delete({ workspaceId: Number(workspace.id) }); await DocumentVectors.deleteForWorkspace(Number(workspace.id)); await Document.delete({ workspaceId: Number(workspace.id) }); await Workspace.delete({ id: Number(workspace.id) }); try { await VectorDb["delete-namespace"]({ namespace: workspace.slug }); } catch (e) { console.error(e.message); } response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); // System preferences but only by array of labels app.get( "/admin/system-preferences-for", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const requestedSettings = {}; const labels = request.query.labels?.split(",") || []; const needEmbedder = [ "text_splitter_chunk_size", "max_embed_chunk_size", ]; const noRecord = [ "max_embed_chunk_size", "agent_sql_connections", "imported_agent_skills", "feature_flags", "meta_page_title", "meta_page_favicon", ]; for (const label of labels) { // Skip any settings that are not explicitly defined as public if (!SystemSettings.publicFields.includes(label)) continue; // Only get the embedder if the setting actually needs it let embedder = needEmbedder.includes(label) ? getEmbeddingEngineSelection() : null; // Only get the record from db if the setting actually needs it let setting = noRecord.includes(label) ? null : await SystemSettings.get({ label }); switch (label) { case "footer_data": requestedSettings[label] = setting?.value ?? JSON.stringify([]); break; case "support_email": requestedSettings[label] = setting?.value || null; break; case "text_splitter_chunk_size": requestedSettings[label] = setting?.value || embedder?.embeddingMaxChunkLength || null; break; case "text_splitter_chunk_overlap": requestedSettings[label] = setting?.value || null; break; case "max_embed_chunk_size": requestedSettings[label] = embedder?.embeddingMaxChunkLength || 1000; break; case "agent_search_provider": requestedSettings[label] = setting?.value || null; break; case "agent_sql_connections": requestedSettings[label] = await SystemSettings.brief.agent_sql_connections(); break; case "default_agent_skills": requestedSettings[label] = safeJsonParse(setting?.value, []); break; case "disabled_agent_skills": requestedSettings[label] = safeJsonParse(setting?.value, []); break; case "imported_agent_skills": requestedSettings[label] = ImportedPlugin.listImportedPlugins(); break; case "custom_app_name": requestedSettings[label] = setting?.value || null; break; case "feature_flags": requestedSettings[label] = (await SystemSettings.getFeatureFlags()) || {}; break; case "meta_page_title": requestedSettings[label] = await SystemSettings.getValueOrFallback({ label }, null); break; case "meta_page_favicon": requestedSettings[label] = await SystemSettings.getValueOrFallback({ label }, null); break; default: break; } } response.status(200).json({ settings: requestedSettings }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); // TODO: Delete this endpoint // DEPRECATED - use /admin/system-preferences-for instead with ?labels=... comma separated string of labels app.get( "/admin/system-preferences", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (_, response) => { try { const embedder = getEmbeddingEngineSelection(); const settings = { footer_data: (await SystemSettings.get({ label: "footer_data" }))?.value || JSON.stringify([]), support_email: (await SystemSettings.get({ label: "support_email" }))?.value || null, text_splitter_chunk_size: (await SystemSettings.get({ label: "text_splitter_chunk_size" })) ?.value || embedder?.embeddingMaxChunkLength || null, text_splitter_chunk_overlap: (await SystemSettings.get({ label: "text_splitter_chunk_overlap" })) ?.value || null, max_embed_chunk_size: embedder?.embeddingMaxChunkLength || 1000, agent_search_provider: (await SystemSettings.get({ label: "agent_search_provider" })) ?.value || null, agent_sql_connections: await SystemSettings.brief.agent_sql_connections(), default_agent_skills: safeJsonParse( (await SystemSettings.get({ label: "default_agent_skills" })) ?.value, [] ) || [], disabled_agent_skills: safeJsonParse( (await SystemSettings.get({ label: "disabled_agent_skills" })) ?.value, [] ) || [], imported_agent_skills: ImportedPlugin.listImportedPlugins(), custom_app_name: (await SystemSettings.get({ label: "custom_app_name" }))?.value || null, feature_flags: (await SystemSettings.getFeatureFlags()) || {}, meta_page_title: await SystemSettings.getValueOrFallback( { label: "meta_page_title" }, null ), meta_page_favicon: await SystemSettings.getValueOrFallback( { label: "meta_page_favicon" }, null ), }; response.status(200).json({ settings }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/admin/system-preferences", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const updates = reqBody(request); await SystemSettings.updateSettings(updates); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/admin/api-keys", [validatedRequest, strictMultiUserRoleValid([ROLES.admin])], async (_request, response) => { try { const apiKeys = await ApiKey.whereWithUser({}); return response.status(200).json({ apiKeys, error: null, }); } catch (error) { console.error(error); response.status(500).json({ apiKey: null, error: "Could not find an API Keys.", }); } } ); app.post( "/admin/generate-api-key", [validatedRequest, strictMultiUserRoleValid([ROLES.admin])], async (request, response) => { try { const user = await userFromSession(request, response); const { apiKey, error } = await ApiKey.create(user.id); await EventLogs.logEvent( "api_key_created", { createdBy: user?.username }, user?.id ); return response.status(200).json({ apiKey, error, }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.delete( "/admin/delete-api-key/:id", [validatedRequest, strictMultiUserRoleValid([ROLES.admin])], async (request, response) => { try { const { id } = request.params; if (!id || isNaN(Number(id))) return response.sendStatus(400).end(); await ApiKey.delete({ id: Number(id) }); await EventLogs.logEvent( "api_key_deleted", { deletedBy: response.locals?.user?.username }, response?.locals?.user?.id ); return response.status(200).end(); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { adminEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/system.js
server/endpoints/system.js
process.env.NODE_ENV === "development" ? require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` }) : require("dotenv").config(); const { viewLocalFiles, normalizePath, isWithin } = require("../utils/files"); const { purgeDocument, purgeFolder } = require("../utils/files/purgeDocument"); const { getVectorDbClass } = require("../utils/helpers"); const { updateENV, dumpENV } = require("../utils/helpers/updateENV"); const { reqBody, makeJWT, userFromSession, multiUserMode, queryParams, } = require("../utils/http"); const { handleAssetUpload, handlePfpUpload } = require("../utils/files/multer"); const { v4 } = require("uuid"); const { SystemSettings } = require("../models/systemSettings"); const { User } = require("../models/user"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const fs = require("fs"); const path = require("path"); const { getDefaultFilename, determineLogoFilepath, fetchLogo, validFilename, renameLogoFile, removeCustomLogo, LOGO_FILENAME, isDefaultFilename, } = require("../utils/files/logo"); const { Telemetry } = require("../models/telemetry"); const { WelcomeMessages } = require("../models/welcomeMessages"); const { ApiKey } = require("../models/apiKeys"); const { getCustomModels } = require("../utils/helpers/customModels"); const { WorkspaceChats } = require("../models/workspaceChats"); const { flexUserRoleValid, ROLES, isMultiUserSetup, } = require("../utils/middleware/multiUserProtected"); const { fetchPfp, determinePfpFilepath } = require("../utils/files/pfp"); const { exportChatsAsType } = require("../utils/helpers/chat/convertTo"); const { EventLogs } = require("../models/eventLogs"); const { CollectorApi } = require("../utils/collectorApi"); const { recoverAccount, resetPassword, generateRecoveryCodes, } = require("../utils/PasswordRecovery"); const { SlashCommandPresets } = require("../models/slashCommandsPresets"); const { EncryptionManager } = require("../utils/EncryptionManager"); const { BrowserExtensionApiKey } = require("../models/browserExtensionApiKey"); const { chatHistoryViewable, } = require("../utils/middleware/chatHistoryViewable"); const { simpleSSOEnabled, simpleSSOLoginDisabled, } = require("../utils/middleware/simpleSSOEnabled"); const { TemporaryAuthToken } = require("../models/temporaryAuthToken"); const { SystemPromptVariables } = require("../models/systemPromptVariables"); const { VALID_COMMANDS } = require("../utils/chats"); function systemEndpoints(app) { if (!app) return; app.get("/ping", (_, response) => { response.status(200).json({ online: true }); }); app.get("/migrate", async (_, response) => { response.sendStatus(200); }); app.get("/env-dump", async (_, response) => { if (process.env.NODE_ENV !== "production") return response.sendStatus(200).end(); dumpENV(); response.sendStatus(200).end(); }); app.get("/setup-complete", async (_, response) => { try { const results = await SystemSettings.currentSettings(); response.status(200).json({ results }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get( "/system/check-token", [validatedRequest], async (request, response) => { try { if (multiUserMode(response)) { const user = await userFromSession(request, response); if (!user || user.suspended) { response.sendStatus(403).end(); return; } response.sendStatus(200).end(); return; } response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); /** * Refreshes the user object from the session from a provided token. * This does not refresh the token itself - if that is expired or invalid, the user will be logged out. * This simply keeps the user object in sync with the database over the course of the session. * @returns {Promise<{success: boolean, user: Object | null, message: string | null}>} */ app.get( "/system/refresh-user", [validatedRequest], async (request, response) => { try { if (!multiUserMode(response)) return response .status(200) .json({ success: true, user: null, message: null }); const user = await userFromSession(request, response); if (!user) return response.status(200).json({ success: false, user: null, message: "Session expired or invalid.", }); if (user.suspended) return response.status(200).json({ success: false, user: null, message: "User is suspended.", }); return response.status(200).json({ success: true, user: User.filterFields(user), message: null, }); } catch (e) { return response.status(500).json({ success: false, user: null, message: e.message, }); } } ); app.post("/request-token", async (request, response) => { try { const bcrypt = require("bcryptjs"); if (await SystemSettings.isMultiUserMode()) { if (simpleSSOLoginDisabled()) { response.status(403).json({ user: null, valid: false, token: null, message: "[005] Login via credentials has been disabled by the administrator.", }); return; } const { username, password } = reqBody(request); const existingUser = await User._get({ username: String(username) }); if (!existingUser) { await EventLogs.logEvent( "failed_login_invalid_username", { ip: request.ip || "Unknown IP", username: username || "Unknown user", }, existingUser?.id ); response.status(200).json({ user: null, valid: false, token: null, message: "[001] Invalid login credentials.", }); return; } if (!bcrypt.compareSync(String(password), existingUser.password)) { await EventLogs.logEvent( "failed_login_invalid_password", { ip: request.ip || "Unknown IP", username: username || "Unknown user", }, existingUser?.id ); response.status(200).json({ user: null, valid: false, token: null, message: "[002] Invalid login credentials.", }); return; } if (existingUser.suspended) { await EventLogs.logEvent( "failed_login_account_suspended", { ip: request.ip || "Unknown IP", username: username || "Unknown user", }, existingUser?.id ); response.status(200).json({ user: null, valid: false, token: null, message: "[004] Account suspended by admin.", }); return; } await Telemetry.sendTelemetry( "login_event", { multiUserMode: false }, existingUser?.id ); await EventLogs.logEvent( "login_event", { ip: request.ip || "Unknown IP", username: existingUser.username || "Unknown user", }, existingUser?.id ); // Generate a session token for the user then check if they have seen the recovery codes // and if not, generate recovery codes and return them to the frontend. const sessionToken = makeJWT( { id: existingUser.id, username: existingUser.username }, process.env.JWT_EXPIRY ); if (!existingUser.seen_recovery_codes) { const plainTextCodes = await generateRecoveryCodes(existingUser.id); response.status(200).json({ valid: true, user: User.filterFields(existingUser), token: sessionToken, message: null, recoveryCodes: plainTextCodes, }); return; } response.status(200).json({ valid: true, user: User.filterFields(existingUser), token: sessionToken, message: null, }); return; } else { const { password } = reqBody(request); if ( !bcrypt.compareSync( password, bcrypt.hashSync(process.env.AUTH_TOKEN, 10) ) ) { await EventLogs.logEvent("failed_login_invalid_password", { ip: request.ip || "Unknown IP", multiUserMode: false, }); response.status(401).json({ valid: false, token: null, message: "[003] Invalid password provided", }); return; } await Telemetry.sendTelemetry("login_event", { multiUserMode: false }); await EventLogs.logEvent("login_event", { ip: request.ip || "Unknown IP", multiUserMode: false, }); response.status(200).json({ valid: true, token: makeJWT( { p: new EncryptionManager().encrypt(password) }, process.env.JWT_EXPIRY ), message: null, }); } } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get( "/request-token/sso/simple", [simpleSSOEnabled], async (request, response) => { const { token: tempAuthToken } = request.query; const { sessionToken, token, error } = await TemporaryAuthToken.validate(tempAuthToken); if (error) { await EventLogs.logEvent("failed_login_invalid_temporary_auth_token", { ip: request.ip || "Unknown IP", multiUserMode: true, }); return response.status(401).json({ valid: false, token: null, message: `[001] An error occurred while validating the token: ${error}`, }); } await Telemetry.sendTelemetry( "login_event", { multiUserMode: true }, token.user.id ); await EventLogs.logEvent( "login_event", { ip: request.ip || "Unknown IP", username: token.user.username || "Unknown user", }, token.user.id ); response.status(200).json({ valid: true, user: User.filterFields(token.user), token: sessionToken, message: null, }); } ); app.post( "/system/recover-account", [isMultiUserSetup], async (request, response) => { try { const { username, recoveryCodes } = reqBody(request); const { success, resetToken, error } = await recoverAccount( username, recoveryCodes ); if (success) { response.status(200).json({ success, resetToken }); } else { response.status(400).json({ success, message: error }); } } catch (error) { console.error("Error recovering account:", error); response .status(500) .json({ success: false, message: "Internal server error" }); } } ); app.post( "/system/reset-password", [isMultiUserSetup], async (request, response) => { try { const { token, newPassword, confirmPassword } = reqBody(request); const { success, message, error } = await resetPassword( token, newPassword, confirmPassword ); if (success) { response.status(200).json({ success, message }); } else { response.status(400).json({ success, error }); } } catch (error) { console.error("Error resetting password:", error); response.status(500).json({ success: false, message: error.message }); } } ); app.get( "/system/system-vectors", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const query = queryParams(request); const VectorDb = getVectorDbClass(); const vectorCount = !!query.slug ? await VectorDb.namespaceCount(query.slug) : await VectorDb.totalVectors(); response.status(200).json({ vectorCount }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/system/remove-document", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { name } = reqBody(request); await purgeDocument(name); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/system/remove-documents", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { names } = reqBody(request); for await (const name of names) await purgeDocument(name); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/system/remove-folder", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { name } = reqBody(request); await purgeFolder(name); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/system/local-files", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (_, response) => { try { const localFiles = await viewLocalFiles(); response.status(200).json({ localFiles }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/system/document-processing-status", [validatedRequest], async (_, response) => { try { const online = await new CollectorApi().online(); response.sendStatus(online ? 200 : 503); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/system/accepted-document-types", [validatedRequest], async (_, response) => { try { const types = await new CollectorApi().acceptedFileTypes(); if (!types) { response.sendStatus(404).end(); return; } response.status(200).json({ types }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/system/update-env", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const body = reqBody(request); const { newValues, error } = await updateENV( body, false, response?.locals?.user?.id ); response.status(200).json({ newValues, error }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/system/update-password", [validatedRequest], async (request, response) => { try { // Cannot update password in multi - user mode. if (multiUserMode(response)) { response.sendStatus(401).end(); return; } let error = null; const { usePassword, newPassword } = reqBody(request); if (!usePassword) { // Password is being disabled so directly unset everything to bypass validation. process.env.AUTH_TOKEN = ""; process.env.JWT_SECRET = ""; } else { error = await updateENV( { AuthToken: newPassword, JWTSecret: v4(), }, true )?.error; } response.status(200).json({ success: !error, error }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/system/enable-multi-user", [validatedRequest], async (request, response) => { try { if (response.locals.multiUserMode) { response.status(200).json({ success: false, error: "Multi-user mode is already enabled.", }); return; } const { username, password } = reqBody(request); const { user, error } = await User.create({ username, password, role: ROLES.admin, }); if (error || !user) { response.status(400).json({ success: false, error: error || "Failed to enable multi-user mode.", }); return; } await SystemSettings._updateSettings({ multi_user_mode: true, }); await BrowserExtensionApiKey.migrateApiKeysToMultiUser(user.id); await updateENV( { JWTSecret: process.env.JWT_SECRET || v4(), }, true ); await Telemetry.sendTelemetry("enabled_multi_user_mode", { multiUserMode: true, }); await EventLogs.logEvent("multi_user_mode_enabled", {}, user?.id); response.status(200).json({ success: !!user, error }); } catch (e) { await User.delete({}); await SystemSettings._updateSettings({ multi_user_mode: false, }); console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get("/system/multi-user-mode", async (_, response) => { try { const multiUserMode = await SystemSettings.isMultiUserMode(); response.status(200).json({ multiUserMode }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get("/system/logo", async function (request, response) { try { const darkMode = !request?.query?.theme || request?.query?.theme === "default"; const defaultFilename = getDefaultFilename(darkMode); const logoPath = await determineLogoFilepath(defaultFilename); const { found, buffer, size, mime } = fetchLogo(logoPath); if (!found) { response.sendStatus(204).end(); return; } const currentLogoFilename = await SystemSettings.currentLogoFilename(); response.writeHead(200, { "Access-Control-Expose-Headers": "Content-Disposition,X-Is-Custom-Logo,Content-Type,Content-Length", "Content-Type": mime || "image/png", "Content-Disposition": `attachment; filename=${path.basename( logoPath )}`, "Content-Length": size, "X-Is-Custom-Logo": currentLogoFilename !== null && currentLogoFilename !== defaultFilename && !isDefaultFilename(currentLogoFilename), }); response.end(Buffer.from(buffer, "base64")); return; } catch (error) { console.error("Error processing the logo request:", error); response.status(500).json({ message: "Internal server error" }); } }); app.get("/system/footer-data", [validatedRequest], async (_, response) => { try { const footerData = (await SystemSettings.get({ label: "footer_data" }))?.value ?? JSON.stringify([]); response.status(200).json({ footerData: footerData }); } catch (error) { console.error("Error fetching footer data:", error); response.status(500).json({ message: "Internal server error" }); } }); app.get("/system/support-email", [validatedRequest], async (_, response) => { try { const supportEmail = ( await SystemSettings.get({ label: "support_email", }) )?.value ?? null; response.status(200).json({ supportEmail: supportEmail }); } catch (error) { console.error("Error fetching support email:", error); response.status(500).json({ message: "Internal server error" }); } }); // No middleware protection in order to get this on the login page app.get("/system/custom-app-name", async (_, response) => { try { const customAppName = ( await SystemSettings.get({ label: "custom_app_name", }) )?.value ?? null; response.status(200).json({ customAppName: customAppName }); } catch (error) { console.error("Error fetching custom app name:", error); response.status(500).json({ message: "Internal server error" }); } }); app.get( "/system/pfp/:id", [validatedRequest, flexUserRoleValid([ROLES.all])], async function (request, response) { try { const { id } = request.params; if (response.locals?.user?.id !== Number(id)) return response.sendStatus(204).end(); const pfpPath = await determinePfpFilepath(id); if (!pfpPath) return response.sendStatus(204).end(); const { found, buffer, size, mime } = fetchPfp(pfpPath); if (!found) return response.sendStatus(204).end(); response.writeHead(200, { "Content-Type": mime || "image/png", "Content-Disposition": `attachment; filename=${path.basename(pfpPath)}`, "Content-Length": size, }); response.end(Buffer.from(buffer, "base64")); return; } catch (error) { console.error("Error processing the logo request:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.post( "/system/upload-pfp", [validatedRequest, flexUserRoleValid([ROLES.all]), handlePfpUpload], async function (request, response) { try { const user = await userFromSession(request, response); const uploadedFileName = request.randomFileName; if (!uploadedFileName) { return response.status(400).json({ message: "File upload failed." }); } const userRecord = await User.get({ id: user.id }); const oldPfpFilename = userRecord.pfpFilename; if (oldPfpFilename) { const storagePath = path.join(__dirname, "../storage/assets/pfp"); const oldPfpPath = path.join( storagePath, normalizePath(userRecord.pfpFilename) ); if (!isWithin(path.resolve(storagePath), path.resolve(oldPfpPath))) throw new Error("Invalid path name"); if (fs.existsSync(oldPfpPath)) fs.unlinkSync(oldPfpPath); } const { success, error } = await User.update(user.id, { pfpFilename: uploadedFileName, }); return response.status(success ? 200 : 500).json({ message: success ? "Profile picture uploaded successfully." : error || "Failed to update with new profile picture.", }); } catch (error) { console.error("Error processing the profile picture upload:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.get( "/system/default-system-prompt", [validatedRequest, flexUserRoleValid([ROLES.all])], async (_, response) => { try { const defaultSystemPrompt = await SystemSettings.get({ label: "default_system_prompt", }); response.status(200).json({ success: true, defaultSystemPrompt: defaultSystemPrompt?.value || SystemSettings.saneDefaultSystemPrompt, saneDefaultSystemPrompt: SystemSettings.saneDefaultSystemPrompt, }); } catch (error) { console.error("Error fetching default system prompt:", error); response .status(500) .json({ success: false, message: "Internal server error" }); } } ); app.post( "/system/default-system-prompt", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { defaultSystemPrompt } = reqBody(request); const { success, error } = await SystemSettings.updateSettings({ default_system_prompt: defaultSystemPrompt, }); if (!success) throw new Error( error.message || "Failed to update default system prompt." ); response.status(200).json({ success: true, message: "Default system prompt updated successfully.", }); } catch (error) { console.error("Error updating default system prompt:", error); response.status(500).json({ success: false, message: error.message || "Internal server error", }); } } ); app.delete( "/system/remove-pfp", [validatedRequest, flexUserRoleValid([ROLES.all])], async function (request, response) { try { const user = await userFromSession(request, response); const userRecord = await User.get({ id: user.id }); const oldPfpFilename = userRecord.pfpFilename; if (oldPfpFilename) { const storagePath = path.join(__dirname, "../storage/assets/pfp"); const oldPfpPath = path.join( storagePath, normalizePath(oldPfpFilename) ); if (!isWithin(path.resolve(storagePath), path.resolve(oldPfpPath))) throw new Error("Invalid path name"); if (fs.existsSync(oldPfpPath)) fs.unlinkSync(oldPfpPath); } const { success, error } = await User.update(user.id, { pfpFilename: null, }); return response.status(success ? 200 : 500).json({ message: success ? "Profile picture removed successfully." : error || "Failed to remove profile picture.", }); } catch (error) { console.error("Error processing the profile picture removal:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.post( "/system/upload-logo", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), handleAssetUpload, ], async (request, response) => { if (!request?.file || !request?.file.originalname) { return response.status(400).json({ message: "No logo file provided." }); } if (!validFilename(request.file.originalname)) { return response.status(400).json({ message: "Invalid file name. Please choose a different file.", }); } try { const newFilename = await renameLogoFile(request.file.originalname); const existingLogoFilename = await SystemSettings.currentLogoFilename(); await removeCustomLogo(existingLogoFilename); const { success, error } = await SystemSettings._updateSettings({ logo_filename: newFilename, }); return response.status(success ? 200 : 500).json({ message: success ? "Logo uploaded successfully." : error || "Failed to update with new logo.", }); } catch (error) { console.error("Error processing the logo upload:", error); response.status(500).json({ message: "Error uploading the logo." }); } } ); app.get("/system/is-default-logo", async (_, response) => { try { const currentLogoFilename = await SystemSettings.currentLogoFilename(); const isDefaultLogo = !currentLogoFilename || currentLogoFilename === LOGO_FILENAME; response.status(200).json({ isDefaultLogo }); } catch (error) { console.error("Error processing the logo request:", error); response.status(500).json({ message: "Internal server error" }); } }); app.get( "/system/remove-logo", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (_request, response) => { try { const currentLogoFilename = await SystemSettings.currentLogoFilename(); await removeCustomLogo(currentLogoFilename); const { success, error } = await SystemSettings._updateSettings({ logo_filename: LOGO_FILENAME, }); return response.status(success ? 200 : 500).json({ message: success ? "Logo removed successfully." : error || "Failed to update with new logo.", }); } catch (error) { console.error("Error processing the logo removal:", error); response.status(500).json({ message: "Error removing the logo." }); } } ); app.get( "/system/welcome-messages", [validatedRequest, flexUserRoleValid([ROLES.all])], async function (_, response) { try { const welcomeMessages = await WelcomeMessages.getMessages(); response.status(200).json({ success: true, welcomeMessages }); } catch (error) { console.error("Error fetching welcome messages:", error); response .status(500) .json({ success: false, message: "Internal server error" }); } } ); app.post( "/system/set-welcome-messages", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { messages = [] } = reqBody(request); if (!Array.isArray(messages)) { return response.status(400).json({ success: false, message: "Invalid message format. Expected an array of messages.", }); } await WelcomeMessages.saveAll(messages); return response.status(200).json({ success: true, message: "Welcome messages saved successfully.", }); } catch (error) { console.error("Error processing the welcome messages:", error); response.status(500).json({ success: true, message: "Error saving the welcome messages.", }); } } ); app.get("/system/api-keys", [validatedRequest], async (_, response) => { try { if (response.locals.multiUserMode) { return response.sendStatus(401).end(); } const apiKeys = await ApiKey.where({}); return response.status(200).json({ apiKeys, error: null, }); } catch (error) { console.error(error); response.status(500).json({ apiKey: null, error: "Could not find an API Key.", }); } }); app.post( "/system/generate-api-key", [validatedRequest], async (_, response) => { try { if (response.locals.multiUserMode) { return response.sendStatus(401).end(); } const { apiKey, error } = await ApiKey.create(); await EventLogs.logEvent( "api_key_created", {}, response?.locals?.user?.id ); return response.status(200).json({ apiKey, error, }); } catch (error) { console.error(error); response.status(500).json({ apiKey: null, error: "Error generating api key.", }); } } ); // TODO: This endpoint is replicated in the admin endpoints file. // and should be consolidated to be a single endpoint with flexible role protection. app.delete( "/system/api-key/:id", [validatedRequest], async (request, response) => { try { if (response.locals.multiUserMode) return response.sendStatus(401).end(); const { id } = request.params; if (!id || isNaN(Number(id))) return response.sendStatus(400).end(); await ApiKey.delete({ id: Number(id) }); await EventLogs.logEvent( "api_key_deleted", { deletedBy: response.locals?.user?.username }, response?.locals?.user?.id ); return response.status(200).end(); } catch (error) { console.error(error); response.status(500).end(); } } ); app.post( "/system/custom-models", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { provider, apiKey = null, basePath = null } = reqBody(request); const { models, error } = await getCustomModels( provider, apiKey,
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/agentFlows.js
server/endpoints/agentFlows.js
const { AgentFlows } = require("../utils/agentFlows"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { Telemetry } = require("../models/telemetry"); function agentFlowEndpoints(app) { if (!app) return; // Save a flow configuration app.post( "/agent-flows/save", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { name, config, uuid } = request.body; if (!name || !config) { return response.status(400).json({ success: false, error: "Name and config are required", }); } const flow = AgentFlows.saveFlow(name, config, uuid); if (!flow || !flow.success) return response .status(200) .json({ flow: null, error: flow.error || "Failed to save flow" }); if (!uuid) { await Telemetry.sendTelemetry("agent_flow_created", { blockCount: config.blocks?.length || 0, }); } return response.status(200).json({ success: true, flow, }); } catch (error) { console.error("Error saving flow:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); // List all available flows app.get( "/agent-flows/list", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_request, response) => { try { const flows = AgentFlows.listFlows(); return response.status(200).json({ success: true, flows, }); } catch (error) { console.error("Error listing flows:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); // Get a specific flow by UUID app.get( "/agent-flows/:uuid", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { uuid } = request.params; const flow = AgentFlows.loadFlow(uuid); if (!flow) { return response.status(404).json({ success: false, error: "Flow not found", }); } return response.status(200).json({ success: true, flow, }); } catch (error) { console.error("Error getting flow:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); // Run a specific flow // app.post( // "/agent-flows/:uuid/run", // [validatedRequest, flexUserRoleValid([ROLES.admin])], // async (request, response) => { // try { // const { uuid } = request.params; // const { variables = {} } = request.body; // // TODO: Implement flow execution // console.log("Running flow with UUID:", uuid); // await Telemetry.sendTelemetry("agent_flow_executed", { // variableCount: Object.keys(variables).length, // }); // return response.status(200).json({ // success: true, // results: { // success: true, // results: "test", // variables: variables, // }, // }); // } catch (error) { // console.error("Error running flow:", error); // return response.status(500).json({ // success: false, // error: error.message, // }); // } // } // ); // Delete a specific flow app.delete( "/agent-flows/:uuid", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { uuid } = request.params; const { success } = AgentFlows.deleteFlow(uuid); if (!success) { return response.status(500).json({ success: false, error: "Failed to delete flow", }); } return response.status(200).json({ success, }); } catch (error) { console.error("Error deleting flow:", error); return response.status(500).json({ success: false, error: error.message, }); } } ); // Toggle flow active status app.post( "/agent-flows/:uuid/toggle", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const { uuid } = request.params; const { active } = request.body; const flow = AgentFlows.loadFlow(uuid); if (!flow) { return response .status(404) .json({ success: false, error: "Flow not found" }); } flow.config.active = active; const { success } = AgentFlows.saveFlow(flow.name, flow.config, uuid); if (!success) { return response .status(500) .json({ success: false, error: "Failed to update flow" }); } return response.json({ success: true, flow }); } catch (error) { console.error("Error toggling flow:", error); response.status(500).json({ success: false, error: error.message }); } } ); } module.exports = { agentFlowEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/browserExtension.js
server/endpoints/browserExtension.js
const { Workspace } = require("../models/workspace"); const { BrowserExtensionApiKey } = require("../models/browserExtensionApiKey"); const { Document } = require("../models/documents"); const { validBrowserExtensionApiKey, } = require("../utils/middleware/validBrowserExtensionApiKey"); const { CollectorApi } = require("../utils/collectorApi"); const { reqBody, multiUserMode, userFromSession } = require("../utils/http"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { Telemetry } = require("../models/telemetry"); function browserExtensionEndpoints(app) { if (!app) return; app.get( "/browser-extension/check", [validBrowserExtensionApiKey], async (request, response) => { try { const user = await userFromSession(request, response); const workspaces = multiUserMode(response) ? await Workspace.whereWithUser(user) : await Workspace.where(); const apiKeyId = response.locals.apiKey.id; response.status(200).json({ connected: true, workspaces, apiKeyId, }); } catch (error) { console.error(error); response .status(500) .json({ connected: false, error: "Failed to fetch workspaces" }); } } ); app.delete( "/browser-extension/disconnect", [validBrowserExtensionApiKey], async (_request, response) => { try { const apiKeyId = response.locals.apiKey.id; const { success, error } = await BrowserExtensionApiKey.delete(apiKeyId); if (!success) throw new Error(error); response.status(200).json({ success: true }); } catch (error) { console.error(error); response .status(500) .json({ error: "Failed to disconnect and revoke API key" }); } } ); app.get( "/browser-extension/workspaces", [validBrowserExtensionApiKey], async (request, response) => { try { const user = await userFromSession(request, response); const workspaces = multiUserMode(response) ? await Workspace.whereWithUser(user) : await Workspace.where(); response.status(200).json({ workspaces }); } catch (error) { console.error(error); response.status(500).json({ error: "Failed to fetch workspaces" }); } } ); app.post( "/browser-extension/embed-content", [validBrowserExtensionApiKey], async (request, response) => { try { const { workspaceId, textContent, metadata } = reqBody(request); const user = await userFromSession(request, response); const workspace = multiUserMode(response) ? await Workspace.getWithUser(user, { id: parseInt(workspaceId) }) : await Workspace.get({ id: parseInt(workspaceId) }); if (!workspace) { response.status(404).json({ error: "Workspace not found" }); return; } const Collector = new CollectorApi(); const { success, reason, documents } = await Collector.processRawText( textContent, metadata ); if (!success) { response.status(500).json({ success: false, error: reason }); return; } const { failedToEmbed = [], errors = [] } = await Document.addDocuments( workspace, [documents[0].location], user?.id ); if (failedToEmbed.length > 0) { response.status(500).json({ success: false, error: errors[0] }); return; } await Telemetry.sendTelemetry("browser_extension_embed_content"); response.status(200).json({ success: true }); } catch (error) { console.error(error); response.status(500).json({ error: "Failed to embed content" }); } } ); app.post( "/browser-extension/upload-content", [validBrowserExtensionApiKey], async (request, response) => { try { const { textContent, metadata } = reqBody(request); const Collector = new CollectorApi(); const { success, reason } = await Collector.processRawText( textContent, metadata ); if (!success) { response.status(500).json({ success: false, error: reason }); return; } await Telemetry.sendTelemetry("browser_extension_upload_content"); response.status(200).json({ success: true }); } catch (error) { console.error(error); response.status(500).json({ error: "Failed to embed content" }); } } ); // Internal endpoints for managing API keys app.get( "/browser-extension/api-keys", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const apiKeys = multiUserMode(response) ? await BrowserExtensionApiKey.whereWithUser(user) : await BrowserExtensionApiKey.where(); response.status(200).json({ success: true, apiKeys }); } catch (error) { console.error(error); response .status(500) .json({ success: false, error: "Failed to fetch API keys" }); } } ); app.post( "/browser-extension/api-keys/new", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const { apiKey, error } = await BrowserExtensionApiKey.create( user?.id || null ); if (error) throw new Error(error); response.status(200).json({ apiKey: apiKey.key, }); } catch (error) { console.error(error); response.status(500).json({ error: "Failed to create API key" }); } } ); app.delete( "/browser-extension/api-keys/:id", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { id } = request.params; const user = await userFromSession(request, response); if (multiUserMode(response) && user.role !== ROLES.admin) { const apiKey = await BrowserExtensionApiKey.get({ id: parseInt(id), user_id: user?.id, }); if (!apiKey) { return response.status(403).json({ error: "Unauthorized" }); } } const { success, error } = await BrowserExtensionApiKey.delete(id); if (!success) throw new Error(error); response.status(200).json({ success: true }); } catch (error) { console.error(error); response.status(500).json({ error: "Failed to revoke API key" }); } } ); } module.exports = { browserExtensionEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/workspaces.js
server/endpoints/workspaces.js
const path = require("path"); const fs = require("fs"); const { reqBody, multiUserMode, userFromSession, safeJsonParse, } = require("../utils/http"); const { normalizePath, isWithin } = require("../utils/files"); const { Workspace } = require("../models/workspace"); const { Document } = require("../models/documents"); const { DocumentVectors } = require("../models/vectors"); const { WorkspaceChats } = require("../models/workspaceChats"); const { getVectorDbClass } = require("../utils/helpers"); const { handleFileUpload, handlePfpUpload } = require("../utils/files/multer"); const { validatedRequest } = require("../utils/middleware/validatedRequest"); const { Telemetry } = require("../models/telemetry"); const { flexUserRoleValid, ROLES, } = require("../utils/middleware/multiUserProtected"); const { EventLogs } = require("../models/eventLogs"); const { WorkspaceSuggestedMessages, } = require("../models/workspacesSuggestedMessages"); const { validWorkspaceSlug } = require("../utils/middleware/validWorkspace"); const { convertToChatHistory } = require("../utils/helpers/chat/responses"); const { CollectorApi } = require("../utils/collectorApi"); const { determineWorkspacePfpFilepath, fetchPfp, } = require("../utils/files/pfp"); const { getTTSProvider } = require("../utils/TextToSpeech"); const { WorkspaceThread } = require("../models/workspaceThread"); const truncate = require("truncate"); const { purgeDocument } = require("../utils/files/purgeDocument"); const { getModelTag } = require("./utils"); const { searchWorkspaceAndThreads } = require("../utils/helpers/search"); const { workspaceParsedFilesEndpoints } = require("./workspacesParsedFiles"); function workspaceEndpoints(app) { if (!app) return; const responseCache = new Map(); app.post( "/workspace/new", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const { name = null, onboardingComplete = false } = reqBody(request); const { workspace, message } = await Workspace.new(name, user?.id); await Telemetry.sendTelemetry( "workspace_created", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }, user?.id ); await EventLogs.logEvent( "workspace_created", { workspaceName: workspace?.name || "Unknown Workspace", }, user?.id ); if (onboardingComplete === true) await Telemetry.sendTelemetry("onboarding_complete"); response.status(200).json({ workspace, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/update", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const { slug = null } = request.params; const data = reqBody(request); const currWorkspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!currWorkspace) { response.sendStatus(400).end(); return; } await Workspace.trackChange(currWorkspace, data, user); const { workspace, message } = await Workspace.update( currWorkspace.id, data ); response.status(200).json({ workspace, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/upload", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), handleFileUpload, ], async function (request, response) { try { const Collector = new CollectorApi(); const { originalname } = request.file; const processingOnline = await Collector.online(); if (!processingOnline) { response .status(500) .json({ success: false, error: `Document processing API is not online. Document ${originalname} will not be processed automatically.`, }) .end(); return; } const { success, reason } = await Collector.processDocument(originalname); if (!success) { response.status(500).json({ success: false, error: reason }).end(); return; } Collector.log( `Document ${originalname} uploaded processed and successfully. It is now available in documents.` ); await Telemetry.sendTelemetry("document_uploaded"); await EventLogs.logEvent( "document_uploaded", { documentName: originalname, }, response.locals?.user?.id ); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/upload-link", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const Collector = new CollectorApi(); const { link = "" } = reqBody(request); const processingOnline = await Collector.online(); if (!processingOnline) { response .status(500) .json({ success: false, error: `Document processing API is not online. Link ${link} will not be processed automatically.`, }) .end(); return; } const { success, reason } = await Collector.processLink(link); if (!success) { response.status(500).json({ success: false, error: reason }).end(); return; } Collector.log( `Link ${link} uploaded processed and successfully. It is now available in documents.` ); await Telemetry.sendTelemetry("link_uploaded"); await EventLogs.logEvent( "link_uploaded", { link }, response.locals?.user?.id ); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/update-embeddings", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const user = await userFromSession(request, response); const { slug = null } = request.params; const { adds = [], deletes = [] } = reqBody(request); const currWorkspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!currWorkspace) { response.sendStatus(400).end(); return; } await Document.removeDocuments( currWorkspace, deletes, response.locals?.user?.id ); const { failedToEmbed = [], errors = [] } = await Document.addDocuments( currWorkspace, adds, response.locals?.user?.id ); const updatedWorkspace = await Workspace.get({ id: currWorkspace.id }); response.status(200).json({ workspace: updatedWorkspace, message: failedToEmbed.length > 0 ? `${failedToEmbed.length} documents failed to add.\n\n${errors .map((msg) => `${msg}`) .join("\n\n")}` : null, }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { slug = "" } = request.params; const user = await userFromSession(request, response); const VectorDb = getVectorDbClass(); const workspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } await WorkspaceChats.delete({ workspaceId: Number(workspace.id) }); await DocumentVectors.deleteForWorkspace(workspace.id); await Document.delete({ workspaceId: Number(workspace.id) }); await Workspace.delete({ id: Number(workspace.id) }); await EventLogs.logEvent( "workspace_deleted", { workspaceName: workspace?.name || "Unknown Workspace", }, response.locals?.user?.id ); try { await VectorDb["delete-namespace"]({ namespace: slug }); } catch (e) { console.error(e.message); } response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/reset-vector-db", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { slug = "" } = request.params; const user = await userFromSession(request, response); const VectorDb = getVectorDbClass(); const workspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } await DocumentVectors.deleteForWorkspace(workspace.id); await Document.delete({ workspaceId: Number(workspace.id) }); await EventLogs.logEvent( "workspace_vectors_reset", { workspaceName: workspace?.name || "Unknown Workspace", }, response.locals?.user?.id ); try { await VectorDb["delete-namespace"]({ namespace: slug }); } catch (e) { console.error(e.message); } response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspaces", [validatedRequest, flexUserRoleValid([ROLES.all])], async (request, response) => { try { const user = await userFromSession(request, response); const workspaces = multiUserMode(response) ? await Workspace.whereWithUser(user) : await Workspace.where(); response.status(200).json({ workspaces }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspace/:slug", [validatedRequest, flexUserRoleValid([ROLES.all])], async (request, response) => { try { const { slug } = request.params; const user = await userFromSession(request, response); const workspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); response.status(200).json({ workspace }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspace/:slug/chats", [validatedRequest, flexUserRoleValid([ROLES.all])], async (request, response) => { try { const { slug } = request.params; const user = await userFromSession(request, response); const workspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } const history = multiUserMode(response) ? await WorkspaceChats.forWorkspaceByUser(workspace.id, user.id) : await WorkspaceChats.forWorkspace(workspace.id); response.status(200).json({ history: convertToChatHistory(history) }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/delete-chats", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const { chatIds = [] } = reqBody(request); const user = await userFromSession(request, response); const workspace = response.locals.workspace; if (!workspace || !Array.isArray(chatIds)) { response.sendStatus(400).end(); return; } // This works for both workspace and threads. // we simplify this by just looking at workspace<>user overlap // since they are all on the same table. await WorkspaceChats.delete({ id: { in: chatIds.map((id) => Number(id)) }, user_id: user?.id ?? null, workspaceId: workspace.id, }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/delete-edited-chats", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const { startingId } = reqBody(request); const user = await userFromSession(request, response); const workspace = response.locals.workspace; await WorkspaceChats.delete({ workspaceId: workspace.id, thread_id: null, user_id: user?.id, id: { gte: Number(startingId) }, }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/update-chat", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const { chatId, newText = null } = reqBody(request); if (!newText || !String(newText).trim()) throw new Error("Cannot save empty response"); const user = await userFromSession(request, response); const workspace = response.locals.workspace; const existingChat = await WorkspaceChats.get({ workspaceId: workspace.id, thread_id: null, user_id: user?.id, id: Number(chatId), }); if (!existingChat) throw new Error("Invalid chat."); const chatResponse = safeJsonParse(existingChat.response, null); if (!chatResponse) throw new Error("Failed to parse chat response"); await WorkspaceChats._update(existingChat.id, { response: JSON.stringify({ ...chatResponse, text: String(newText), }), }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/workspace/:slug/chat-feedback/:chatId", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const { chatId } = request.params; const { feedback = null } = reqBody(request); const existingChat = await WorkspaceChats.get({ id: Number(chatId), workspaceId: response.locals.workspace.id, }); if (!existingChat) { response.status(404).end(); return; } const result = await WorkspaceChats.updateFeedbackScore( chatId, feedback ); response.status(200).json({ success: result }); } catch (error) { console.error("Error updating chat feedback:", error); response.status(500).end(); } } ); app.get( "/workspace/:slug/suggested-messages", [validatedRequest, flexUserRoleValid([ROLES.all])], async function (request, response) { try { const { slug } = request.params; const suggestedMessages = await WorkspaceSuggestedMessages.getMessages(slug); response.status(200).json({ success: true, suggestedMessages }); } catch (error) { console.error("Error fetching suggested messages:", error); response .status(500) .json({ success: false, message: "Internal server error" }); } } ); app.post( "/workspace/:slug/suggested-messages", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const { messages = [] } = reqBody(request); const { slug } = request.params; if (!Array.isArray(messages)) { return response.status(400).json({ success: false, message: "Invalid message format. Expected an array of messages.", }); } await WorkspaceSuggestedMessages.saveAll(messages, slug); return response.status(200).json({ success: true, message: "Suggested messages saved successfully.", }); } catch (error) { console.error("Error processing the suggested messages:", error); response.status(500).json({ success: true, message: "Error saving the suggested messages.", }); } } ); app.post( "/workspace/:slug/update-pin", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), validWorkspaceSlug, ], async (request, response) => { try { const { docPath, pinStatus = false } = reqBody(request); const workspace = response.locals.workspace; const document = await Document.get({ workspaceId: workspace.id, docpath: docPath, }); if (!document) return response.sendStatus(404).end(); await Document.update(document.id, { pinned: pinStatus }); return response.status(200).end(); } catch (error) { console.error("Error processing the pin status update:", error); return response.status(500).end(); } } ); app.get( "/workspace/:slug/tts/:chatId", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async function (request, response) { try { const { chatId } = request.params; const workspace = response.locals.workspace; const cacheKey = `${workspace.slug}:${chatId}`; const wsChat = await WorkspaceChats.get({ id: Number(chatId), workspaceId: workspace.id, }); const cachedResponse = responseCache.get(cacheKey); if (cachedResponse) { response.writeHead(200, { "Content-Type": cachedResponse.mime || "audio/mpeg", }); response.end(cachedResponse.buffer); return; } const text = safeJsonParse(wsChat.response, null)?.text; if (!text) return response.sendStatus(204).end(); const TTSProvider = getTTSProvider(); const buffer = await TTSProvider.ttsBuffer(text); if (buffer === null) return response.sendStatus(204).end(); responseCache.set(cacheKey, { buffer, mime: "audio/mpeg" }); response.writeHead(200, { "Content-Type": "audio/mpeg", }); response.end(buffer); return; } catch (error) { console.error("Error processing the TTS request:", error); response.status(500).json({ message: "TTS could not be completed" }); } } ); app.get( "/workspace/:slug/pfp", [validatedRequest, flexUserRoleValid([ROLES.all])], async function (request, response) { try { const { slug } = request.params; const cachedResponse = responseCache.get(slug); if (cachedResponse) { response.writeHead(200, { "Content-Type": cachedResponse.mime || "image/png", }); response.end(cachedResponse.buffer); return; } const pfpPath = await determineWorkspacePfpFilepath(slug); if (!pfpPath) { response.sendStatus(204).end(); return; } const { found, buffer, mime } = fetchPfp(pfpPath); if (!found) { response.sendStatus(204).end(); return; } responseCache.set(slug, { buffer, mime }); response.writeHead(200, { "Content-Type": mime || "image/png", }); response.end(buffer); return; } catch (error) { console.error("Error processing the logo request:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.post( "/workspace/:slug/upload-pfp", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), handlePfpUpload, ], async function (request, response) { try { const { slug } = request.params; const uploadedFileName = request.randomFileName; if (!uploadedFileName) { return response.status(400).json({ message: "File upload failed." }); } const workspaceRecord = await Workspace.get({ slug, }); const oldPfpFilename = workspaceRecord.pfpFilename; if (oldPfpFilename) { const storagePath = path.join(__dirname, "../storage/assets/pfp"); const oldPfpPath = path.join( storagePath, normalizePath(workspaceRecord.pfpFilename) ); if (!isWithin(path.resolve(storagePath), path.resolve(oldPfpPath))) throw new Error("Invalid path name"); if (fs.existsSync(oldPfpPath)) fs.unlinkSync(oldPfpPath); } const { workspace, message } = await Workspace._update( workspaceRecord.id, { pfpFilename: uploadedFileName, } ); return response.status(workspace ? 200 : 500).json({ message: workspace ? "Profile picture uploaded successfully." : message, }); } catch (error) { console.error("Error processing the profile picture upload:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.delete( "/workspace/:slug/remove-pfp", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async function (request, response) { try { const { slug } = request.params; const workspaceRecord = await Workspace.get({ slug, }); const oldPfpFilename = workspaceRecord.pfpFilename; if (oldPfpFilename) { const storagePath = path.join(__dirname, "../storage/assets/pfp"); const oldPfpPath = path.join( storagePath, normalizePath(oldPfpFilename) ); if (!isWithin(path.resolve(storagePath), path.resolve(oldPfpPath))) throw new Error("Invalid path name"); if (fs.existsSync(oldPfpPath)) fs.unlinkSync(oldPfpPath); } const { workspace, message } = await Workspace._update( workspaceRecord.id, { pfpFilename: null, } ); // Clear the cache responseCache.delete(slug); return response.status(workspace ? 200 : 500).json({ message: workspace ? "Profile picture removed successfully." : message, }); } catch (error) { console.error("Error processing the profile picture removal:", error); response.status(500).json({ message: "Internal server error" }); } } ); app.post( "/workspace/:slug/thread/fork", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (request, response) => { try { const user = await userFromSession(request, response); const workspace = response.locals.workspace; const { chatId, threadSlug } = reqBody(request); if (!chatId) return response.status(400).json({ message: "chatId is required" }); // Get threadId we are branching from if that request body is sent // and is a valid thread slug. const threadId = !!threadSlug ? ( await WorkspaceThread.get({ slug: String(threadSlug), workspace_id: workspace.id, }) )?.id ?? null : null; const chatsToFork = await WorkspaceChats.where( { workspaceId: workspace.id, user_id: user?.id, include: true, // only duplicate visible chats thread_id: threadId, api_session_id: null, // Do not include API session chats. id: { lte: Number(chatId) }, }, null, { id: "asc" } ); const { thread: newThread, message: threadError } = await WorkspaceThread.new(workspace, user?.id); if (threadError) return response.status(500).json({ error: threadError }); let lastMessageText = ""; const chatsData = chatsToFork.map((chat) => { const chatResponse = safeJsonParse(chat.response, {}); if (chatResponse?.text) lastMessageText = chatResponse.text; return { workspaceId: workspace.id, prompt: chat.prompt, response: JSON.stringify(chatResponse), user_id: user?.id, thread_id: newThread.id, }; }); await WorkspaceChats.bulkCreate(chatsData); await WorkspaceThread.update(newThread, { name: !!lastMessageText ? truncate(lastMessageText, 22) : "Forked Thread", }); await EventLogs.logEvent( "thread_forked", { workspaceName: workspace?.name || "Unknown Workspace", threadName: newThread.name, }, user?.id ); response.status(200).json({ newThreadSlug: newThread.slug }); } catch (e) { console.error(e.message, e); response.status(500).json({ message: "Internal server error" }); } } ); app.put( "/workspace/workspace-chats/:id", [validatedRequest, flexUserRoleValid([ROLES.all])], async (request, response) => { try { const { id } = request.params; const user = await userFromSession(request, response); const validChat = await WorkspaceChats.get({ id: Number(id), user_id: user?.id ?? null, }); if (!validChat) return response .status(404) .json({ success: false, error: "Chat not found." }); await WorkspaceChats._update(validChat.id, { include: false }); response.json({ success: true, error: null }); } catch (e) { console.error(e.message, e); response.status(500).json({ success: false, error: "Server error" }); } } ); /** Handles the uploading and embedding in one-call by uploading via drag-and-drop in chat container. */ app.post( "/workspace/:slug/upload-and-embed", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), handleFileUpload, ], async function (request, response) { try { const { slug = null } = request.params; const user = await userFromSession(request, response); const currWorkspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!currWorkspace) { response.sendStatus(400).end(); return; } const Collector = new CollectorApi(); const { originalname } = request.file; const processingOnline = await Collector.online(); if (!processingOnline) { response .status(500) .json({ success: false, error: `Document processing API is not online. Document ${originalname} will not be processed automatically.`, }) .end(); return; } const { success, reason, documents } = await Collector.processDocument(originalname); if (!success || documents?.length === 0) { response.status(500).json({ success: false, error: reason }).end(); return; } Collector.log( `Document ${originalname} uploaded processed and successfully. It is now available in documents.` ); await Telemetry.sendTelemetry("document_uploaded"); await EventLogs.logEvent( "document_uploaded", { documentName: originalname, }, response.locals?.user?.id ); const document = documents[0]; const { failedToEmbed = [], errors = [] } = await Document.addDocuments( currWorkspace, [document.location], response.locals?.user?.id ); if (failedToEmbed.length > 0) return response .status(200) .json({ success: false, error: errors?.[0], document: null }); response.status(200).json({ success: true, error: null, document: { id: document.id, location: document.location }, }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/remove-and-unembed", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), handleFileUpload, ], async function (request, response) { try { const { slug = null } = request.params; const body = reqBody(request); const user = await userFromSession(request, response); const currWorkspace = multiUserMode(response) ? await Workspace.getWithUser(user, { slug }) : await Workspace.get({ slug }); if (!currWorkspace || !body.documentLocation) return response.sendStatus(400).end(); // Will delete the document from the entire system + wil unembed it. await purgeDocument(body.documentLocation); response.status(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/workspace/:slug/prompt-history", [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug], async (_, response) => { try { response.status(200).json({ history: await Workspace.promptHistory({ workspaceId: response.locals.workspace.id, }), }); } catch (error) { console.error("Error fetching prompt history:", error); response.sendStatus(500).end(); } } ); app.delete( "/workspace/:slug/prompt-history", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), validWorkspaceSlug, ], async (_, response) => { try { response.status(200).json({ success: await Workspace.deleteAllPromptHistory({ workspaceId: response.locals.workspace.id, }), }); } catch (error) { console.error("Error clearing prompt history:", error); response.sendStatus(500).end(); } } ); app.delete( "/workspace/prompt-history/:id", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), validWorkspaceSlug, ], async (request, response) => { try { const { id } = request.params; response.status(200).json({ success: await Workspace.deletePromptHistory({ workspaceId: response.locals.workspace.id, id: Number(id), }), }); } catch (error) { console.error("Error deleting prompt history:", error); response.sendStatus(500).end(); } } ); /**
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
true
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/utils.js
server/endpoints/utils.js
const { SystemSettings } = require("../models/systemSettings"); function utilEndpoints(app) { if (!app) return; app.get("/utils/metrics", async (_, response) => { try { const metrics = { online: true, version: getGitVersion(), mode: (await SystemSettings.isMultiUserMode()) ? "multi-user" : "single-user", vectorDB: process.env.VECTOR_DB || "lancedb", storage: await getDiskStorage(), appVersion: getDeploymentVersion(), }; response.status(200).json(metrics); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); } function getGitVersion() { if (process.env.ANYTHING_LLM_RUNTIME === "docker") return "--"; try { return require("child_process") .execSync("git rev-parse HEAD") .toString() .trim(); } catch (e) { console.error("getGitVersion", e.message); return "--"; } } function byteToGigaByte(n) { return n / Math.pow(10, 9); } async function getDiskStorage() { try { const checkDiskSpace = require("check-disk-space").default; const { free, size } = await checkDiskSpace("/"); return { current: Math.floor(byteToGigaByte(free)), capacity: Math.floor(byteToGigaByte(size)), }; } catch { return { current: null, capacity: null, }; } } /** * Returns the model tag based on the provider set in the environment. * This information is used to identify the parent model for the system * so that we can prioritize the correct model and types for future updates * as well as build features in AnythingLLM directly for a specific model or capabilities. * * Disable with {@link https://github.com/Mintplex-Labs/anything-llm?tab=readme-ov-file#telemetry--privacy|Disable Telemetry} * @returns {string} The model tag. */ function getModelTag() { let model = null; const provider = process.env.LLM_PROVIDER; switch (provider) { case "openai": model = process.env.OPEN_MODEL_PREF; break; case "anthropic": model = process.env.ANTHROPIC_MODEL_PREF; break; case "lmstudio": model = process.env.LMSTUDIO_MODEL_PREF; break; case "ollama": model = process.env.OLLAMA_MODEL_PREF; break; case "groq": model = process.env.GROQ_MODEL_PREF; break; case "togetherai": model = process.env.TOGETHER_AI_MODEL_PREF; break; case "azure": model = process.env.OPEN_MODEL_PREF; break; case "koboldcpp": model = process.env.KOBOLD_CPP_MODEL_PREF; break; case "localai": model = process.env.LOCAL_AI_MODEL_PREF; break; case "openrouter": model = process.env.OPENROUTER_MODEL_PREF; break; case "mistral": model = process.env.MISTRAL_MODEL_PREF; break; case "generic-openai": model = process.env.GENERIC_OPEN_AI_MODEL_PREF; break; case "perplexity": model = process.env.PERPLEXITY_MODEL_PREF; break; case "textgenwebui": model = "textgenwebui-default"; break; case "bedrock": model = process.env.AWS_BEDROCK_LLM_MODEL_PREFERENCE; break; case "fireworksai": model = process.env.FIREWORKS_AI_LLM_MODEL_PREF; break; case "deepseek": model = process.env.DEEPSEEK_MODEL_PREF; break; case "litellm": model = process.env.LITE_LLM_MODEL_PREF; break; case "apipie": model = process.env.APIPIE_LLM_MODEL_PREF; break; case "xai": model = process.env.XAI_LLM_MODEL_PREF; break; case "novita": model = process.env.NOVITA_LLM_MODEL_PREF; break; case "nvidia-nim": model = process.env.NVIDIA_NIM_LLM_MODEL_PREF; break; case "ppio": model = process.env.PPIO_MODEL_PREF; break; case "gemini": model = process.env.GEMINI_LLM_MODEL_PREF; break; case "moonshotai": model = process.env.MOONSHOT_AI_MODEL_PREF; break; case "zai": model = process.env.ZAI_MODEL_PREF; break; case "giteeai": model = process.env.GITEE_AI_MODEL_PREF; break; case "cohere": model = process.env.COHERE_MODEL_PREF; break; default: model = "--"; break; } return model; } /** * Returns the deployment version. * - Dev: reads from package.json * - Prod: reads from ENV * expected format: major.minor.patch * @returns {string|null} The deployment version. */ function getDeploymentVersion() { if (process.env.NODE_ENV === "development") return require("../../package.json").version; if (process.env.DEPLOYMENT_VERSION) return process.env.DEPLOYMENT_VERSION; return null; } /** * Returns the user agent for the AnythingLLM deployment. * @returns {string} The user agent. */ function getAnythingLLMUserAgent() { const version = getDeploymentVersion() || "unknown"; return `AnythingLLM/${version}`; } module.exports = { utilEndpoints, getGitVersion, getModelTag, getAnythingLLMUserAgent, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/mobile/index.js
server/endpoints/mobile/index.js
const { validatedRequest } = require("../../utils/middleware/validatedRequest"); const { MobileDevice } = require("../../models/mobileDevice"); const { handleMobileCommand } = require("./utils"); const { validDeviceToken, validRegistrationToken } = require("./middleware"); const { reqBody } = require("../../utils/http"); const { flexUserRoleValid, ROLES, } = require("../../utils/middleware/multiUserProtected"); function mobileEndpoints(app) { if (!app) return; /** * Gets all the devices from the database. * @param {import("express").Request} request * @param {import("express").Response} response */ app.get( "/mobile/devices", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_request, response) => { try { const devices = await MobileDevice.where({}, null, null, { user: { select: { id: true, username: true } }, }); return response.status(200).json({ devices }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); /** * Updates the device status via an updates object. * @param {import("express").Request} request * @param {import("express").Response} response */ app.post( "/mobile/update/:id", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const body = reqBody(request); const updates = await MobileDevice.update( Number(request.params.id), body ); if (updates.error) return response.status(400).json({ error: updates.error }); return response.status(200).json({ updates }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); /** * Deletes a device from the database. * @param {import("express").Request} request * @param {import("express").Response} response */ app.delete( "/mobile/:id", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (request, response) => { try { const device = await MobileDevice.get({ id: Number(request.params.id), }); if (!device) return response.status(404).json({ error: "Device not found" }); await MobileDevice.delete(device.id); return response.status(200).json({ message: "Device deleted" }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/mobile/connect-info", [validatedRequest, flexUserRoleValid([ROLES.admin])], async (_request, response) => { try { return response.status(200).json({ connectionUrl: MobileDevice.connectionURL(response.locals?.user), }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); /** * Checks if the device auth token is valid * against approved devices. */ app.get("/mobile/auth", [validDeviceToken], async (_, response) => { try { return response .status(200) .json({ success: true, message: "Device authenticated" }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); /** * Registers a new device (is open so that the mobile app can register itself) * Will create a new device in the database but requires approval by the user * before it can be used. * @param {import("express").Request} request * @param {import("express").Response} response */ app.post( "/mobile/register", [validRegistrationToken], async (request, response) => { try { const body = reqBody(request); const result = await MobileDevice.create({ deviceOs: body.deviceOs, deviceName: body.deviceName, userId: response.locals?.user?.id, }); if (result.error) return response.status(400).json({ error: result.error }); return response.status(200).json({ token: result.device.token, platform: MobileDevice.platform, }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/mobile/send/:command", [validDeviceToken], async (request, response) => { try { return handleMobileCommand(request, response); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { mobileEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/mobile/middleware/index.js
server/endpoints/mobile/middleware/index.js
const { MobileDevice } = require("../../../models/mobileDevice"); const { SystemSettings } = require("../../../models/systemSettings"); const { User } = require("../../../models/user"); /** * Validates the device id from the request headers by checking if the device * exists in the database and is approved. * @param {import("express").Request} request * @param {import("express").Response} response * @param {import("express").NextFunction} next */ async function validDeviceToken(request, response, next) { try { const token = request.header("x-anythingllm-mobile-device-token"); if (!token) return response.status(400).json({ error: "Device token is required" }); const device = await MobileDevice.get( { token: String(token) }, { user: true } ); if (!device) return response.status(400).json({ error: "Device not found" }); if (!device.approved) return response.status(400).json({ error: "Device not approved" }); // If the device is associated with a user then we can associate it with the locals // so we can reuse it later. if (device.user) { if (device.user.suspended) return response.status(400).json({ error: "User is suspended." }); response.locals.user = device.user; } delete device.user; response.locals.device = device; next(); } catch (error) { console.error("validDeviceToken", error); response.status(500).json({ error: "Invalid middleware response" }); } } /** * Validates a temporary registration token that is passed in the request * and associates the user with the token (if valid). Temporary token is consumed * and cannot be used again after this middleware is called. * @param {*} request * @param {*} response * @param {*} next */ async function validRegistrationToken(request, response, next) { try { const authHeader = request.header("Authorization"); const tempToken = authHeader ? authHeader.split(" ")[1] : null; if (!tempToken) return response .status(400) .json({ error: "Registration token is required" }); const tempTokenData = MobileDevice.tempToken(tempToken); if (!tempTokenData) return response .status(400) .json({ error: "Invalid or expired registration token" }); // If in multi-user mode, we need to validate the user id // associated exists, is not banned and then associate with locals so we can reuse it later. // If not in multi-user mode then simply having a valid token is enough. const multiUserMode = await SystemSettings.isMultiUserMode(); if (multiUserMode) { if (!tempTokenData.userId) return response .status(400) .json({ error: "User id not found in registration token" }); const user = await User.get({ id: Number(tempTokenData.userId) }); if (!user) return response.status(400).json({ error: "User not found" }); if (user.suspended) return response .status(400) .json({ error: "User is suspended - cannot register device" }); response.locals.user = user; } next(); } catch (error) { console.error("validRegistrationToken:error", error); response.status(500).json({ error: "Invalid middleware response from validRegistrationToken", }); } } module.exports = { validDeviceToken, validRegistrationToken, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/mobile/utils/index.js
server/endpoints/mobile/utils/index.js
const { Workspace } = require("../../../models/workspace"); const { WorkspaceChats } = require("../../../models/workspaceChats"); const { WorkspaceThread } = require("../../../models/workspaceThread"); const { ApiChatHandler } = require("../../../utils/chats/apiChatHandler"); const { reqBody } = require("../../../utils/http"); const prisma = require("../../../utils/prisma"); const { getModelTag } = require("../../utils"); const { MobileDevice } = require("../../../models/mobileDevice"); /** * * @param {import("express").Request} request * @param {import("express").Response} response * @returns */ async function handleMobileCommand(request, response) { const { command } = request.params; const user = response.locals.user ?? null; const body = reqBody(request); if (command === "workspaces") { const workspaces = user ? await Workspace.whereWithUser(user, {}) : await Workspace.where({}); for (const workspace of workspaces) { const [threadCount, chatCount] = await Promise.all([ prisma.workspace_threads.count({ where: { workspace_id: workspace.id, ...(user ? { user_id: user.id } : {}), }, }), prisma.workspace_chats.count({ where: { workspaceId: workspace.id, include: true, ...(user ? { user_id: user.id } : {}), }, }), ]); workspace.threadCount = threadCount; workspace.chatCount = chatCount; workspace.platform = MobileDevice.platform; } return response.status(200).json({ workspaces }); } if (command === "workspace-content") { const workspace = user ? await Workspace.getWithUser(user, { slug: String(body.workspaceSlug) }) : await Workspace.get({ slug: String(body.workspaceSlug) }); if (!workspace) return response.status(400).json({ error: "Workspace not found" }); const threads = [ { id: 0, name: "Default Thread", slug: "default-thread", workspace_id: workspace.id, createdAt: new Date(), lastUpdatedAt: new Date(), }, ...(await prisma.workspace_threads.findMany({ where: { workspace_id: workspace.id, ...(user ? { user_id: user.id } : {}), }, })), ]; const chats = ( await prisma.workspace_chats.findMany({ where: { workspaceId: workspace.id, include: true, ...(user ? { user_id: user.id } : {}), }, }) ).map((chat) => ({ ...chat, // Create a dummy thread_id for the default thread so the chats can be mapped correctly. ...(chat.thread_id === null ? { thread_id: 0 } : {}), createdAt: chat.createdAt.toISOString(), lastUpdatedAt: chat.lastUpdatedAt.toISOString(), })); return response.status(200).json({ threads, chats }); } // Get the model for this workspace (workspace -> system) if (command === "model-tag") { const { workspaceSlug } = body; const workspace = user ? await Workspace.getWithUser(user, { slug: String(workspaceSlug) }) : await Workspace.get({ slug: String(workspaceSlug) }); if (!workspace) return response.status(400).json({ error: "Workspace not found" }); if (workspace.chatModel) return response.status(200).json({ model: workspace.chatModel }); else return response.status(200).json({ model: getModelTag() }); } if (command === "reset-chat") { const { workspaceSlug, threadSlug } = body; const workspace = user ? await Workspace.getWithUser(user, { slug: String(workspaceSlug) }) : await Workspace.get({ slug: String(workspaceSlug) }); if (!workspace) return response.status(400).json({ error: "Workspace not found" }); const threadId = threadSlug ? await prisma.workspace_threads.findFirst({ where: { workspace_id: workspace.id, slug: String(threadSlug), ...(user ? { user_id: user.id } : {}), }, })?.id : null; await WorkspaceChats.markThreadHistoryInvalidV2({ workspaceId: workspace.id, ...(user ? { user_id: user.id } : {}), thread_id: threadId, // if threadId is null, this will reset the default thread. }); return response.status(200).json({ success: true }); } if (command === "new-thread") { const { workspaceSlug } = body; const workspace = user ? await Workspace.getWithUser(user, { slug: String(workspaceSlug) }) : await Workspace.get({ slug: String(workspaceSlug) }); if (!workspace) return response.status(400).json({ error: "Workspace not found" }); const { thread } = await WorkspaceThread.new(workspace, user?.id); return response.status(200).json({ thread }); } if (command === "stream-chat") { const { workspaceSlug = null, threadSlug = null, message } = body; if (!workspaceSlug) return response.status(400).json({ error: "Workspace ID is required" }); else if (!message) return response.status(400).json({ error: "Message is required" }); const workspace = user ? await Workspace.getWithUser(user, { slug: String(workspaceSlug) }) : await Workspace.get({ slug: String(workspaceSlug) }); if (!workspace) return response.status(400).json({ error: "Workspace not found" }); const thread = threadSlug ? await prisma.workspace_threads.findFirst({ where: { workspace_id: workspace.id, slug: String(threadSlug), ...(user ? { user_id: user.id } : {}), }, }) : null; response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); await ApiChatHandler.streamChat({ response, workspace, thread, message, mode: "chat", user: user, sessionId: null, attachments: [], reset: false, }); return response.end(); } if (command === "unregister-device") { if (!response.locals.device) return response.status(200).json({ success: true }); await MobileDevice.delete(response.locals.device.id); return response.status(200).json({ success: true }); } return response.status(400).json({ error: "Invalid command" }); } module.exports = { handleMobileCommand, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/extensions/index.js
server/endpoints/extensions/index.js
const { Telemetry } = require("../../models/telemetry"); const { CollectorApi } = require("../../utils/collectorApi"); const { flexUserRoleValid, ROLES, } = require("../../utils/middleware/multiUserProtected"); const { validatedRequest } = require("../../utils/middleware/validatedRequest"); const { isSupportedRepoProvider, } = require("../../utils/middleware/isSupportedRepoProviders"); function extensionEndpoints(app) { if (!app) return; app.post( "/ext/:repo_platform/branches", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), isSupportedRepoProvider, ], async (request, response) => { try { const { repo_platform } = request.params; const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: `/ext/${repo_platform}-repo/branches`, method: "POST", body: request.body, }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/:repo_platform/repo", [ validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager]), isSupportedRepoProvider, ], async (request, response) => { try { const { repo_platform } = request.params; const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: `/ext/${repo_platform}-repo`, method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: `${repo_platform}_repo`, }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/youtube/transcript", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/youtube-transcript", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "youtube_transcript", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/confluence", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/confluence", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "confluence", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/website-depth", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/website-depth", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "website_depth", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/drupalwiki", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/drupalwiki", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "drupalwiki", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/obsidian/vault", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/obsidian/vault", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "obsidian_vault", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/ext/paperless-ngx", [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])], async (request, response) => { try { const responseFromProcessor = await new CollectorApi().forwardExtensionRequest({ endpoint: "/ext/paperless-ngx", method: "POST", body: request.body, }); await Telemetry.sendTelemetry("extension_invoked", { type: "paperless_ngx", }); response.status(200).json(responseFromProcessor); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { extensionEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/index.js
server/endpoints/api/index.js
const { useSwagger } = require("../../swagger/utils"); const { apiAdminEndpoints } = require("./admin"); const { apiAuthEndpoints } = require("./auth"); const { apiDocumentEndpoints } = require("./document"); const { apiSystemEndpoints } = require("./system"); const { apiWorkspaceEndpoints } = require("./workspace"); const { apiWorkspaceThreadEndpoints } = require("./workspaceThread"); const { apiUserManagementEndpoints } = require("./userManagement"); const { apiOpenAICompatibleEndpoints } = require("./openai"); const { apiEmbedEndpoints } = require("./embed"); // All endpoints must be documented and pass through the validApiKey Middleware. // How to JSDoc an endpoint // https://www.npmjs.com/package/swagger-autogen#openapi-3x function developerEndpoints(app, router) { if (!router) return; useSwagger(app); apiAuthEndpoints(router); apiAdminEndpoints(router); apiSystemEndpoints(router); apiWorkspaceEndpoints(router); apiDocumentEndpoints(router); apiWorkspaceThreadEndpoints(router); apiUserManagementEndpoints(router); apiOpenAICompatibleEndpoints(router); apiEmbedEndpoints(router); } module.exports = { developerEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/userManagement/index.js
server/endpoints/api/userManagement/index.js
const { User } = require("../../../models/user"); const { TemporaryAuthToken } = require("../../../models/temporaryAuthToken"); const { multiUserMode } = require("../../../utils/http"); const { simpleSSOEnabled, } = require("../../../utils/middleware/simpleSSOEnabled"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); function apiUserManagementEndpoints(app) { if (!app) return; app.get("/v1/users", [validApiKey], async (request, response) => { /* #swagger.tags = ['User Management'] #swagger.description = 'List all users' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { users: [ { "id": 1, "username": "john_doe", "role": "admin" }, { "id": 2, "username": "jane_smith", "role": "default" } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Permission denied.", } */ try { if (!multiUserMode(response)) return response .status(401) .send("Instance is not in Multi-User mode. Permission denied."); const users = await User.where(); const filteredUsers = users.map((user) => ({ id: user.id, username: user.username, role: user.role, })); response.status(200).json({ users: filteredUsers }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get( "/v1/users/:id/issue-auth-token", [validApiKey, simpleSSOEnabled], async (request, response) => { /* #swagger.tags = ['User Management'] #swagger.description = 'Issue a temporary auth token for a user' #swagger.parameters['id'] = { in: 'path', description: 'The ID of the user to issue a temporary auth token for', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { token: "1234567890", loginPath: "/sso/simple?token=1234567890" } } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Permission denied.", } */ try { const { id: userId } = request.params; const user = await User.get({ id: Number(userId) }); if (!user) return response.status(404).json({ error: "User not found" }); const { token, error } = await TemporaryAuthToken.issue(userId); if (error) return response.status(500).json({ error: error }); response.status(200).json({ token: String(token), loginPath: `/sso/simple?token=${token}`, }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); } module.exports = { apiUserManagementEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/system/index.js
server/endpoints/api/system/index.js
const { EventLogs } = require("../../../models/eventLogs"); const { SystemSettings } = require("../../../models/systemSettings"); const { purgeDocument } = require("../../../utils/files/purgeDocument"); const { getVectorDbClass } = require("../../../utils/helpers"); const { exportChatsAsType } = require("../../../utils/helpers/chat/convertTo"); const { dumpENV, updateENV } = require("../../../utils/helpers/updateENV"); const { reqBody } = require("../../../utils/http"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); function apiSystemEndpoints(app) { if (!app) return; app.get("/v1/system/env-dump", async (_, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Dump all settings to file storage' #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { if (process.env.NODE_ENV !== "production") return response.sendStatus(200).end(); dumpENV(); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get("/v1/system", [validApiKey], async (_, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Get all current system settings that are defined.' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "settings": { "VectorDB": "pinecone", "PineConeKey": true, "PineConeIndex": "my-pinecone-index", "LLMProvider": "azure", "[KEY_NAME]": "KEY_VALUE", } } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const settings = await SystemSettings.currentSettings(); response.status(200).json({ settings }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get("/v1/system/vector-count", [validApiKey], async (_, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Number of all vectors in connected vector database' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "vectorCount": 5450 } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const VectorDb = getVectorDbClass(); const vectorCount = await VectorDb.totalVectors(); response.status(200).json({ vectorCount }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.post( "/v1/system/update-env", [validApiKey], async (request, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Update a system setting or preference.' #swagger.requestBody = { description: 'Key pair object that matches a valid setting and value. Get keys from GET /v1/system or refer to codebase.', required: true, content: { "application/json": { example: { VectorDB: "lancedb", AnotherKey: "updatedValue" } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { newValues: {"[ENV_KEY]": 'Value'}, error: 'error goes here, otherwise null' } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const body = reqBody(request); const { newValues, error } = await updateENV(body); response.status(200).json({ newValues, error }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/v1/system/export-chats", [validApiKey], async (request, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Export all of the chats from the system in a known format. Output depends on the type sent. Will be send with the correct header for the output.' #swagger.parameters['type'] = { in: 'query', description: "Export format jsonl, json, csv, jsonAlpaca", required: false, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: [ { "role": "user", "content": "What is AnythinglLM?" }, { "role": "assistant", "content": "AnythingLLM is a knowledge graph and vector database management system built using NodeJS express server. It provides an interface for handling all interactions, including vectorDB management and LLM (Language Model) interactions." }, ] } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { type = "jsonl" } = request.query; const { contentType, data } = await exportChatsAsType( type, "workspace" ); await EventLogs.logEvent("exported_chats", { type, }); response.setHeader("Content-Type", contentType); response.status(200).send(data); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/v1/system/remove-documents", [validApiKey], async (request, response) => { /* #swagger.tags = ['System Settings'] #swagger.description = 'Permanently remove documents from the system.' #swagger.requestBody = { description: 'Array of document names to be removed permanently.', required: true, content: { "application/json": { schema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, example: [ "custom-documents/file.txt-fc4beeeb-e436-454d-8bb4-e5b8979cb48f.json" ] } } } } } } #swagger.responses[200] = { description: 'Documents removed successfully.', content: { "application/json": { schema: { type: 'object', example: { success: true, message: 'Documents removed successfully' } } } } } #swagger.responses[403] = { description: 'Forbidden', schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[500] = { description: 'Internal Server Error' } */ try { const { names } = reqBody(request); for await (const name of names) await purgeDocument(name); response .status(200) .json({ success: true, message: "Documents removed successfully" }) .end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); } module.exports = { apiSystemEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/auth/index.js
server/endpoints/api/auth/index.js
const { validApiKey } = require("../../../utils/middleware/validApiKey"); function apiAuthEndpoints(app) { if (!app) return; app.get("/v1/auth", [validApiKey], (_, response) => { /* #swagger.tags = ['Authentication'] #swagger.description = 'Verify the attached Authentication header contains a valid API token.' #swagger.responses[200] = { description: 'Valid auth token was found.', content: { "application/json": { schema: { type: 'object', example: { authenticated: true, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ response.status(200).json({ authenticated: true }); }); } module.exports = { apiAuthEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/openai/index.js
server/endpoints/api/openai/index.js
const { v4: uuidv4 } = require("uuid"); const { Document } = require("../../../models/documents"); const { Telemetry } = require("../../../models/telemetry"); const { Workspace } = require("../../../models/workspace"); const { getLLMProvider, getEmbeddingEngineSelection, } = require("../../../utils/helpers"); const { reqBody } = require("../../../utils/http"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); const { EventLogs } = require("../../../models/eventLogs"); const { OpenAICompatibleChat, } = require("../../../utils/chats/openaiCompatible"); const { getModelTag } = require("../../utils"); const { extractTextContent, extractAttachments } = require("./helpers"); function apiOpenAICompatibleEndpoints(app) { if (!app) return; app.get("/v1/openai/models", [validApiKey], async (_, response) => { /* #swagger.tags = ['OpenAI Compatible Endpoints'] #swagger.description = 'Get all available "models" which are workspaces you can use for chatting.' #swagger.responses[200] = { content: { "application/json": { "schema": { "type": "object", "example": { "object": "list", "data": [ { "id": "model-id-0", "object": "model", "created": 1686935002, "owned_by": "organization-owner" }, { "id": "model-id-1", "object": "model", "created": 1686935002, "owned_by": "organization-owner" } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const data = []; const workspaces = await Workspace.where(); for (const workspace of workspaces) { const provider = workspace?.chatProvider ?? process.env.LLM_PROVIDER; let LLMProvider = getLLMProvider({ provider, model: workspace?.chatModel, }); data.push({ id: workspace.slug, object: "model", created: Math.floor(Number(new Date(workspace.createdAt)) / 1000), owned_by: `${provider}-${LLMProvider.model}`, }); } return response.status(200).json({ object: "list", data, }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.post( "/v1/openai/chat/completions", [validApiKey], async (request, response) => { /* #swagger.tags = ['OpenAI Compatible Endpoints'] #swagger.description = 'Execute a chat with a workspace with OpenAI compatibility. Supports streaming as well. Model must be a workspace slug from /models.' #swagger.requestBody = { description: 'Send a prompt to the workspace with full use of documents as if sending a chat in AnythingLLM. Only supports some values of OpenAI API. See example below.', required: true, content: { "application/json": { example: { messages: [ {"role":"system", content: "You are a helpful assistant"}, {"role":"user", content: "What is AnythingLLM?"}, {"role":"assistant", content: "AnythingLLM is...."}, {"role":"user", content: "Follow up question..."} ], model: "sample-workspace", stream: true, temperature: 0.7 } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { model, messages = [], temperature, stream = false, } = reqBody(request); const workspace = await Workspace.get({ slug: String(model) }); if (!workspace) return response.status(401).end(); const userMessage = messages.pop(); if (userMessage.role !== "user") { return response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: "No user prompt found. Must be last element in message array with 'user' role.", }); } const systemPrompt = messages.find((chat) => chat.role === "system")?.content ?? null; const history = messages.filter((chat) => chat.role !== "system") ?? []; if (!stream) { const chatResult = await OpenAICompatibleChat.chatSync({ workspace, systemPrompt, history, prompt: extractTextContent(userMessage.content), attachments: extractAttachments(userMessage.content), temperature: Number(temperature), }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: workspace.chatProvider ?? process.env.LLM_PROVIDER ?? "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", }); return response.status(200).json(chatResult); } response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); await OpenAICompatibleChat.streamChat({ workspace, systemPrompt, history, prompt: extractTextContent(userMessage.content), attachments: extractAttachments(userMessage.content), temperature: Number(temperature), response, }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", }); response.end(); } catch (e) { console.error(e.message, e); response.status(500).end(); } } ); app.post( "/v1/openai/embeddings", [validApiKey], async (request, response) => { /* #swagger.tags = ['OpenAI Compatible Endpoints'] #swagger.description = 'Get the embeddings of any arbitrary text string. This will use the embedder provider set in the system. Please ensure the token length of each string fits within the context of your embedder model.' #swagger.requestBody = { description: 'The input string(s) to be embedded. If the text is too long for the embedder model context, it will fail to embed. The vector and associated chunk metadata will be returned in the array order provided', required: true, content: { "application/json": { example: { input: [ "This is my first string to embed", "This is my second string to embed", ], model: null, } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const body = reqBody(request); // Support input or "inputs" (for backwards compatibility) as an array of strings or a single string // TODO: "inputs" key support will eventually be fully removed. let input = body?.input || body?.inputs || []; // if input is not an array, make it an array and force to string content if (!Array.isArray(input)) input = [String(input)]; if (Array.isArray(input)) { if (input.length === 0) throw new Error("Input array cannot be empty."); const validArray = input.every((text) => typeof text === "string"); if (!validArray) throw new Error("All inputs to be embedded must be strings."); } const Embedder = getEmbeddingEngineSelection(); const embeddings = await Embedder.embedChunks(input); const data = []; embeddings.forEach((embedding, index) => { data.push({ object: "embedding", embedding, index, }); }); return response.status(200).json({ object: "list", data, model: Embedder.model, }); } catch (e) { console.error(e.message, e); response.status(500).end(); } } ); app.get( "/v1/openai/vector_stores", [validApiKey], async (request, response) => { /* #swagger.tags = ['OpenAI Compatible Endpoints'] #swagger.description = 'List all the vector database collections connected to AnythingLLM. These are essentially workspaces but return their unique vector db identifier - this is the same as the workspace slug.' #swagger.responses[200] = { content: { "application/json": { "schema": { "type": "object", "example": { "data": [ { "id": "slug-here", "object": "vector_store", "name": "My workspace", "file_counts": { "total": 3 }, "provider": "LanceDB" } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { // We dump all in the first response and despite saying there is // not more data the library still checks with a query param so if // we detect one - respond with nothing. if (Object.keys(request?.query ?? {}).length !== 0) { return response.status(200).json({ data: [], has_more: false, }); } const data = []; const VectorDBProvider = process.env.VECTOR_DB || "lancedb"; const workspaces = await Workspace.where(); for (const workspace of workspaces) { data.push({ id: workspace.slug, object: "vector_store", name: workspace.name, file_counts: { total: await Document.count({ workspaceId: Number(workspace.id), }), }, provider: VectorDBProvider, }); } return response.status(200).json({ first_id: [...data].splice(0)?.[0]?.id, last_id: [...data].splice(-1)?.[0]?.id ?? data.splice(1)?.[0]?.id, data, has_more: false, }); } catch (e) { console.error(e.message, e); response.status(500).end(); } } ); } module.exports = { apiOpenAICompatibleEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/openai/helpers.js
server/endpoints/api/openai/helpers.js
/** * Extracts text content from a multimodal message * If the content has multiple text items, it will join them together with a newline. * @param {string|Array} content - Message content that could be string or array of content objects * @returns {string} - The text content */ function extractTextContent(content) { if (!Array.isArray(content)) return content; return content .filter((item) => item.type === "text") .map((item) => item.text) .join("\n"); } /** * Detects mime type from a base64 data URL string, defaults to PNG if not detected * @param {string} dataUrl - The data URL string (e.g. data:image/jpeg;base64,...) * @returns {string} - The mime type or 'image/png' if not detected */ function getMimeTypeFromDataUrl(dataUrl) { try { const matches = dataUrl.match(/^data:([^;]+);base64,/); return matches ? matches[1].toLowerCase() : "image/png"; } catch (e) { return "image/png"; } } /** * Extracts attachments from a multimodal message * The attachments provided are in OpenAI format since this util is used in the OpenAI compatible chat. * However, our backend internal chat uses the Attachment type we use elsewhere in the app so we have to convert it. * @param {Array} content - Message content that could be string or array of content objects * @returns {import("../../../utils/helpers").Attachment[]} - The attachments */ function extractAttachments(content) { if (!Array.isArray(content)) return []; return content .filter((item) => item.type === "image_url") .map((item, index) => ({ name: `uploaded_image_${index}`, mime: getMimeTypeFromDataUrl(item.image_url.url), contentString: item.image_url.url, })); } module.exports = { extractTextContent, extractAttachments, };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/workspaceThread/index.js
server/endpoints/api/workspaceThread/index.js
const { v4: uuidv4 } = require("uuid"); const { WorkspaceThread } = require("../../../models/workspaceThread"); const { Workspace } = require("../../../models/workspace"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); const { reqBody, multiUserMode } = require("../../../utils/http"); const { VALID_CHAT_MODE } = require("../../../utils/chats/stream"); const { Telemetry } = require("../../../models/telemetry"); const { EventLogs } = require("../../../models/eventLogs"); const { writeResponseChunk, convertToChatHistory, } = require("../../../utils/helpers/chat/responses"); const { WorkspaceChats } = require("../../../models/workspaceChats"); const { User } = require("../../../models/user"); const { ApiChatHandler } = require("../../../utils/chats/apiChatHandler"); const { getModelTag } = require("../../utils"); function apiWorkspaceThreadEndpoints(app) { if (!app) return; app.post( "/v1/workspace/:slug/thread/new", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Create a new workspace thread' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.requestBody = { description: 'Optional userId associated with the thread, thread slug and thread name', required: false, content: { "application/json": { example: { userId: 1, name: 'Name', slug: 'thread-slug' } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { thread: { "id": 1, "name": "Thread", "slug": "thread-uuid", "user_id": 1, "workspace_id": 1 }, message: null } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const wslug = request.params.slug; let { userId = null, name = null, slug = null } = reqBody(request); const workspace = await Workspace.get({ slug: wslug }); if (!workspace) { response.sendStatus(400).end(); return; } // If the system is not multi-user and you pass in a userId // it needs to be nullified as no users exist. This can still fail validation // as we don't check if the userID is valid. if (!response.locals.multiUserMode && !!userId) userId = null; const { thread, message } = await WorkspaceThread.new( workspace, userId ? Number(userId) : null, { name, slug } ); await Telemetry.sendTelemetry("workspace_thread_created", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", }); await EventLogs.logEvent("api_workspace_thread_created", { workspaceName: workspace?.name || "Unknown Workspace", }); response.status(200).json({ thread, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/v1/workspace/:slug/thread/:threadSlug/update", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Update thread name by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.parameters['threadSlug'] = { in: 'path', description: 'Unique slug of thread', required: true, type: 'string' } #swagger.requestBody = { description: 'JSON object containing new name to update the thread.', required: true, content: { "application/json": { example: { "name": 'Updated Thread Name' } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { thread: { "id": 1, "name": "Updated Thread Name", "slug": "thread-uuid", "user_id": 1, "workspace_id": 1 }, message: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug, threadSlug } = request.params; const { name } = reqBody(request); const workspace = await Workspace.get({ slug }); const thread = await WorkspaceThread.get({ slug: threadSlug, workspace_id: workspace.id, }); if (!workspace || !thread) { response.sendStatus(400).end(); return; } const { thread: updatedThread, message } = await WorkspaceThread.update( thread, { name } ); response.status(200).json({ thread: updatedThread, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.delete( "/v1/workspace/:slug/thread/:threadSlug", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Delete a workspace thread' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.parameters['threadSlug'] = { in: 'path', description: 'Unique slug of thread', required: true, type: 'string' } #swagger.responses[200] = { description: 'Thread deleted successfully' } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug, threadSlug } = request.params; const workspace = await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } await WorkspaceThread.delete({ slug: threadSlug, workspace_id: workspace.id, }); response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/v1/workspace/:slug/thread/:threadSlug/chats", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Get chats for a workspace thread' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.parameters['threadSlug'] = { in: 'path', description: 'Unique slug of thread', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { history: [ { "role": "user", "content": "What is AnythingLLM?", "sentAt": 1692851630 }, { "role": "assistant", "content": "AnythingLLM is a platform that allows you to convert notes, PDFs, and other source materials into a chatbot. It ensures privacy, cites its answers, and allows multiple people to interact with the same documents simultaneously. It is particularly useful for businesses to enhance the visibility and readability of various written communications such as SOPs, contracts, and sales calls. You can try it out with a free trial to see if it meets your business needs.", "sources": [{"source": "object about source document and snippets used"}] } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug, threadSlug } = request.params; const workspace = await Workspace.get({ slug }); const thread = await WorkspaceThread.get({ slug: threadSlug, workspace_id: workspace.id, }); if (!workspace || !thread) { response.sendStatus(400).end(); return; } const history = await WorkspaceChats.where( { workspaceId: workspace.id, thread_id: thread.id, api_session_id: null, // Do not include API session chats. include: true, }, null, { id: "asc" } ); response.status(200).json({ history: convertToChatHistory(history) }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/v1/workspace/:slug/thread/:threadSlug/chat", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Chat with a workspace thread' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.parameters['threadSlug'] = { in: 'path', description: 'Unique slug of thread', required: true, type: 'string' } #swagger.requestBody = { description: 'Send a prompt to the workspace thread and the type of conversation (query or chat).', required: true, content: { "application/json": { example: { message: "What is AnythingLLM?", mode: "query | chat", userId: 1, attachments: [ { name: "image.png", mime: "image/png", contentString: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." } ], reset: false } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { id: 'chat-uuid', type: "abort | textResponse", textResponse: "Response to your query", sources: [{title: "anythingllm.txt", chunk: "This is a context chunk used in the answer of the prompt by the LLM."}], close: true, error: "null | text string of the failure mode." } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug, threadSlug } = request.params; const { message, mode = "query", userId, attachments = [], reset = false, } = reqBody(request); const workspace = await Workspace.get({ slug }); const thread = await WorkspaceThread.get({ slug: threadSlug, workspace_id: workspace.id, }); if (!workspace || !thread) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `Workspace ${slug} or thread ${threadSlug} is not valid.`, }); return; } if ((!message?.length || !VALID_CHAT_MODE.includes(mode)) && !reset) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty" : `${mode} is not a valid mode.`, }); return; } const user = userId ? await User.get({ id: Number(userId) }) : null; const result = await ApiChatHandler.chatSync({ workspace, message, mode, user, thread, attachments, reset, }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", threadName: thread?.name, userId: user?.id, }); response.status(200).json({ ...result }); } catch (e) { console.error(e.message, e); response.status(500).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); } } ); app.post( "/v1/workspace/:slug/thread/:threadSlug/stream-chat", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspace Threads'] #swagger.description = 'Stream chat with a workspace thread' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace', required: true, type: 'string' } #swagger.parameters['threadSlug'] = { in: 'path', description: 'Unique slug of thread', required: true, type: 'string' } #swagger.requestBody = { description: 'Send a prompt to the workspace thread and the type of conversation (query or chat).', required: true, content: { "application/json": { example: { message: "What is AnythingLLM?", mode: "query | chat", userId: 1, attachments: [ { name: "image.png", mime: "image/png", contentString: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." }, { name: "this is a document.pdf", mime: "application/anythingllm-document", contentString: "data:application/pdf;base64,iVBORw0KGgoAAAANSUhEUgAA..." } ], reset: false } } } } #swagger.responses[200] = { content: { "text/event-stream": { schema: { type: 'array', items: { type: 'string', }, example: [ { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "First chunk", sources: [], close: false, error: "null | text string of the failure mode." }, { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "chunk two", sources: [], close: false, error: "null | text string of the failure mode." }, { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "final chunk of LLM output!", sources: [{title: "anythingllm.txt", chunk: "This is a context chunk used in the answer of the prompt by the LLM. This will only return in the final chunk."}], close: true, error: "null | text string of the failure mode." } ] } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug, threadSlug } = request.params; const { message, mode = "query", userId, attachments = [], reset = false, } = reqBody(request); const workspace = await Workspace.get({ slug }); const thread = await WorkspaceThread.get({ slug: threadSlug, workspace_id: workspace.id, }); if (!workspace || !thread) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `Workspace ${slug} or thread ${threadSlug} is not valid.`, }); return; } if ((!message?.length || !VALID_CHAT_MODE.includes(mode)) && !reset) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty" : `${mode} is not a valid mode.`, }); return; } const user = userId ? await User.get({ id: Number(userId) }) : null; response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); await ApiChatHandler.streamChat({ response, workspace, message, mode, user, thread, attachments, reset, }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", threadName: thread?.name, userId: user?.id, }); response.end(); } catch (e) { console.error(e.message, e); writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); response.end(); } } ); } module.exports = { apiWorkspaceThreadEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/workspace/index.js
server/endpoints/api/workspace/index.js
const { v4: uuidv4 } = require("uuid"); const { Document } = require("../../../models/documents"); const { Telemetry } = require("../../../models/telemetry"); const { DocumentVectors } = require("../../../models/vectors"); const { Workspace } = require("../../../models/workspace"); const { WorkspaceChats } = require("../../../models/workspaceChats"); const { getVectorDbClass, getLLMProvider } = require("../../../utils/helpers"); const { multiUserMode, reqBody } = require("../../../utils/http"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); const { VALID_CHAT_MODE } = require("../../../utils/chats/stream"); const { EventLogs } = require("../../../models/eventLogs"); const { convertToChatHistory, writeResponseChunk, } = require("../../../utils/helpers/chat/responses"); const { ApiChatHandler } = require("../../../utils/chats/apiChatHandler"); const { getModelTag } = require("../../utils"); function apiWorkspaceEndpoints(app) { if (!app) return; app.post("/v1/workspace/new", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Create a new workspace' #swagger.requestBody = { description: 'JSON object containing workspace configuration.', required: true, content: { "application/json": { example: { name: "My New Workspace", similarityThreshold: 0.7, openAiTemp: 0.7, openAiHistory: 20, openAiPrompt: "Custom prompt for responses", queryRefusalResponse: "Custom refusal message", chatMode: "chat", topN: 4 } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { workspace: { "id": 79, "name": "Sample workspace", "slug": "sample-workspace", "createdAt": "2023-08-17 00:45:03", "openAiTemp": null, "lastUpdatedAt": "2023-08-17 00:45:03", "openAiHistory": 20, "openAiPrompt": null }, message: 'Workspace created' } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { name = null, ...additionalFields } = reqBody(request); const { workspace, message } = await Workspace.new( name, null, additionalFields ); if (!workspace) { response.status(400).json({ workspace: null, message }); return; } await Telemetry.sendTelemetry("workspace_created", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", LLMModel: getModelTag(), }); await EventLogs.logEvent("api_workspace_created", { workspaceName: workspace?.name || "Unknown Workspace", }); response.status(200).json({ workspace, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get("/v1/workspaces", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'List all current workspaces' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { workspaces: [ { "id": 79, "name": "Sample workspace", "slug": "sample-workspace", "createdAt": "2023-08-17 00:45:03", "openAiTemp": null, "lastUpdatedAt": "2023-08-17 00:45:03", "openAiHistory": 20, "openAiPrompt": null, "threads": [] } ], } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const workspaces = await Workspace._findMany({ where: {}, include: { threads: { select: { user_id: true, slug: true, name: true, }, }, }, }); response.status(200).json({ workspaces }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get("/v1/workspace/:slug", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Get a workspace by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { workspace: [ { "id": 79, "name": "My workspace", "slug": "my-workspace-123", "createdAt": "2023-08-17 00:45:03", "openAiTemp": null, "lastUpdatedAt": "2023-08-17 00:45:03", "openAiHistory": 20, "openAiPrompt": null, "documents": [], "threads": [] } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug } = request.params; const workspace = await Workspace._findMany({ where: { slug: String(slug), }, include: { documents: true, threads: { select: { user_id: true, slug: true, }, }, }, }); response.status(200).json({ workspace }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.delete( "/v1/workspace/:slug", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Deletes a workspace by its slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to delete', required: true, type: 'string' } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug = "" } = request.params; const VectorDb = getVectorDbClass(); const workspace = await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } const workspaceId = Number(workspace.id); await WorkspaceChats.delete({ workspaceId: workspaceId }); await DocumentVectors.deleteForWorkspace(workspaceId); await Document.delete({ workspaceId: workspaceId }); await Workspace.delete({ id: workspaceId }); await EventLogs.logEvent("api_workspace_deleted", { workspaceName: workspace?.name || "Unknown Workspace", }); try { await VectorDb["delete-namespace"]({ namespace: slug }); } catch (e) { console.error(e.message); } response.sendStatus(200).end(); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/v1/workspace/:slug/update", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Update workspace settings by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', required: true, type: 'string' } #swagger.requestBody = { description: 'JSON object containing new settings to update a workspace. All keys are optional and will not update unless provided', required: true, content: { "application/json": { example: { "name": 'Updated Workspace Name', "openAiTemp": 0.2, "openAiHistory": 20, "openAiPrompt": "Respond to all inquires and questions in binary - do not respond in any other format." } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { workspace: { "id": 79, "name": "My workspace", "slug": "my-workspace-123", "createdAt": "2023-08-17 00:45:03", "openAiTemp": null, "lastUpdatedAt": "2023-08-17 00:45:03", "openAiHistory": 20, "openAiPrompt": null, "documents": [] }, message: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug = null } = request.params; const data = reqBody(request); const currWorkspace = await Workspace.get({ slug }); if (!currWorkspace) { response.sendStatus(400).end(); return; } const { workspace, message } = await Workspace.update( currWorkspace.id, data ); response.status(200).json({ workspace, message }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/v1/workspace/:slug/chats", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Get a workspaces chats regardless of user by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', required: true, type: 'string' } #swagger.parameters['apiSessionId'] = { in: 'query', description: 'Optional apiSessionId to filter by', required: false, type: 'string' } #swagger.parameters['limit'] = { in: 'query', description: 'Optional number of chat messages to return (default: 100)', required: false, type: 'integer' } #swagger.parameters['orderBy'] = { in: 'query', description: 'Optional order of chat messages (asc or desc)', required: false, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { history: [ { "role": "user", "content": "What is AnythingLLM?", "sentAt": 1692851630 }, { "role": "assistant", "content": "AnythingLLM is a platform that allows you to convert notes, PDFs, and other source materials into a chatbot. It ensures privacy, cites its answers, and allows multiple people to interact with the same documents simultaneously. It is particularly useful for businesses to enhance the visibility and readability of various written communications such as SOPs, contracts, and sales calls. You can try it out with a free trial to see if it meets your business needs.", "sources": [{"source": "object about source document and snippets used"}] } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug } = request.params; const { apiSessionId = null, limit = 100, orderBy = "asc", } = request.query; const workspace = await Workspace.get({ slug }); if (!workspace) { response.sendStatus(400).end(); return; } const validLimit = Math.max(1, parseInt(limit)); const validOrderBy = ["asc", "desc"].includes(orderBy) ? orderBy : "asc"; const history = apiSessionId ? await WorkspaceChats.forWorkspaceByApiSessionId( workspace.id, apiSessionId, validLimit, { createdAt: validOrderBy } ) : await WorkspaceChats.forWorkspace(workspace.id, validLimit, { createdAt: validOrderBy, }); response.status(200).json({ history: convertToChatHistory(history) }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/v1/workspace/:slug/update-embeddings", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Add or remove documents from a workspace by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', required: true, type: 'string' } #swagger.requestBody = { description: 'JSON object of additions and removals of documents to add to update a workspace. The value should be the folder + filename with the exclusions of the top-level documents path.', required: true, content: { "application/json": { example: { adds: ["custom-documents/my-pdf.pdf-hash.json"], deletes: ["custom-documents/anythingllm.txt-hash.json"] } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { workspace: { "id": 79, "name": "My workspace", "slug": "my-workspace-123", "createdAt": "2023-08-17 00:45:03", "openAiTemp": null, "lastUpdatedAt": "2023-08-17 00:45:03", "openAiHistory": 20, "openAiPrompt": null, "documents": [] }, message: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug = null } = request.params; const { adds = [], deletes = [] } = reqBody(request); const currWorkspace = await Workspace.get({ slug }); if (!currWorkspace) { response.sendStatus(400).end(); return; } await Document.removeDocuments(currWorkspace, deletes); await Document.addDocuments(currWorkspace, adds); const updatedWorkspace = await Workspace.get({ id: Number(currWorkspace.id), }); response.status(200).json({ workspace: updatedWorkspace }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post( "/v1/workspace/:slug/update-pin", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Add or remove pin from a document in a workspace by its unique slug.' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to find', required: true, type: 'string' } #swagger.requestBody = { description: 'JSON object with the document path and pin status to update.', required: true, content: { "application/json": { example: { docPath: "custom-documents/my-pdf.pdf-hash.json", pinStatus: true } } } } #swagger.responses[200] = { description: 'OK', content: { "application/json": { schema: { type: 'object', example: { message: 'Pin status updated successfully' } } } } } #swagger.responses[404] = { description: 'Document not found' } #swagger.responses[500] = { description: 'Internal Server Error' } */ try { const { slug = null } = request.params; const { docPath, pinStatus = false } = reqBody(request); const workspace = await Workspace.get({ slug }); const document = await Document.get({ workspaceId: workspace.id, docpath: docPath, }); if (!document) return response.sendStatus(404).end(); await Document.update(document.id, { pinned: pinStatus }); return response .status(200) .json({ message: "Pin status updated successfully" }) .end(); } catch (error) { console.error("Error processing the pin status update:", error); return response.status(500).end(); } } ); app.post( "/v1/workspace/:slug/chat", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Execute a chat with a workspace' #swagger.requestBody = { description: 'Send a prompt to the workspace and the type of conversation (query or chat).<br/><b>Query:</b> Will not use LLM unless there are relevant sources from vectorDB & does not recall chat history.<br/><b>Chat:</b> Uses LLM general knowledge w/custom embeddings to produce output, uses rolling chat history.<br/><b>Attachments:</b> Can include images and documents.<br/><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Document attachments:</b> must have the mime type <code>application/anythingllm-document</code> - otherwise it will be passed to the LLM as an image and may fail to process. This uses the built-in document processor to first parse the document to text before injecting it into the context window.', required: true, content: { "application/json": { example: { message: "What is AnythingLLM?", mode: "query | chat", sessionId: "identifier-to-partition-chats-by-external-id", attachments: [ { name: "image.png", mime: "image/png", contentString: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." }, { name: "this is a document.pdf", mime: "application/anythingllm-document", contentString: "data:application/pdf;base64,iVBORw0KGgoAAAANSUhEUgAA..." } ], reset: false } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { id: 'chat-uuid', type: "abort | textResponse", textResponse: "Response to your query", sources: [{title: "anythingllm.txt", chunk: "This is a context chunk used in the answer of the prompt by the LLM,"}], close: true, error: "null | text string of the failure mode." } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug } = request.params; const { message, mode = "query", sessionId = null, attachments = [], reset = false, } = reqBody(request); const workspace = await Workspace.get({ slug: String(slug) }); if (!workspace) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `Workspace ${slug} is not a valid workspace.`, }); return; } if ((!message?.length || !VALID_CHAT_MODE.includes(mode)) && !reset) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty" : `${mode} is not a valid mode.`, }); return; } const result = await ApiChatHandler.chatSync({ workspace, message, mode, user: null, thread: null, sessionId: !!sessionId ? String(sessionId) : null, attachments, reset, }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: workspace.chatProvider ?? process.env.LLM_PROVIDER ?? "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", }); return response.status(200).json({ ...result }); } catch (e) { console.error(e.message, e); response.status(500).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); } } ); app.post( "/v1/workspace/:slug/stream-chat", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Execute a streamable chat with a workspace' #swagger.requestBody = { description: 'Send a prompt to the workspace and the type of conversation (query or chat).<br/><b>Query:</b> Will not use LLM unless there are relevant sources from vectorDB & does not recall chat history.<br/><b>Chat:</b> Uses LLM general knowledge w/custom embeddings to produce output, uses rolling chat history.<br/><b>Attachments:</b> Can include images and documents.<br/><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Document attachments:</b> must have the mime type <code>application/anythingllm-document</code> - otherwise it will be passed to the LLM as an image and may fail to process. This uses the built-in document processor to first parse the document to text before injecting it into the context window.', required: true, content: { "application/json": { example: { message: "What is AnythingLLM?", mode: "query | chat", sessionId: "identifier-to-partition-chats-by-external-id", attachments: [ { name: "image.png", mime: "image/png", contentString: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." }, { name: "this is a document.pdf", mime: "application/anythingllm-document", contentString: "data:application/pdf;base64,iVBORw0KGgoAAAANSUhEUgAA..." } ], reset: false } } } } #swagger.responses[200] = { content: { "text/event-stream": { schema: { type: 'array', items: { type: 'string', }, example: [ { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "First chunk", sources: [], close: false, error: "null | text string of the failure mode." }, { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "chunk two", sources: [], close: false, error: "null | text string of the failure mode." }, { id: 'uuid-123', type: "abort | textResponseChunk", textResponse: "final chunk of LLM output!", sources: [{title: "anythingllm.txt", chunk: "This is a context chunk used in the answer of the prompt by the LLM. This will only return in the final chunk."}], close: true, error: "null | text string of the failure mode." } ] } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const { slug } = request.params; const { message, mode = "query", sessionId = null, attachments = [], reset = false, } = reqBody(request); const workspace = await Workspace.get({ slug: String(slug) }); if (!workspace) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: `Workspace ${slug} is not a valid workspace.`, }); return; } if ((!message?.length || !VALID_CHAT_MODE.includes(mode)) && !reset) { response.status(400).json({ id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: !message?.length ? "Message is empty" : `${mode} is not a valid mode.`, }); return; } response.setHeader("Cache-Control", "no-cache"); response.setHeader("Content-Type", "text/event-stream"); response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Connection", "keep-alive"); response.flushHeaders(); await ApiChatHandler.streamChat({ response, workspace, message, mode, user: null, thread: null, sessionId: !!sessionId ? String(sessionId) : null, attachments, reset, }); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: workspace.chatProvider ?? process.env.LLM_PROVIDER ?? "openai", Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "lancedb", TTSSelection: process.env.TTS_PROVIDER || "native", }); await EventLogs.logEvent("api_sent_chat", { workspaceName: workspace?.name, chatModel: workspace?.chatModel || "System Default", }); response.end(); } catch (e) { console.error(e.message, e); writeResponseChunk(response, { id: uuidv4(), type: "abort", textResponse: null, sources: [], close: true, error: e.message, }); response.end(); } } ); app.post( "/v1/workspace/:slug/vector-search", [validApiKey], async (request, response) => { /* #swagger.tags = ['Workspaces'] #swagger.description = 'Perform a vector similarity search in a workspace' #swagger.parameters['slug'] = { in: 'path', description: 'Unique slug of workspace to search in', required: true, type: 'string' } #swagger.requestBody = { description: 'Query to perform vector search with and optional parameters', required: true, content: { "application/json": { example: { query: "What is the meaning of life?", topN: 4, scoreThreshold: 0.75 } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { results: [ { id: "5a6bee0a-306c-47fc-942b-8ab9bf3899c4", text: "Document chunk content...", metadata: { url: "file://document.txt", title: "document.txt", author: "no author specified", description: "no description found", docSource: "post:123456", chunkSource: "document.txt", published: "12/1/2024, 11:39:39 AM", wordCount: 8, tokenCount: 9 }, distance: 0.541887640953064, score: 0.45811235904693604 } ] } } } } } */ try { const { slug } = request.params; const { query, topN, scoreThreshold } = reqBody(request); const workspace = await Workspace.get({ slug: String(slug) }); if (!workspace) return response.status(400).json({ message: `Workspace ${slug} is not a valid workspace.`, }); if (!query?.length) return response.status(400).json({ message: "Query parameter cannot be empty.", }); const VectorDb = getVectorDbClass(); const hasVectorizedSpace = await VectorDb.hasNamespace(workspace.slug); const embeddingsCount = await VectorDb.namespaceCount(workspace.slug); if (!hasVectorizedSpace || embeddingsCount === 0) return response.status(200).json({ results: [], message: "No embeddings found for this workspace.", }); const parseSimilarityThreshold = () => { let input = parseFloat(scoreThreshold); if (isNaN(input) || input < 0 || input > 1) return workspace?.similarityThreshold ?? 0.25; return input; }; const parseTopN = () => { let input = Number(topN); if (isNaN(input) || input < 1) return workspace?.topN ?? 4; return input; }; const results = await VectorDb.performSimilaritySearch({ namespace: workspace.slug, input: String(query), LLMConnector: getLLMProvider(), similarityThreshold: parseSimilarityThreshold(), topN: parseTopN(), rerank: workspace?.vectorSearchMode === "rerank", }); response.status(200).json({ results: results.sources.map((source) => ({ id: source.id, text: source.text, metadata: { url: source.url, title: source.title, author: source.docAuthor, description: source.description, docSource: source.docSource, chunkSource: source.chunkSource, published: source.published, wordCount: source.wordCount, tokenCount: source.token_count_estimate, }, distance: source._distance, score: source.score, })), }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); } module.exports = { apiWorkspaceEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/admin/index.js
server/endpoints/api/admin/index.js
const { EventLogs } = require("../../../models/eventLogs"); const { Invite } = require("../../../models/invite"); const { SystemSettings } = require("../../../models/systemSettings"); const { User } = require("../../../models/user"); const { Workspace } = require("../../../models/workspace"); const { WorkspaceChats } = require("../../../models/workspaceChats"); const { WorkspaceUser } = require("../../../models/workspaceUsers"); const { canModifyAdmin } = require("../../../utils/helpers/admin"); const { multiUserMode, reqBody } = require("../../../utils/http"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); function apiAdminEndpoints(app) { if (!app) return; app.get("/v1/admin/is-multi-user-mode", [validApiKey], (_, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Check to see if the instance is in multi-user-mode first. Methods are disabled until multi user mode is enabled via the UI.' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "isMultiUser": true } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ const isMultiUser = multiUserMode(response); response.status(200).json({ isMultiUser }); }); app.get("/v1/admin/users", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Check to see if the instance is in multi-user-mode first. Methods are disabled until multi user mode is enabled via the UI.' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "users": [ { username: "sample-sam", role: 'default', } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const users = await User.where(); response.status(200).json({ users }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.post("/v1/admin/users/new", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Create a new user with username and password. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Key pair object that will define the new user to add to the system.', required: true, content: { "application/json": { example: { username: "sample-sam", password: 'hunter2', role: 'default | admin' } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { user: { id: 1, username: 'sample-sam', role: 'default', }, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const newUserParams = reqBody(request); const { user: newUser, error } = await User.create(newUserParams); response.status(newUser ? 200 : 400).json({ user: newUser, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.post("/v1/admin/users/:id", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.parameters['id'] = { in: 'path', description: 'id of the user in the database.', required: true, type: 'string' } #swagger.description = 'Update existing user settings. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Key pair object that will update the found user. All fields are optional and will not update unless specified.', required: true, content: { "application/json": { example: { username: "sample-sam", password: 'hunter2', role: 'default | admin', suspended: 0, } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const { id } = request.params; const updates = reqBody(request); const user = await User.get({ id: Number(id) }); const validAdminRoleModification = await canModifyAdmin(user, updates); if (!validAdminRoleModification.valid) { response .status(200) .json({ success: false, error: validAdminRoleModification.error }); return; } const { success, error } = await User.update(id, updates); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.delete( "/v1/admin/users/:id", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Delete existing user by id. Methods are disabled until multi user mode is enabled via the UI.' #swagger.parameters['id'] = { in: 'path', description: 'id of the user in the database.', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const { id } = request.params; const user = await User.get({ id: Number(id) }); await User.delete({ id: user.id }); await EventLogs.logEvent("api_user_deleted", { userName: user.username, }); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get("/v1/admin/invites", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'List all existing invitations to instance regardless of status. Methods are disabled until multi user mode is enabled via the UI.' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "invites": [ { id: 1, status: "pending", code: 'abc-123', claimedBy: null } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const invites = await Invite.whereWithUsers(); response.status(200).json({ invites }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.post("/v1/admin/invite/new", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Create a new invite code for someone to use to register with instance. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Request body for creation parameters of the invitation', required: false, content: { "application/json": { example: { workspaceIds: [1,2,45], } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { invite: { id: 1, status: "pending", code: 'abc-123', }, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const body = reqBody(request); const { invite, error } = await Invite.create({ workspaceIds: body?.workspaceIds ?? [], }); response.status(200).json({ invite, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } }); app.delete( "/v1/admin/invite/:id", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Deactivates (soft-delete) invite by id. Methods are disabled until multi user mode is enabled via the UI.' #swagger.parameters['id'] = { in: 'path', description: 'id of the invite in the database.', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const { id } = request.params; const { success, error } = await Invite.deactivate(id); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.get( "/v1/admin/workspaces/:workspaceId/users", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.parameters['workspaceId'] = { in: 'path', description: 'id of the workspace.', required: true, type: 'string' } #swagger.description = 'Retrieve a list of users with permissions to access the specified workspace.' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { users: [ {"userId": 1, "role": "admin"}, {"userId": 2, "role": "member"} ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const workspaceId = request.params.workspaceId; const users = await Workspace.workspaceUsers(workspaceId); response.status(200).json({ users }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/v1/admin/workspaces/:workspaceId/update-users", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.deprecated = true #swagger.parameters['workspaceId'] = { in: 'path', description: 'id of the workspace in the database.', required: true, type: 'string' } #swagger.description = 'Overwrite workspace permissions to only be accessible by the given user ids and admins. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Entire array of user ids who can access the workspace. All fields are optional and will not update unless specified.', required: true, content: { "application/json": { example: { userIds: [1,2,4,12], } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const { workspaceId } = request.params; const { userIds } = reqBody(request); const { success, error } = await Workspace.updateUsers( workspaceId, userIds ); response.status(200).json({ success, error }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/v1/admin/workspaces/:workspaceSlug/manage-users", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.parameters['workspaceSlug'] = { in: 'path', description: 'slug of the workspace in the database', required: true, type: 'string' } #swagger.description = 'Set workspace permissions to be accessible by the given user ids and admins. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Array of user ids who will be given access to the target workspace. <code>reset</code> will remove all existing users from the workspace and only add the new users - default <code>false</code>.', required: true, content: { "application/json": { example: { userIds: [1,2,4,12], reset: false } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, users: [ {"userId": 1, "username": "main-admin", "role": "admin"}, {"userId": 2, "username": "sample-sam", "role": "default"} ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const { workspaceSlug } = request.params; const { userIds: _uids, reset = false } = reqBody(request); const userIds = ( await User.where({ id: { in: _uids.map(Number) } }) ).map((user) => user.id); const workspace = await Workspace.get({ slug: String(workspaceSlug) }); const workspaceUsers = await Workspace.workspaceUsers(workspace.id); if (!workspace) { response.status(404).json({ success: false, error: `Workspace ${workspaceSlug} not found`, users: workspaceUsers, }); return; } if (userIds.length === 0) { response.status(404).json({ success: false, error: `No valid user IDs provided.`, users: workspaceUsers, }); return; } // Reset all users in the workspace and add the new users as the only users in the workspace if (reset) { const { success, error } = await Workspace.updateUsers( workspace.id, userIds ); return response.status(200).json({ success, error, users: await Workspace.workspaceUsers(workspace.id), }); } // Add new users to the workspace if they are not already in the workspace const existingUserIds = workspaceUsers.map((user) => user.userId); const usersToAdd = userIds.filter( (userId) => !existingUserIds.includes(userId) ); if (usersToAdd.length > 0) await WorkspaceUser.createManyUsers(usersToAdd, workspace.id); response.status(200).json({ success: true, error: null, users: await Workspace.workspaceUsers(workspace.id), }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/v1/admin/workspace-chats", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'All chats in the system ordered by most recent. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Page offset to show of workspace chats. All fields are optional and will not update unless specified.', required: false, content: { "application/json": { example: { offset: 2, } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const pgSize = 20; const { offset = 0 } = reqBody(request); const chats = await WorkspaceChats.whereWithData( {}, pgSize, offset * pgSize, { id: "desc" } ); const hasPages = (await WorkspaceChats.count()) > (offset + 1) * pgSize; response.status(200).json({ chats: chats, hasPages }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); app.post( "/v1/admin/preferences", [validApiKey], async (request, response) => { /* #swagger.tags = ['Admin'] #swagger.description = 'Update multi-user preferences for instance. Methods are disabled until multi user mode is enabled via the UI.' #swagger.requestBody = { description: 'Object with setting key and new value to set. All keys are optional and will not update unless specified.', required: true, content: { "application/json": { example: { support_email: "[email protected]", } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { success: true, error: null, } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[401] = { description: "Instance is not in Multi-User mode. Method denied", } */ try { if (!multiUserMode(response)) { response.sendStatus(401).end(); return; } const updates = reqBody(request); await SystemSettings.updateSettings(updates); response.status(200).json({ success: true, error: null }); } catch (e) { console.error(e); response.sendStatus(500).end(); } } ); } module.exports = { apiAdminEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false
Mintplex-Labs/anything-llm
https://github.com/Mintplex-Labs/anything-llm/blob/e287fab56089cf8fcea9ba579a3ecdeca0daa313/server/endpoints/api/embed/index.js
server/endpoints/api/embed/index.js
const { EmbedConfig } = require("../../../models/embedConfig"); const { EmbedChats } = require("../../../models/embedChats"); const { validApiKey } = require("../../../utils/middleware/validApiKey"); const { reqBody } = require("../../../utils/http"); const { Workspace } = require("../../../models/workspace"); function apiEmbedEndpoints(app) { if (!app) return; app.get("/v1/embed", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'List all active embeds' #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { embeds: [ { "id": 1, "uuid": "embed-uuid-1", "enabled": true, "chat_mode": "query", "createdAt": "2023-04-01T12:00:00Z", "workspace": { "id": 1, "name": "Workspace 1" }, "chat_count": 10 }, { "id": 2, "uuid": "embed-uuid-2", "enabled": false, "chat_mode": "chat", "createdAt": "2023-04-02T14:30:00Z", "workspace": { "id": 1, "name": "Workspace 1" }, "chat_count": 10 } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } */ try { const embeds = await EmbedConfig.whereWithWorkspace(); const filteredEmbeds = embeds.map((embed) => ({ id: embed.id, uuid: embed.uuid, enabled: embed.enabled, chat_mode: embed.chat_mode, createdAt: embed.createdAt, workspace: { id: embed.workspace.id, name: embed.workspace.name, }, chat_count: embed._count.embed_chats, })); response.status(200).json({ embeds: filteredEmbeds }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.get( "/v1/embed/:embedUuid/chats", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'Get all chats for a specific embed' #swagger.parameters['embedUuid'] = { in: 'path', description: 'UUID of the embed', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { chats: [ { "id": 1, "session_id": "session-uuid-1", "prompt": "Hello", "response": "Hi there!", "createdAt": "2023-04-01T12:00:00Z" }, { "id": 2, "session_id": "session-uuid-2", "prompt": "How are you?", "response": "I'm doing well, thank you!", "createdAt": "2023-04-02T14:30:00Z" } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[404] = { description: "Embed not found", } */ try { const { embedUuid } = request.params; const chats = await EmbedChats.where({ embed_config: { uuid: String(embedUuid) }, }); response.status(200).json({ chats }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.get( "/v1/embed/:embedUuid/chats/:sessionUuid", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'Get chats for a specific embed and session' #swagger.parameters['embedUuid'] = { in: 'path', description: 'UUID of the embed', required: true, type: 'string' } #swagger.parameters['sessionUuid'] = { in: 'path', description: 'UUID of the session', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { chats: [ { "id": 1, "prompt": "Hello", "response": "Hi there!", "createdAt": "2023-04-01T12:00:00Z" } ] } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[404] = { description: "Embed or session not found", } */ try { const { embedUuid, sessionUuid } = request.params; const chats = await EmbedChats.where({ embed_config: { uuid: String(embedUuid) }, session_id: String(sessionUuid), }); response.status(200).json({ chats }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); app.post("/v1/embed/new", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'Create a new embed configuration' #swagger.requestBody = { description: 'JSON object containing embed configuration details', required: true, content: { "application/json": { schema: { type: 'object', example: { "workspace_slug": "workspace-slug-1", "chat_mode": "chat", "allowlist_domains": ["example.com"], "allow_model_override": false, "allow_temperature_override": false, "allow_prompt_override": false, "max_chats_per_day": 100, "max_chats_per_session": 10 } } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "embed": { "id": 1, "uuid": "embed-uuid-1", "enabled": true, "chat_mode": "chat", "allowlist_domains": ["example.com"], "allow_model_override": false, "allow_temperature_override": false, "allow_prompt_override": false, "max_chats_per_day": 100, "max_chats_per_session": 10, "createdAt": "2023-04-01T12:00:00Z", "workspace_slug": "workspace-slug-1" }, "error": null } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[404] = { description: "Workspace not found" } */ try { const data = reqBody(request); if (!data.workspace_slug) return response .status(400) .json({ error: "Workspace slug is required" }); const workspace = await Workspace.get({ slug: String(data.workspace_slug), }); if (!workspace) return response.status(404).json({ error: "Workspace not found" }); const { embed, message: error } = await EmbedConfig.new({ ...data, workspace_id: workspace.id, }); response.status(200).json({ embed, error }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.post("/v1/embed/:embedUuid", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'Update an existing embed configuration' #swagger.parameters['embedUuid'] = { in: 'path', description: 'UUID of the embed to update', required: true, type: 'string' } #swagger.requestBody = { description: 'JSON object containing embed configuration updates', required: true, content: { "application/json": { schema: { type: 'object', example: { "enabled": true, "chat_mode": "chat", "allowlist_domains": ["example.com"], "allow_model_override": false, "allow_temperature_override": false, "allow_prompt_override": false, "max_chats_per_day": 100, "max_chats_per_session": 10 } } } } } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "success": true, "error": null } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[404] = { description: "Embed not found" } */ try { const { embedUuid } = request.params; const data = reqBody(request); const embed = await EmbedConfig.get({ uuid: String(embedUuid) }); if (!embed) { return response.status(404).json({ error: "Embed not found" }); } const { success, error } = await EmbedConfig.update(embed.id, data); response.status(200).json({ success, error }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } }); app.delete( "/v1/embed/:embedUuid", [validApiKey], async (request, response) => { /* #swagger.tags = ['Embed'] #swagger.description = 'Delete an existing embed configuration' #swagger.parameters['embedUuid'] = { in: 'path', description: 'UUID of the embed to delete', required: true, type: 'string' } #swagger.responses[200] = { content: { "application/json": { schema: { type: 'object', example: { "success": true, "error": null } } } } } #swagger.responses[403] = { schema: { "$ref": "#/definitions/InvalidAPIKey" } } #swagger.responses[404] = { description: "Embed not found" } */ try { const { embedUuid } = request.params; const embed = await EmbedConfig.get({ uuid: String(embedUuid) }); if (!embed) return response.status(404).json({ error: "Embed not found" }); const success = await EmbedConfig.delete({ id: embed.id }); response .status(200) .json({ success, error: success ? null : "Failed to delete embed" }); } catch (e) { console.error(e.message, e); response.sendStatus(500).end(); } } ); } module.exports = { apiEmbedEndpoints };
javascript
MIT
e287fab56089cf8fcea9ba579a3ecdeca0daa313
2026-01-04T14:57:11.963777Z
false