Skip to content

Commit 97d8f22

Browse files
committed
fix type
1 parent d2139f2 commit 97d8f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/spring/OpenAiSpringEmbeddingModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public EmbeddingResponse call(@Nonnull final EmbeddingRequest request)
5252
"Invalid EmbeddingRequest: the model option must be null, as the client already defines the model.");
5353
}
5454

55-
final var openAiRequest = createEmbeddingCreateRequest(request);
55+
final var openAiRequest = createEmbeddingsCreateRequest(request);
5656
final var openAiResponse = client.embedding(openAiRequest);
5757

5858
return createSpringAiEmbeddingResponse(openAiResponse);
@@ -67,7 +67,7 @@ public float[] embed(@Nonnull final Document document) throws UnsupportedOperati
6767
throw new UnsupportedOperationException("Only text type document supported for embedding");
6868
}
6969

70-
private EmbeddingsCreateRequest createEmbeddingCreateRequest(
70+
private EmbeddingsCreateRequest createEmbeddingsCreateRequest(
7171
@Nonnull final EmbeddingRequest request) {
7272
return new EmbeddingsCreateRequest()
7373
.dimensions(request.getOptions().getDimensions())

0 commit comments

Comments
 (0)