Skip to content

Commit 4f0bf5e

Browse files
committed
chore: remove Azure-related config from OpenAI
1 parent 3131daf commit 4f0bf5e

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/collections/generative/OpenAiGenerative.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ public static record Provider(
127127
Float topP,
128128
Float frequencyPenalty,
129129
Float presencePenalty,
130-
String apiVersion,
131-
String resourceName,
132-
String deploymentId,
133130
List<String> stopSequences,
134131
List<String> images,
135132
List<String> imageProperties) implements DynamicProvider {
@@ -167,15 +164,6 @@ public void appendTo(
167164
if (presencePenalty != null) {
168165
provider.setPresencePenalty(presencePenalty);
169166
}
170-
if (apiVersion != null) {
171-
provider.setApiVersion(apiVersion);
172-
}
173-
if (resourceName != null) {
174-
provider.setResourceName(resourceName);
175-
}
176-
if (deploymentId != null) {
177-
provider.setDeploymentId(deploymentId);
178-
}
179167
if (stopSequences != null) {
180168
provider.setStop(WeaviateProtoBase.TextArray.newBuilder()
181169
.addAllValues(stopSequences));
@@ -194,9 +182,6 @@ public Provider(Builder builder) {
194182
builder.topP,
195183
builder.frequencyPenalty,
196184
builder.presencePenalty,
197-
builder.apiVersion,
198-
builder.resourceName,
199-
builder.deploymentId,
200185
builder.stopSequences,
201186
builder.images,
202187
builder.imageProperties);
@@ -211,9 +196,6 @@ public static class Builder implements ObjectBuilder<OpenAiGenerative.Provider>
211196
private Float temperature;
212197
private Float frequencyPenalty;
213198
private Float presencePenalty;
214-
private String apiVersion;
215-
private String resourceName;
216-
private String deploymentId;
217199
private final List<String> stopSequences = new ArrayList<>();
218200
private final List<String> images = new ArrayList<>();
219201
private final List<String> imageProperties = new ArrayList<>();
@@ -273,21 +255,6 @@ public Builder stopSequences(List<String> stopSequences) {
273255
return this;
274256
}
275257

276-
public Builder apiVersion(String apiVersion) {
277-
this.apiVersion = apiVersion;
278-
return this;
279-
}
280-
281-
public Builder resourceName(String resourceName) {
282-
this.resourceName = resourceName;
283-
return this;
284-
}
285-
286-
public Builder deploymentId(String deploymentId) {
287-
this.deploymentId = deploymentId;
288-
return this;
289-
}
290-
291258
public Builder images(String... images) {
292259
return images(Arrays.asList(images));
293260
}

0 commit comments

Comments
 (0)