4.8.18 test (#3543)

* perf: login check

* doc

* perf: llm model config

* perf: team clb config
This commit is contained in:
Archer
2025-01-07 14:21:05 +08:00
committed by GitHub
parent 07cc849877
commit f556fbf0d5
49 changed files with 1644 additions and 1535 deletions

View File

@@ -18,7 +18,6 @@ const MyIconButton = ({
}: Props) => {
return (
<Flex
mr={1}
p={1}
color={'myGray.500'}
rounded={'sm'}

View File

@@ -1,15 +1,15 @@
import React from 'react';
import React, { forwardRef } from 'react';
import { Flex, Box, BoxProps } from '@chakra-ui/react';
import MyIcon from '../Icon';
type Props = Omit<BoxProps, 'onChange'> & {
type Props<T = string> = Omit<BoxProps, 'onChange'> & {
list: {
icon?: string;
label: string | React.ReactNode;
value: string;
value: T;
}[];
value: string;
onChange: (e: string) => void;
value: T;
onChange: (e: T) => void;
};
const FillRowTabs = ({ list, value, onChange, py = '7px', px = '12px', ...props }: Props) => {
@@ -61,4 +61,6 @@ const FillRowTabs = ({ list, value, onChange, py = '7px', px = '12px', ...props
);
};
export default FillRowTabs;
export default forwardRef(FillRowTabs) as <T>(
props: Props<T> & { ref?: React.Ref<HTMLSelectElement> }
) => JSX.Element;

View File

@@ -1,7 +1,14 @@
{
"active_model": "Available models",
"add_default_model": "Add a preset model",
"api_key": "API key",
"bills_and_invoices": "Bills",
"channel": "Channel",
"confirm_logout": "Confirm to log out?",
"create_channel": "Add new channel",
"create_model": "Add new model",
"custom_model": "custom model",
"default_model": "Default model",
"logout": "Sign out",
"model_provider": "Model Provider",
"notifications": "Notify",

View File

@@ -1187,6 +1187,7 @@
"tag_list": "Tag List",
"team_tag": "Team Tag",
"textarea_variable_picker_tip": "Enter \"/\" to select a variable",
"unauth_token": "The certificate has expired, please log in again",
"unit.character": "Character",
"unit.minute": "Minute",
"unit.seconds": "Second",

View File

@@ -49,7 +49,7 @@
"execution_error": "Execution Error",
"extraction_requirements_description": "Extraction Requirements Description",
"extraction_requirements_description_detail": "Provide AI with some background knowledge or requirements to guide it in completing the task better.\\nThis input box can use global variables.",
"extraction_requirements_placeholder": "For example: \\n1. The current time is: {{cTime}}. You are a lab reservation assistant, and your task is to help users reserve a lab by extracting the corresponding reservation information from the text.\\n2. You are a Google search assistant, and you need to extract suitable search terms from the text.",
"extraction_requirements_placeholder": "For example: 1. The current time is: {{cTime}}. \nYou are a laboratory reservation assistant. Your task is to help users make laboratory reservations and obtain the corresponding reservation information from the text.\n\n2. You are the Google Search Assistant and need to extract appropriate search terms from text.",
"feedback_text": "Feedback Text",
"field_description": "Field Description",
"field_description_placeholder": "Describe the function of this input field. If it is a tool call parameter, this description will affect the quality of the model generation.",

View File

@@ -1,7 +1,14 @@
{
"active_model": "可用模型",
"add_default_model": "添加预设模型",
"api_key": "API 密钥",
"bills_and_invoices": "账单与发票",
"channel": "渠道",
"confirm_logout": "确认退出登录?",
"create_channel": "新增渠道",
"create_model": "新增模型",
"custom_model": "自定义模型",
"default_model": "预设模型",
"logout": "登出",
"model_provider": "模型提供商",
"notifications": "通知",

View File

@@ -1190,6 +1190,7 @@
"tag_list": "标签列表",
"team_tag": "团队标签",
"textarea_variable_picker_tip": "输入\"/\"可选择变量",
"unauth_token": "凭证已过期,请重新登录",
"unit.character": "字符",
"unit.minute": "分钟",
"unit.seconds": "秒",

View File

@@ -106,7 +106,7 @@
"team.group.set_as_admin": "设为管理员",
"team.group.toast.can_not_delete_owner": "不能删除所有者, 请先转让",
"team.group.transfer_owner": "转让所有者",
"team.org.org": "组织",
"team.org.org": "部门",
"team.manage_collaborators": "管理协作者",
"team.no_collaborators": "暂无协作者",
"team.write_role_member": "可写权限",

View File

@@ -49,7 +49,7 @@
"execution_error": "运行错误",
"extraction_requirements_description": "提取要求描述",
"extraction_requirements_description_detail": "给AI一些对应的背景知识或要求描述引导AI更好的完成任务。\\n该输入框可使用全局变量。",
"extraction_requirements_placeholder": "例如: \\n1. 当前时间为: {{cTime}}。你是一个实验室预约助手,你的任务是帮助用户预约实验室,从文本中获取对应的预约信息。\\n2. 你是谷歌搜索助手,需要从文本中提取出合适的搜索词。",
"extraction_requirements_placeholder": "例如: 1. 当前时间为: {{cTime}}。你是一个实验室预约助手,你的任务是帮助用户预约实验室,从文本中获取对应的预约信息。\n2. 你是谷歌搜索助手,需要从文本中提取出合适的搜索词。",
"feedback_text": "反馈的文本",
"field_description": "字段描述",
"field_description_placeholder": "描述该输入字段的功能,如果为工具调用参数,则该描述会影响模型生成的质量",

View File

@@ -1,7 +1,14 @@
{
"active_model": "可用模型",
"add_default_model": "新增預設模型",
"api_key": "API 金鑰",
"bills_and_invoices": "帳單與發票",
"channel": "頻道",
"confirm_logout": "確認登出登入?",
"create_channel": "新增頻道",
"create_model": "新增模型",
"custom_model": "自訂模型",
"default_model": "預設模型",
"logout": "登出",
"model_provider": "模型提供者",
"notifications": "通知",

View File

@@ -1187,6 +1187,7 @@
"tag_list": "標籤列表",
"team_tag": "團隊標籤",
"textarea_variable_picker_tip": "輸入「/」以選擇變數",
"unauth_token": "憑證已過期,請重新登入",
"unit.character": "字元",
"unit.minute": "分鐘",
"unit.seconds": "秒",

View File

@@ -49,7 +49,7 @@
"execution_error": "執行錯誤",
"extraction_requirements_description": "擷取需求描述",
"extraction_requirements_description_detail": "提供 AI 相對應的背景知識或需求描述,引導 AI 更好地完成任務。\\n這個輸入框可以使用全域變數。",
"extraction_requirements_placeholder": "例如\\n1. 目前時間為{{cTime}}。您是一位實驗室預約助理,您的任務是助使用者預約實驗室,從文字中取得對應的預約資訊。\\n2. 您是 Google 搜尋助,需要從文字中取出合適的搜尋詞。",
"extraction_requirements_placeholder": "例如: 1. 目前時間為: {{cTime}}。\n你是實驗室預約助手,你的任務是助使用者預約實驗室,從文字中取得對應的預約資訊。\n\n2. 你是Google搜尋助,需要從文字中取出合適的搜尋詞。",
"feedback_text": "回饋文字",
"field_description": "欄位描述",
"field_description_placeholder": "描述這個輸入欄位的功能,如果是工具呼叫參數,這個描述會影響模型產生的品質",