Skip to content

Commit 4408c46

Browse files
committed
Fix MistralAI test configuration
- Use MistralAiApi in MistralAiEmbeddingModel Signed-off-by: Ilayaperumal Gopinathan <[email protected]>
1 parent 46b9170 commit 4408c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/spring-ai-mistral-ai/src/test/java/org/springframework/ai/mistralai/MistralAiTestConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public MistralAiModerationApi mistralAiModerationApi() {
5252

5353
@Bean
5454
public EmbeddingModel mistralAiEmbeddingModel(MistralAiApi api) {
55-
return MistralAiEmbeddingModel.builder().build();
55+
return MistralAiEmbeddingModel.builder().mistralAiApi(api).build();
5656
}
5757

5858
@Bean

0 commit comments

Comments
 (0)