2023-07-11 15:55:21 -04:00
// Chinese phrases
export default {
2023-07-11 16:02:31 -04:00
com_ui_examples : '例子' ,
2023-08-31 07:21:27 +08:00
com_ui_new_chat : '建立新对话' ,
2023-07-24 08:33:08 -04:00
com_ui_example_quantum_computing : '如何给7岁小孩讲解量子计算? ' ,
com_ui_example_10_year_old_b_day : '如何举办生日宴才能耳目一新?' ,
com_ui_example_http_in_js : '如何在Python中实现HTTP请求? ' ,
2023-08-31 07:21:27 +08:00
com_ui_capabilities : '功能' ,
2023-07-24 08:33:08 -04:00
com_ui_capability_remember : '历史对话记录' ,
com_ui_capability_correction : '实时提供反馈' ,
com_ui_capability_decline_requests : '阻止非法请求' ,
2023-08-31 07:21:27 +08:00
com_ui_limitations : '局限性' ,
2023-07-24 08:33:08 -04:00
com_ui_limitation_incorrect_info : '可能会不时出现错误信息' ,
com_ui_limitation_harmful_biased : '可能会提供有害指示或者偏见' ,
com_ui_limitation_limited_2021 : '训练基于2021年以前信息' ,
2023-07-11 16:02:31 -04:00
com_ui_input : '输入' ,
com_ui_close : '关闭' ,
2023-10-07 02:45:10 +10:00
com_ui_clear : '清除' ,
2023-07-11 16:02:31 -04:00
com_ui_model : '模型' ,
2023-10-07 02:45:10 +10:00
com_ui_cancel : '取消' ,
2023-07-11 16:02:31 -04:00
com_ui_select_model : '模型选择' ,
2023-08-28 00:55:34 +08:00
com_ui_use_prompt : '使用提示词' ,
2023-07-11 16:02:31 -04:00
com_ui_prev : '上一页' ,
com_ui_next : '下一页' ,
com_ui_prompt_templates : '对话模板' ,
com_ui_hide_prompt_templates : '隐藏对话模板' ,
com_ui_showing : '显示' ,
com_ui_of : '/' ,
2023-07-24 08:33:08 -04:00
com_ui_entries : '项' ,
2023-10-07 02:45:10 +10:00
com_ui_pay_per_call : '所有人工智能对话都集中在一处。按通话付费,而不是按月付费' ,
com_ui_delete : '删除' ,
com_ui_delete_conversation : '删除对话?' ,
com_ui_delete_conversation_confirm : '这将删除' ,
com_ui_revoke : '撤销' ,
com_ui_submit : '提交' ,
com_ui_revoke_info : '撤销所有用户提供的凭据。' ,
2023-07-24 08:33:08 -04:00
com_auth_error_login : '无法登录,请确认提供的账户密码正确,并重新尝试。' ,
2023-07-11 16:02:31 -04:00
com_auth_no_account : '新用户注册' ,
com_auth_sign_up : '注册' ,
com_auth_sign_in : '登录' ,
com_auth_google_login : '谷歌登录' ,
2023-08-25 02:10:48 +02:00
com_auth_facebook_login : 'Facebook登录' ,
2023-07-22 15:09:45 -04:00
com_auth_github_login : 'Github登录' ,
com_auth_discord_login : 'Discord登录' ,
2023-07-11 16:02:31 -04:00
com_auth_email : '电子邮箱' ,
2023-07-24 08:33:08 -04:00
com_auth_email_required : '邮箱为必填项' ,
com_auth_email_min_length : '邮箱地址至少6个字符' ,
com_auth_email_max_length : '邮箱地址最多120个字符' ,
com_auth_email_pattern : '请输入正确的电子邮箱格式' ,
2023-07-11 16:02:31 -04:00
com_auth_email_address : '电子邮箱地址' ,
com_auth_password : '密码' ,
2023-07-24 08:33:08 -04:00
com_auth_password_required : '密码为必填项' ,
com_auth_password_min_length : '密码至少8个字符' ,
com_auth_password_max_length : '密码最多128个字符' ,
2023-07-11 16:02:31 -04:00
com_auth_password_forgot : '忘记密码?' ,
com_auth_password_confirm : '确认密码' ,
com_auth_password_not_match : '密码不一致' ,
com_auth_continue : '继续' ,
com_auth_create_account : '创建账号' ,
2023-07-24 08:33:08 -04:00
com_auth_error_create : '注册账户过程中出现错误,请重试。' ,
2023-07-31 19:37:46 -07:00
com_auth_reset_password_link_sent : '重置密码链接已发送至邮箱' ,
com_auth_reset_password_email_sent : '重置密码邮件已发送至邮箱' ,
2023-07-11 16:02:31 -04:00
com_auth_full_name : '姓名' ,
com_auth_name_required : '姓名为必填项' ,
2023-07-24 08:33:08 -04:00
com_auth_name_min_length : '姓名至少3个字符' ,
com_auth_name_max_length : '姓名最多80个字符' ,
2023-08-28 00:55:34 +08:00
com_auth_username : '用户名(可选)' ,
2023-07-24 08:33:08 -04:00
com_auth_username_required : '用户名为必填项' ,
com_auth_username_min_length : '用户名至少3个字符' ,
com_auth_username_max_length : '用户名最多20个字符' ,
2023-07-11 16:02:31 -04:00
com_auth_already_have_account : '已有账号' ,
com_auth_login : '登录' ,
com_auth_reset_password : '重置密码' ,
com_auth_click : '点击' ,
com_auth_here : '这里' ,
com_auth_to_reset_your_password : '重置密码.' ,
2023-07-24 08:33:08 -04:00
com_auth_error_reset_password : '重置密码出现错误,未找到对应的邮箱地址,请重新输入。' ,
2023-07-11 16:02:31 -04:00
com_auth_reset_password_success : '密码重置成功' ,
com_auth_login_with_new_password : '现在你可以使用你的新密码登录.' ,
2023-07-24 08:33:08 -04:00
com_auth_error_invalid_reset_token : '重置密码的密钥已失效。' ,
2023-07-11 16:02:31 -04:00
com_auth_click_here : '点击这里' ,
com_auth_to_try_again : '再试一次.' ,
com_auth_submit_registration : '注册提交' ,
com_auth_welcome_back : '欢迎' ,
refactor: Encrypt & Expire User Provided Keys, feat: Rate Limiting (#874)
* docs: make_your_own.md formatting fix for mkdocs
* feat: add express-mongo-sanitize
feat: add login/registration rate limiting
* chore: remove unnecessary console log
* wip: remove token handling from localStorage to encrypted DB solution
* refactor: minor change to UserService
* fix mongo query and add keys route to server
* fix backend controllers and simplify schema/crud
* refactor: rename token to key to separate from access/refresh tokens, setTokenDialog -> setKeyDialog
* refactor(schemas): TEndpointOption token -> key
* refactor(api): use new encrypted key retrieval system
* fix(SetKeyDialog): fix key prop error
* fix(abortMiddleware): pass random UUID if messageId is not generated yet for proper error display on frontend
* fix(getUserKey): wrong prop passed in arg, adds error handling
* fix: prevent message without conversationId from saving to DB, prevents branching on the frontend to a new top-level branch
* refactor: change wording of multiple display messages
* refactor(checkExpiry -> checkUserKeyExpiry): move to UserService file
* fix: type imports from common
* refactor(SubmitButton): convert to TS
* refactor(key.ts): change localStorage map key name
* refactor: add new custom tailwind classes to better match openAI colors
* chore: remove unnecessary warning and catch ScreenShot error
* refactor: move userKey frontend logic to hooks and remove use of localStorage and instead query the DB
* refactor: invalidate correct query key, memoize userKey hook, conditionally render SetKeyDialog to avoid unnecessary calls, refactor SubmitButton props and useEffect for showing 'provide key first'
* fix(SetKeyDialog): use enum-like object for expiry values
feat(Dropdown): add optionsClassName to dynamically change dropdown options container classes
* fix: handle edge case where user had provided a key but the server changes to env variable for keys
* refactor(OpenAI/titleConvo): move titling to client to retain authorized credentials in message lifecycle for titling
* fix(azure): handle user_provided keys correctly for azure
* feat: send user Id to OpenAI to differentiate users in completion requests
* refactor(OpenAI/titleConvo): adding tokens helps minimize LLM from using the language in title response
* feat: add delete endpoint for keys
* chore: remove throttling of title
* feat: add 'Data controls' to Settings, add 'Revoke' keys feature in Key Dialog and Data controls
* refactor: reorganize PluginsClient files in langchain format
* feat: use langchain for titling convos
* chore: cleanup titling convo, with fallback to original method, escape braces, use only snippet for language detection
* refactor: move helper functions to appropriate langchain folders for reusability
* fix: userProvidesKey handling for gptPlugins
* fix: frontend handling of plugins key
* chore: cleanup logging and ts-ignore SSE
* fix: forwardRef misuse in DangerButton
* fix(GoogleConfig/FileUpload): localize errors and simplify validation with zod
* fix: cleanup google logging and fix user provided key handling
* chore: remove titling from google
* chore: removing logging from browser endpoint
* wip: fix menu flicker
* feat: useLocalStorage hook
* feat: add Tooltip for UI
* refactor(EndpointMenu): utilize Tooltip and useLocalStorage, remove old 'New Chat' slide-over
* fix(e2e): use testId for endpoint menu trigger
* chore: final touches to EndpointMenu before future refactor to declutter component
* refactor(localization): change select endpoint to open menu and add translations
* chore: add final prop to error message response
* ci: minor edits to facilitate testing
* ci: new e2e test which tests for new key setting/revoking features
2023-09-06 10:46:27 -04:00
com_endpoint_open_menu : '打开菜单' ,
2023-07-24 08:33:08 -04:00
com_endpoint_bing_enable_sydney : '启用 Sydney' ,
com_endpoint_bing_to_enable_sydney : '启用 Sydney' ,
com_endpoint_bing_jailbreak : '破解' ,
com_endpoint_bing_context_placeholder :
2023-08-28 00:55:34 +08:00
'必应可以使用多达7000个词元作为“上下文( context) ”, 参照这些内容进行对话。其具体限制并不清楚, 但可能会在超过7000个词元时出现错误' ,
2023-07-24 08:33:08 -04:00
com_endpoint_bing_system_message_placeholder :
2023-08-28 00:55:34 +08:00
'警告: 滥用此功能可能导致你被禁止使用必应! 点击“系统消息”查看完整的使用指南, 如果你忽略了默认消息, 那么将会使用被视为安全的“Sydney”预设。' ,
2023-07-24 08:33:08 -04:00
com_endpoint_system_message : '系统消息' ,
com_endpoint_default_blank : '初始值: 空' ,
com_endpoint_default_false : '初始值: false' ,
com_endpoint_default_creative : '初始值: creative' ,
com_endpoint_default_empty : '初始值: empty' ,
com_endpoint_default_with_num : '初始值: {0}' ,
com_endpoint_context : '上下文' ,
com_endpoint_tone_style : '语气' ,
com_endpoint_token_count : '词元数' ,
com_endpoint_output : '输出' ,
com_endpoint_google_temp :
'值越高表示输出越随机, 值越低表示输出越确定。建议不要同时改变此值和Top P。' ,
com_endpoint_google_topp :
'Top-p changes how the model selects tokens for output. Tokens are selected from most K (see topK parameter) probable to least until the sum of their probabilities equals the top-p value.' ,
com_endpoint_google_topk :
'Top-k changes how the model selects tokens for output. A top-k of 1 means the selected token is the most probable among all tokens in the model\'s vocabulary (also called greedy decoding), while a top-k of 3 means that the next token is selected from among the 3 most probable tokens (using temperature).' ,
com_endpoint_google_maxoutputtokens :
2023-08-28 00:55:34 +08:00
' 响应生成中可以使用的最大令牌数。指定较低的值会得到更短的响应,而指定较高的值则会得到更长的响应。' ,
2023-07-24 08:33:08 -04:00
com_endpoint_google_custom_name_placeholder : '为PaLM2设置一个名称' ,
com_endpoint_google_prompt_prefix_placeholder : '自定义指令和上下文,默认为空。' ,
com_endpoint_custom_name : '自定义名称' ,
com_endpoint_prompt_prefix : '对话前缀' ,
com_endpoint_temperature : '温度' ,
com_endpoint_default : '初始值' ,
com_endpoint_top_p : 'Top P' ,
com_endpoint_top_k : 'Top K' ,
com_endpoint_max_output_tokens : '最大输出词元数' ,
com_endpoint_openai_temp :
'值越高表示输出越随机, 值越低表示输出越确定。建议不要同时改变此值和Top P。' ,
com_endpoint_openai_max : '最大生成词元数。输入词元长度由模型的上下文长度决定。' ,
com_endpoint_openai_topp :
'相较于温度的另一个取样方法, 称为核采样, 模型选取输出词元中大于P值( 概率密度在整个概率分布中的比例) 的结果。比如 top_p=0.1 表示只有概率占比为前10%的词元才会被考虑作为输出。建议不要同时改变此值和温度。' ,
com_endpoint_openai_freq :
'值介于-2.0到2.0之间。正值表示根据已有词元的频率惩罚重复词元结果, 从而减少模型输出重复词。' ,
com_endpoint_openai_pres :
'值介于-2.0到2.0之间。正值表示根据出现词元惩罚重复词元结果, 从而增加模型提出新主题的可能性。' ,
com_endpoint_openai_custom_name_placeholder : '为ChatGPT设置一个名称' ,
com_endpoint_openai_prompt_prefix_placeholder : '可以在系统消息中设置自定义指令,默认为空' ,
com_endpoint_frequency_penalty : '频度惩罚' ,
com_endpoint_presence_penalty : '出现惩罚' ,
com_endpoint_plug_use_functions : '使用函数' ,
com_endpoint_plug_skip_completion : '跳过补全' ,
com_endpoint_disabled_with_tools : '系统禁用' ,
com_endpoint_disabled_with_tools_placeholder : '系统禁用' ,
com_endpoint_plug_set_custom_instructions_for_gpt_placeholder :
'可以在系统消息中设置自定义指令,默认为空' ,
com_endpoint_set_custom_name : '设置一个自定义名,以方便寻找预设' ,
com_endpoint_preset_name : '预设名' ,
2023-10-07 02:45:10 +10:00
com_endpoint_presets_clear_warning : '确定要清除所有预设吗?这是不可逆转的。' ,
com_endpoint_config_key : '设置API Key' ,
com_endpoint_config_key_for : '设置API Key: ' ,
com_endpoint_config_key_encryption : '您的密钥将被加密并删除于:' ,
com_endpoint_config_key_import_json_key : '导入Service Account JSON Key' ,
com_endpoint_config_key_google_need_to : '你需要开启:' ,
com_endpoint_config_key_google_vertex_ai : 'Vertex AI API' ,
com_endpoint_config_key_google_vertex_api : '在Google云上(Google Cloud),然后' ,
com_endpoint_config_key_google_service_account : '创建Service Account' ,
com_endpoint_config_key_google_vertex_api_role : '确保单击“创建并继续”以至少授予“Vertex AI 用户”角色。 最后,创建一个要在此处导入的 JSON 密钥。' ,
2023-07-24 08:33:08 -04:00
com_endpoint : '端口' ,
com_endpoint_hide : '隐藏' ,
com_endpoint_show : '显示' ,
com_endpoint_examples : ' 例子' ,
com_endpoint_completion : '补全' ,
com_endpoint_agent : '代理' ,
com_endpoint_show_what_settings : '显示{0}的设置' ,
com_endpoint_save : '保存' ,
com_endpoint_export : '导出' ,
2023-10-07 02:45:10 +10:00
com_endpoint_no_presets : '暂无预设' ,
2023-07-24 08:33:08 -04:00
com_endpoint_save_as_preset : '保存为预设' ,
com_endpoint_not_implemented : '未实现功能' ,
com_endpoint_view_options : '查看选项' ,
com_endpoint_my_preset : '我的预设' ,
com_endpoint_agent_model : '代理模型 (推荐: GPT-3.5)' ,
com_endpoint_completion_model : '补全模型 (推荐: GPT-4)' ,
com_endpoint_func_hover : '将插件当做OpenAI函数使用' ,
com_endpoint_skip_hover : '跳过补全步骤, 用于检查最终答案和生成步骤' ,
2023-10-07 02:45:10 +10:00
com_endpoint_import : '导入' ,
com_endpoint_preset : '预设' ,
com_endpoint_presets : '预设' ,
2023-07-24 08:33:08 -04:00
com_nav_export_filename : '文件名' ,
com_nav_export_filename_placeholder : '设置文件名' ,
com_nav_export_type : '类型' ,
com_nav_export_include_endpoint_options : '包含配置信息' ,
com_nav_enabled : '打开' ,
com_nav_not_supported : '未支持' ,
com_nav_export_all_message_branches : '导出所有对话' ,
com_nav_export_recursive_or_sequential : '递归或顺序?' ,
com_nav_export_recursive : '递归' ,
com_nav_export_conversation : '导出对话' ,
com_nav_theme : '主题' ,
2023-08-31 07:21:27 +08:00
com_nav_theme_system : '追随系统设置' ,
com_nav_theme_dark : '暗色主题' ,
com_nav_theme_light : '亮色主题' ,
2023-07-24 08:33:08 -04:00
com_nav_clear : '清空' ,
com_nav_clear_all_chats : '清空所有对话' ,
com_nav_confirm_clear : '确认清空' ,
com_nav_close_sidebar : '关闭侧边栏' ,
com_nav_open_sidebar : '打开侧边栏' ,
2023-08-31 07:21:27 +08:00
com_nav_log_out : '注销' ,
2023-07-24 08:33:08 -04:00
com_nav_user : '默认用户' ,
com_nav_clear_conversation : '清空对话' ,
com_nav_clear_conversation_confirm_message : '请确认是否清空所有对话?此操作无法撤回。' ,
com_nav_help_faq : '帮助' ,
com_nav_settings : '设置' ,
com_nav_search_placeholder : '文本搜索' ,
com_nav_setting_general : '通用' ,
2023-10-07 02:45:10 +10:00
com_nav_setting_data : '数据管理' ,
feat: ChatGPT Plugins/OpenAPI specs for Plugins Endpoint (#620)
* wip: proof of concept for openapi chain
* chore(api): update langchain dependency to version 0.0.105
* feat(Plugins): use ChatGPT Plugins/OpenAPI specs (first pass)
* chore(manifest.json): update pluginKey for "Browser" tool to "web-browser"
chore(handleTools.js): update customConstructor key for "web-browser" tool
* fix(handleSubmit.js): set unfinished property to false for all endpoints
* fix(handlers.js): remove unnecessary capitalizeWords function and use action.tool directly
refactor(endpoints.js): rename availableTools to tools and transform it into a map
* feat(endpoints): add plugins selector to endpoints file
refactor(CodeBlock.tsx): refactor to typescript
refactor(Plugin.tsx): use recoil Map for plugin name and refactor to typescript
chore(Message.jsx): linting
chore(PluginsOptions/index.jsx): remove comment/linting
chore(svg): export Clipboard and CheckMark components from SVG index and refactor to typescript
* fix(OpenAPIPlugin.js): rename readYamlFile function to readSpecFile
fix(OpenAPIPlugin.js): handle JSON files in readSpecFile function
fix(OpenAPIPlugin.js): handle JSON URLs in getSpec function
fix(OpenAPIPlugin.js): handle JSON variables in createOpenAPIPlugin function
fix(OpenAPIPlugin.js): add description for variables in createOpenAPIPlugin function
fix(OpenAPIPlugin.js): add optional flag for is_user_authenticated and has_user_authentication in ManifestDefinition
fix(loadSpecs.js): add optional flag for is_user_authenticated and has_user_authentication in ManifestDefinition
fix(Plugin.tsx): remove unnecessary callback parameter in getPluginName function
fix(getDefaultConversation.js): fix browser console error: handle null value for lastConversationSetup in getDefaultConversation function
* feat(api): add new tools
Add Ai PDF tool for super-fast, interactive chats with PDFs of any size, complete with page references for fact checking.
Add VoxScript tool for searching through YouTube transcripts, financial data sources, Google Search results, and more.
Add WebPilot tool for browsing and QA of webpages, PDFs, and data. Generate articles from one or more URLs.
feat(api): update OpenAPIPlugin.js
- Add support for bearer token authorization in the OpenAPIPlugin.
- Add support for custom headers in the OpenAPIPlugin.
fix(api): fix loadTools.js
- Pass the user parameter to the loadSpecs function.
* feat(PluginsClient.js): import findMessageContent function from utils
feat(PluginsClient.js): add message parameter to options object in initializeCustomAgent function
feat(PluginsClient.js): add content to errorMessage if message content is found
feat(PluginsClient.js): break out of loop if message content is found
feat(PluginsClient.js): add delay option with value of 8 to generateTextStream function
feat(PluginsClient.js): add support for process.env.PORT environment variable in app.listen function
feat(askyourpdf.json): add askyourpdf plugin configuration
feat(metar.json): add metar plugin configuration
feat(askyourpdf.yaml): add askyourpdf plugin OpenAPI specification
feat(OpenAPIPlugin.js): add message parameter to createOpenAPIPlugin function
feat(OpenAPIPlugin.js): add description_for_model to chain run message
feat(addOpenAPISpecs.js): remove verbose option from loadSpecs function call
fix(loadSpecs.js): add 'message' parameter to the loadSpecs function
feat(findMessageContent.js): add utility function to find message content in JSON objects
* fix(PluginStoreDialog.tsx): update z-index value for the dialog container
The z-index value for the dialog container was updated to "102" to ensure it appears above other elements on the page.
* chore(web_pilot.json): add "params" field with "user_has_request" parameter set to true
* chore(eslintrc.js): update eslint rules
fix(Login.tsx): add missing semicolon after import statement
* fix(package-lock.json): update langchain dependency to version ^0.0.105
* fix(OpenAPIPlugin.js): change header key from 'id' to 'librechat_user_id' for consistency and clarity
feat(plugins): add documentation for using official ChatGPT Plugins with OpenAPI specs
This commit adds a new file `chatgpt_plugins_openapi.md` to the `docs/features/plugins` directory. The file provides detailed information on how to use official ChatGPT Plugins with OpenAPI specifications. It explains the components of a plugin, including the Plugin Manifest file and the OpenAPI spec. It also covers the process of adding a plugin, editing manifest files, and customizing OpenAPI spec files. Additionally, the commit includes disclaimers about the limitations and compatibility of plugins with LibreChat. The documentation also clarifies that the use of ChatGPT Plugins with LibreChat does not violate OpenAI's Terms of Service.
The purpose of this commit is to provide comprehensive documentation for developers who want to integrate ChatGPT Plugins into their projects using OpenAPI specs. It aims to guide them through the process of adding and configuring plugins, as well as addressing potential issues and
chore(introduction.md): update link to ChatGPT Plugins documentation
docs(introduction.md): clarify the purpose of the plugins endpoint and its capabilities
* fix(OpenAPIPlugin.js): update SUFFIX variable to provide a clearer description
docs(chatgpt_plugins_openapi.md): update information about adding plugins via url on the frontend
* feat(PluginsClient.js): sendIntermediateMessage on successful Agent load
fix(PluginsClient.js, server/index.js, gptPlugins.js): linting fixes
docs(chatgpt_plugins_openapi.md): update links and add additional information
* Update chatgpt_plugins_openapi.md
* chore: rebuild package-lock file
* chore: format/lint all files with new rules
* chore: format all files
* chore(README.md): update AI model selection list
The AI model selection list in the README.md file has been updated to reflect the current options available. The "Anthropic" model has been added as an alternative name for the "Claude" model.
* fix(Plugin.tsx): type issue
* feat(tools): add new tool WebPilot
feat(tools): remove tool Weather Report
feat(tools): add new tool Prompt Perfect
feat(tools): add new tool Scholarly Graph Link
* feat(OpenAPIPlugin.js): add getSpec and readSpecFile functions
feat(OpenAPIPlugin.spec.js): add tests for readSpecFile, getSpec, and createOpenAPIPlugin functions
* chore(agent-demo-1.js): remove unused code and dependencies
chore(agent-demo-2.js): remove unused code and dependencies
chore(demo.js): remove unused code and dependencies
* feat(addOpenAPISpecs): add function to transform OpenAPI specs into desired format
feat(addOpenAPISpecs.spec): add tests for transformSpec function
fix(loadSpecs): remove debugging code
* feat(loadSpecs.spec.js): add unit tests for ManifestDefinition, validateJson, and loadSpecs functions
* fix: package file resolution bug
* chore: move scholarly_graph_link manifest to 'has-issues'
* refactor(client/hooks): convert to TS and export from index
* Update introduction.md
* Update chatgpt_plugins_openapi.md
2023-07-16 12:19:47 -04:00
} ;