Skip to content

Commit 0bcb2e1

Browse files
quafftzolov
authored andcommitted
Fix outdated configuration key include-completion and include-query-response
Fixes GH-3151 Follow-up of commit ca843e8,`includeCompletion` is renamed to `logCompletion`. Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
1 parent d5d907b commit 0bcb2e1

File tree

2 files changed

+12
-12
lines changed
  • auto-configurations
    • models/chat/observation/spring-ai-autoconfigure-model-chat-observation/src/main/java/org/springframework/ai/model/chat/observation/autoconfigure
    • vector-stores/spring-ai-autoconfigure-vector-store-observation/src/main/java/org/springframework/ai/vectorstore/observation/autoconfigure

2 files changed

+12
-12
lines changed

auto-configurations/models/chat/observation/spring-ai-autoconfigure-model-chat-observation/src/main/java/org/springframework/ai/model/chat/observation/autoconfigure/ChatObservationProperties.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public class ChatObservationProperties {
3131
public static final String CONFIG_PREFIX = "spring.ai.chat.observations";
3232

3333
/**
34-
* Whether to include the completion content in the observations.
34+
* Whether to log the completion content in the observations.
3535
*/
36-
private boolean includeCompletion = false;
36+
private boolean logCompletion = false;
3737

3838
/**
3939
* Whether to log the prompt content in the observations.
@@ -45,12 +45,12 @@ public class ChatObservationProperties {
4545
*/
4646
private boolean includeErrorLogging = false;
4747

48-
public boolean isIncludeCompletion() {
49-
return this.includeCompletion;
48+
public boolean isLogCompletion() {
49+
return this.logCompletion;
5050
}
5151

52-
public void setIncludeCompletion(boolean includeCompletion) {
53-
this.includeCompletion = includeCompletion;
52+
public void setLogCompletion(boolean logCompletion) {
53+
this.logCompletion = logCompletion;
5454
}
5555

5656
public boolean isLogPrompt() {

auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-observation/src/main/java/org/springframework/ai/vectorstore/observation/autoconfigure/VectorStoreObservationProperties.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ public class VectorStoreObservationProperties {
3030
public static final String CONFIG_PREFIX = "spring.ai.vectorstore.observations";
3131

3232
/**
33-
* Whether to include the search response content in the observations.
33+
* Whether to log the search response content in the observations.
3434
*/
35-
private boolean includeQueryResponse = false;
35+
private boolean logQueryResponse = false;
3636

37-
public boolean isIncludeQueryResponse() {
38-
return this.includeQueryResponse;
37+
public boolean isLogQueryResponse() {
38+
return this.logQueryResponse;
3939
}
4040

41-
public void setIncludeQueryResponse(boolean includeQueryResponse) {
42-
this.includeQueryResponse = includeQueryResponse;
41+
public void setLogQueryResponse(boolean logQueryResponse) {
42+
this.logQueryResponse = logQueryResponse;
4343
}
4444

4545
}

0 commit comments

Comments
 (0)