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

@@ -39,7 +39,7 @@ export const BizMessageInnerAddonBottom: FC<IProps> = memo(
return () => {
ref.current = p.message.reasoning_content;
};
// content 用来触发 reasoning rerender
// Content used to trigger reasoning rerender
}, [p.message.reasoning_content, p.message.content]);
return p.message.role === 'assistant' && p.message.reasoning_content ? (

View File

@@ -19,16 +19,16 @@ import { type PluginRegistryEntry } from '@coze-common/chat-area';
import { type PluginBizContext } from './types/biz-context';
import { BizPlugin } from './plugin';
// eslint-disable-next-line @typescript-eslint/naming-convention -- 插件命名大写开头符合预期
// eslint-disable-next-line @typescript-eslint/naming-convention -- Plugin names start with uppercase as expected
export const ReasoningPluginRegistry: PluginRegistryEntry<PluginBizContext> = {
/**
* 贯穿插件生命周期、组件的上下文
* Context of components throughout the plug-in lifecycle
*/
createPluginBizContext() {
return {};
},
/**
* 插件本体
* plug-in ontology
*/
Plugin: BizPlugin,
};

View File

@@ -28,19 +28,19 @@ import { BizMessageInnerAddonBottom } from './custom-components/message-inner-ad
export class BizPlugin extends ReadonlyChatAreaPlugin<PluginBizContext> {
/**
* 插件类型
* PluginMode.Readonly = 只读模式
* PluginMode.Writeable = 可写模式
* plugin type
* PluginMode. Readonly = read-only mode
* PluginMode. Writeable = Writable Mode
*/
public pluginMode = PluginMode.Readonly;
/**
* 插件名称
* 请点 PluginName 里面去定义
* plugin name
* Please click PluginName to define it.
*/
public pluginName = PluginName.Demo;
/**
* 生命周期服务
* lifecycle services
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public lifeCycleServices: any = createReadonlyLifeCycleServices(
@@ -49,7 +49,7 @@ export class BizPlugin extends ReadonlyChatAreaPlugin<PluginBizContext> {
);
/**
* 自定义组件
* custom component
*/
public customComponents = createCustomComponents({
TextMessageInnerTopSlot: BizMessageInnerAddonBottom,