You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiEmbeddingParameters.java
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,21 @@ public class OpenAiEmbeddingParameters {
40
40
@Setter(onParam_ = @Nullable)
41
41
privateStringinputType;
42
42
43
+
/**
44
+
* The format to return the embeddings in. Can be either `float` or `base64`. Defaults to `float`.
45
+
*/
46
+
@JsonProperty("encoding_format")
47
+
@Setter(onParam_ = @Nullable)
48
+
privateStringencodingFormat;
49
+
50
+
/**
51
+
* The number of dimensions the resulting output embeddings should have. Only supported in
52
+
* `text-embedding-3` and later models.
53
+
*/
54
+
@JsonProperty("dimensions")
55
+
@Setter(onParam_ = @Nullable)
56
+
privateIntegerdimensions;
57
+
43
58
/**
44
59
* Input text to get embeddings for, encoded as a string. The number of input tokens varies
45
60
* depending on what model you are using. Unless you're embedding code, we suggest replacing
0 commit comments