This is an automated email from the ASF dual-hosted git repository.

yuluo-yx pushed a commit to branch 0812-yuluo/feat
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/0812-yuluo/feat by this push:
     new 35617b4154 feat
35617b4154 is described below

commit 35617b415420223d28dc42a02501c81002a278be
Author: yuluo-yx <[email protected]>
AuthorDate: Wed Aug 12 21:14:58 2026 +0800

    feat
    
    Signed-off-by: yuluo-yx <[email protected]>
---
 .../org/apache/hertzbeat/ai/service/impl/ConversationServiceImpl.java   | 2 +-
 .../apache/hertzbeat/ai/service/impl/ConversationServiceImplTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImpl.java
 
b/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImpl.java
index bc48bbaa8b..b66b839e08 100644
--- 
a/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImpl.java
+++ 
b/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImpl.java
@@ -80,7 +80,7 @@ public class ConversationServiceImpl implements 
ConversationService {
 
         ChatConversation conversation;
         if (conversationId == null) {
-            // 接口约定 conversationId 可选,首次聊天时按需创建会话。
+            // The API contract makes conversationId optional, so create a 
conversation for the first message.
             conversation = new ChatConversation();
             conversation.setTitle(buildConversationTitle(message));
             conversation = conversationDao.save(conversation);
diff --git 
a/hertzbeat-ai/src/test/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImplTest.java
 
b/hertzbeat-ai/src/test/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImplTest.java
index cfe7d8c217..43cdf88d8f 100644
--- 
a/hertzbeat-ai/src/test/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImplTest.java
+++ 
b/hertzbeat-ai/src/test/java/org/apache/hertzbeat/ai/service/impl/ConversationServiceImplTest.java
@@ -125,7 +125,7 @@ class ConversationServiceImplTest {
     }
 
     /**
-     * 客户端省略可选会话 ID 时,服务端应创建会话并在整个流式响应中返回新 ID。
+     * The service should create a conversation and return its ID when the 
client omits the optional conversation ID.
      */
     @Test
     void streamChatShouldCreateConversationWhenConversationIdIsMissing() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to