🌐 chore: translate non-English comments to English in packages/types (#11086)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
LobeHub Bot
2026-01-01 20:54:29 +08:00
committed by GitHub
parent 479556b39a
commit a71d9c70d2
6 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import type { ILobeAgentRuntimeErrorType } from '../../agentRuntime';
import { ErrorType } from '../../fetch';
/**
* 聊天消息错误对象
* Chat message error object
*/
export interface ChatMessageError {
body?: any;

View File

@@ -107,7 +107,7 @@ export interface UIChatMessage {
content: string;
createdAt: number;
error?: ChatMessageError | null;
// 扩展字段
// Extended fields
extra?: ChatMessageExtra;
fileList?: ChatFileItem[];
/**
@@ -186,11 +186,11 @@ export interface UIChatMessage {
tool_call_id?: string;
tools?: ChatToolPayload[];
/**
* 保存到主题的消息
* Messages saved to topic
*/
topicId?: string;
/**
* 观测链路 id
* Observation trace ID
*/
traceId?: string;
updatedAt: number;

View File

@@ -9,8 +9,8 @@ export interface ChatTTS {
export interface ChatMessageExtra {
model?: string;
provider?: string;
// 翻译
// Translation
translate?: ChatTranslate | false | null;
// TTS
// Text-to-Speech
tts?: ChatTTS;
}

View File

@@ -53,5 +53,5 @@ export interface OpenAIPluginManifest {
name_for_human: string;
name_for_model: string;
schema_version: string;
// 其他可能的字段...
// Other possible fields...
}

View File

@@ -47,7 +47,7 @@ export interface LobeGroupSession {
export interface LobeAgentSettings {
/**
* 语言模型角色设定
* Language model agent configuration
*/
config: LobeAgentConfig;
meta: MetaData;

View File

@@ -28,7 +28,7 @@ export * from './tool';
export * from './tts';
/**
* 配置设置
* User configuration settings
*/
export interface UserSettings {
defaultAgent: UserDefaultAgent;