mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🌐 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:
@@ -5,7 +5,7 @@ import type { ILobeAgentRuntimeErrorType } from '../../agentRuntime';
|
||||
import { ErrorType } from '../../fetch';
|
||||
|
||||
/**
|
||||
* 聊天消息错误对象
|
||||
* Chat message error object
|
||||
*/
|
||||
export interface ChatMessageError {
|
||||
body?: any;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -53,5 +53,5 @@ export interface OpenAIPluginManifest {
|
||||
name_for_human: string;
|
||||
name_for_model: string;
|
||||
schema_version: string;
|
||||
// 其他可能的字段...
|
||||
// Other possible fields...
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export interface LobeGroupSession {
|
||||
|
||||
export interface LobeAgentSettings {
|
||||
/**
|
||||
* 语言模型角色设定
|
||||
* Language model agent configuration
|
||||
*/
|
||||
config: LobeAgentConfig;
|
||||
meta: MetaData;
|
||||
|
||||
@@ -28,7 +28,7 @@ export * from './tool';
|
||||
export * from './tts';
|
||||
|
||||
/**
|
||||
* 配置设置
|
||||
* User configuration settings
|
||||
*/
|
||||
export interface UserSettings {
|
||||
defaultAgent: UserDefaultAgent;
|
||||
|
||||
Reference in New Issue
Block a user