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

tomsun28 pushed a commit to branch 2.0.0
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/2.0.0 by this push:
     new 682caa82ae fix spring-ai
682caa82ae is described below

commit 682caa82ae5e1bb6415c066369d44828a74e91d3
Author: tomsun28 <[email protected]>
AuthorDate: Thu Jun 4 22:54:25 2026 +0800

    fix spring-ai
    
    Signed-off-by: tomsun28 <[email protected]>
---
 hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/config/LlmConfig.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/config/LlmConfig.java 
b/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/config/LlmConfig.java
index 248c2e0828..674f6f948e 100644
--- a/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/config/LlmConfig.java
+++ b/hertzbeat-ai/src/main/java/org/apache/hertzbeat/ai/config/LlmConfig.java
@@ -112,6 +112,7 @@ public class LlmConfig {
         OpenAiChatOptions openAiChatOptions = OpenAiChatOptions.builder()
                 .model(modelProviderConfig.getModel())
                 .temperature(0.3)
+                .apiKey(modelProviderConfig.getApiKey())
                 .build();
 
         // Create Chat Model


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

Reply via email to