Skip to content

Commit 0ab4ff2

Browse files
fix SimpleApiKey Assert Message (#3656)
Auto-cherry-pick to 1.0.x Fixes #3656 Signed-off-by: jonghoon park <dev@jonghoonpark.com>
1 parent 879c5e2 commit 0ab4ff2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-model/src/main/java/org/springframework/ai/model/SimpleApiKey.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public record SimpleApiKey(String value) implements ApiKey {
3131

3232
/**
3333
* Create a new SimpleApiKey.
34-
* @param value the API key value, must not be null or empty
35-
* @throws IllegalArgumentException if value is null or empty
34+
* @param value the API key value, must not be null
35+
* @throws IllegalArgumentException if value is null
3636
*/
3737
public SimpleApiKey(String value) {
38-
Assert.notNull(value, "API key value must not be null or empty");
38+
Assert.notNull(value, "API key value must not be null");
3939
this.value = value;
4040
}
4141

0 commit comments

Comments
 (0)