chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -35,8 +35,8 @@ const getDefaultState = (): DraftBotDataSetStoreState => ({
datasetsMap: {},
});
// 目前 work_info 里的 dataset 只包含了很少量的元信息,
// 为了方便判断引入的 dataset 类型(用于分组、模型能力检查等等),这里统一缓存当下使用的 dataset
// At present, the dataset in the work_info contains only a small amount of meta information.
// In order to facilitate the determination of the type of dataset introduced (for grouping, model capability checking, etc.), the dataset currently in use is cached here
export const createDraftBotDatasetsStore = () =>
create<DraftBotDataSetStoreState & DraftBotDataSetStoreAction>()(
devtools(

View File

@@ -19,7 +19,7 @@ import { create } from 'zustand';
import { produce } from 'immer';
export interface FreeGrabModalHierarchyState {
// modal key list
// Modal key list
modalHierarchyList: string[];
}
@@ -31,7 +31,7 @@ export interface FreeGrabModalHierarchyAction {
}
/**
* 可自由拖拽的弹窗之间的层级关系
* Hierarchical relationship between pop-ups that can be dragged and dropped freely
*/
export const createFreeGrabModalHierarchyStore = () =>
create<FreeGrabModalHierarchyState & FreeGrabModalHierarchyAction>()(

View File

@@ -24,15 +24,15 @@ import { type ModelPresetValues } from './type';
import { getModelPresetValues } from './helpers/get-model-preset-values';
export interface ModelState {
// 当前环境所有合法的模型列表
// List of all valid models in the current environment
onlineModelList: Model[];
/* 不属于当前环境的特殊模型 key === modelId
* 例如: 在 cn-inhouse 选择 GPT 模型, 然后切换到 cn-release, 当前 bot 模型列表 = 正常模型列表 + 1个特殊模型(GPT)
* MultiAgent 模式下, 每个 Agent 模型列表 = 正常模型列表 + 1个特殊模型(可能存在)
* 从特殊模型切换到正常模型后, 不被允许切换回特殊模型
/* Special models that do not belong to the current environment key === modelId
* For example: select the GPT model in cn-inhouse, then switch to cn-release, the current bot model list = normal model list + 1 special model (GPT)
* In MultiAgent mode, each Agent model list = normal model list + 1 special model (may exist)
* After switching from the special model to the normal model, it is not allowed to switch back to the special model
*/
offlineModelMap: Record<string, Model>;
// 纯计算属性, 由 specialModel baseModel 计算而来 key === modelId
// Pure computational properties, calculated from specialModel and baseModel key === modelId
// key === modelId
modelPresetValuesMap: Record<string, ModelPresetValues>;
}

View File

@@ -37,7 +37,7 @@ export interface OnboardingDirtyLogicCompatibilityAction {
}
/**
* 用来处理 bot 编辑页 onboarding 的复杂、脏业务逻辑
* Complex, dirty business logic for handling bot edit page onboarding
*/
export const createOnboardingDirtyLogicCompatibilityStore = () =>
create<

View File

@@ -32,7 +32,7 @@ export type TGetModelCapabilityConfig = (params: {
getModelById: (id: string) => Model | undefined;
}) => ModelCapabilityConfig;
// 模型能力配置的 fallback没有配置的能力按支持处理
// Fallback of model capability configuration, capability without configuration is handled as supported
export const defaultModelCapConfig = Object.values(ModelFuncConfigType).reduce(
(res, type) => ({
...res,
@@ -56,7 +56,7 @@ const mergeModelCapabilityConfig = (
target
? Object.entries(target).reduce<ModelCapabilityConfig>(
(merged, [key, status]) => {
// 未配置的能力视为完全支持
// Unconfigured capabilities are considered fully supported
const [preStatus, preName] = merged[
key as unknown as ModelFuncConfigType
] ?? [ModelFuncConfigStatus.FullSupport, []];

View File

@@ -41,7 +41,7 @@ export function convertModelValueType(
return Number(value);
}
// 理论上不走这里
// Theoretically not going here
primitiveExhaustiveCheck(type);
return value;
}