Skip to content

Commit 38afc12

Browse files
committed
Fix AnthropicApiIT's chatCompletionStreamError
- Fix the error response message Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
1 parent b71d730 commit 38afc12

File tree

1 file changed

+1
-1
lines changed
  • models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api

1 file changed

+1
-1
lines changed

models/spring-ai-anthropic/src/test/java/org/springframework/ai/anthropic/api/AnthropicApiIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void chatCompletionStreamError() {
324324
assertThatThrownBy(() -> response.collectList().block()).isInstanceOf(RuntimeException.class)
325325
.hasMessageStartingWith("Response exception, Status: [")
326326
.hasMessageContaining(
327-
"{\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"}}");
327+
"{\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"invalid x-api-key\"}");
328328
}
329329

330330
}

0 commit comments

Comments
 (0)