Skip to content

Commit fd335bc

Browse files
ilayaperumalgchedim
authored andcommitted
Fix BedrockTitanEmbeddingModelIT
- Create ObservationRegistry bean for the tests Signed-off-by: Ilayaperumal Gopinathan <[email protected]>
1 parent d4408de commit fd335bc

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)