Skip to content

Commit 8db4908

Browse files
committed
implmented stub
Signed-off-by: youngpar <[email protected]>
1 parent 159e26a commit 8db4908

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

models/spring-ai-zhipuai/src/main/java/org/springframework/ai/zhipuai/ZhiPuAiEmbeddingOptions.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*
2828
* @author Geng Rong
2929
* @author Thomas Vitale
30+
* @author Ilayaperumal Gopinathan
3031
* @since 1.0.0 M1
3132
*/
3233
@JsonInclude(Include.NON_NULL)
@@ -39,7 +40,7 @@ public class ZhiPuAiEmbeddingOptions implements EmbeddingOptions {
3940
private @JsonProperty("model") String model;
4041

4142
/**
42-
* Dimensions to use.
43+
* Dimension value of the model to use.
4344
*/
4445
private @JsonProperty("dimensions") Integer dimensions;
4546
// @formatter:on
@@ -57,6 +58,10 @@ public void setModel(String model) {
5758
this.model = model;
5859
}
5960

61+
public void setDimensions(Integer dimensions) {
62+
this.dimensions = dimensions;
63+
}
64+
6065
@Override
6166
public Integer getDimensions() {
6267
return this.dimensions;
@@ -74,12 +79,12 @@ public Builder() {
7479
this.options = new ZhiPuAiEmbeddingOptions();
7580
}
7681

77-
public Builder withModel(String model) {
82+
public Builder model(String model) {
7883
this.options.setModel(model);
7984
return this;
8085
}
8186

82-
public Builder withDimensions(Integer dimensions) {
87+
public Builder dimensions(Integer dimensions) {
8388
this.options.setDimensions(dimensions);
8489
return this;
8590
}

0 commit comments

Comments
 (0)