Skip to content

Commit fc152d1

Browse files
committed
Additional constructor that take metadata mode
1 parent 6d2c12c commit fc152d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

foundation-models/openai/src/test/java/com/sap/ai/sdk/foundationmodels/openai/spring/EmbeddingModelTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void testEmbedDocument() {
9696

9797
val expectedOpenAiRequest =
9898
new EmbeddingsCreateRequest()
99-
.input(EmbeddingsCreateRequestInput.create(List.of(document.getText())));
99+
.input(EmbeddingsCreateRequestInput.create(List.of(document.getFormattedContent())));
100100

101101
when(client.embedding(assertArg(assertRecursiveEquals(expectedOpenAiRequest))))
102102
.thenReturn(openAiResponse);

0 commit comments

Comments
 (0)