Skip to content

Commit c646dfe

Browse files
committed
Fix BedrockTitanEmbeddingModelIT
- Create ObservationRegistry bean for the tests Signed-off-by: Ilayaperumal Gopinathan <ilayaperumal.gopinathan@broadcom.com>
1 parent 59b36d1 commit c646dfe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

models/spring-ai-bedrock/src/test/java/org/springframework/ai/bedrock/titan/BedrockTitanEmbeddingModelIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ void imageEmbedding() throws IOException {
7979
@SpringBootConfiguration
8080
public static class TestConfiguration {
8181

82+
@Bean
83+
public TestObservationRegistry observationRegistry() {
84+
return TestObservationRegistry.create();
85+
}
86+
8287
@Bean
8388
public TitanEmbeddingBedrockApi titanEmbeddingApi() {
8489
return new TitanEmbeddingBedrockApi(TitanEmbeddingModel.TITAN_EMBED_IMAGE_V1.id(),

0 commit comments

Comments
 (0)