Skip to content

Commit 00efa5d

Browse files
committed
Fix typos in assert notNull
1 parent 5a35213 commit 00efa5d

File tree

2 files changed

+2
-2
lines changed
  • models

2 files changed

+2
-2
lines changed

models/spring-ai-bedrock/src/main/java/org/springframework/ai/bedrock/BedrockUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static BedrockUsage from(AmazonBedrockInvocationMetrics usage) {
3434
private final AmazonBedrockInvocationMetrics usage;
3535

3636
protected BedrockUsage(AmazonBedrockInvocationMetrics usage) {
37-
Assert.notNull(usage, "OpenAI Usage must not be null");
37+
Assert.notNull(usage, "Bedrock Usage must not be null");
3838
this.usage = usage;
3939
}
4040

models/spring-ai-moonshot/src/main/java/org/springframework/ai/moonshot/metadata/MoonshotUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static MoonshotUsage from(MoonshotApi.Usage usage) {
1616
}
1717

1818
protected MoonshotUsage(MoonshotApi.Usage usage) {
19-
Assert.notNull(usage, "OpenAI Usage must not be null");
19+
Assert.notNull(usage, "Moonshot Usage must not be null");
2020
this.usage = usage;
2121
}
2222

0 commit comments

Comments
 (0)