mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
🌐 chore: translate non-English comments to English in chat store (#13728)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -208,7 +208,7 @@ function readAgentProfile(workspacePath: string): AgentProfile {
|
||||
// Try to extract **Emoji:** value (single emoji)
|
||||
const emojiMatch = content.match(/\*{0,2}Emoji:?\*{0,2}\s*(.+)/i);
|
||||
const rawAvatar = emojiMatch ? emojiMatch[1].trim() : undefined;
|
||||
// Filter out placeholder text like (待定), _(待定)_, (TBD), N/A, etc.
|
||||
// Filter out placeholder text like (待定)(Chinese TBD), _(待定)_, (TBD), N/A, etc.
|
||||
const isPlaceholder =
|
||||
rawAvatar && /^[_*((].*[))_*]$|^(?:tbd|todo|n\/?a|none|待定|未定)$/i.test(rawAvatar);
|
||||
const avatar = rawAvatar && !isPlaceholder ? rawAvatar : undefined;
|
||||
|
||||
@@ -73,7 +73,7 @@ export interface SendMessageServerParams {
|
||||
preloadMessages?: SendPreloadMessage[];
|
||||
sessionId?: string;
|
||||
threadId?: string;
|
||||
// if there is activeTopicId,then add topicId to message
|
||||
// if there is activeTopicId, then add topicId to message
|
||||
topicId?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@ export class ConversationLifecycleActionImpl {
|
||||
files: fileIdList,
|
||||
role: 'user',
|
||||
agentId: operationContext.agentId,
|
||||
// if there is topicId,then add topicId to message
|
||||
// if there is topicId, then add topicId to message
|
||||
topicId: operationContext.topicId ?? undefined,
|
||||
threadId: operationContext.threadId ?? undefined,
|
||||
imageList: tempImages.length > 0 ? tempImages : undefined,
|
||||
@@ -320,7 +320,7 @@ export class ConversationLifecycleActionImpl {
|
||||
content: LOADING_FLAT,
|
||||
role: 'assistant',
|
||||
agentId: operationContext.agentId,
|
||||
// if there is topicId,then add topicId to message
|
||||
// if there is topicId, then add topicId to message
|
||||
topicId: operationContext.topicId ?? undefined,
|
||||
threadId: operationContext.threadId ?? undefined,
|
||||
// Pass isSupervisor metadata for group orchestration (consistent with server)
|
||||
@@ -407,7 +407,7 @@ export class ConversationLifecycleActionImpl {
|
||||
parentId,
|
||||
},
|
||||
preloadMessages: undefined,
|
||||
// if there is topicId,then add topicId to message
|
||||
// if there is topicId, then add topicId to message
|
||||
topicId: topicId ?? undefined,
|
||||
threadId: operationContext.threadId ?? undefined,
|
||||
// Support creating new thread along with message
|
||||
|
||||
Reference in New Issue
Block a user