We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa33a9 commit 2ee62daCopy full SHA for 2ee62da
models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/AnthropicApiIT.java
@@ -358,8 +358,9 @@ void chatCompletionStreamError() {
358
359
assertThatThrownBy(() -> response.collectList().block()).isInstanceOf(RuntimeException.class)
360
.hasMessageStartingWith("Response exception, Status: [")
361
- .hasMessageContaining(
362
- "{\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"}");
+ .hasMessageContaining("\"type\":\"error\"")
+ .hasMessageContaining("\"type\":\"authentication_error\"")
363
+ .hasMessageContaining("\"message\":\"invalid x-api-key\"");
364
}
365
366
0 commit comments