@@ -8,6 +8,7 @@ public class WatsonxSettingsState {
8
8
private String username ;
9
9
private boolean isOnPrem = false ;
10
10
private boolean isZenApiKey = false ;
11
+ private String region = "us-south" ;
11
12
private String apiVersion = "2024-03-14" ;
12
13
// use this model as default
13
14
private String model = "ibm/granite-3b-code-instruct" ;
@@ -57,6 +58,12 @@ public void setUsername(String username) {
57
58
this .username = username ;
58
59
}
59
60
61
+ public String getRegion () {return region ;}
62
+
63
+ public void setRegion (String region ) {
64
+ this .region = region ;
65
+ }
66
+
60
67
public String getApiVersion () {
61
68
return apiVersion ;
62
69
}
@@ -170,12 +177,10 @@ public boolean equals(Object o) {
170
177
return false ;
171
178
}
172
179
ee .carlrobert .codegpt .settings .service .watsonx .WatsonxSettingsState that = (ee .carlrobert .codegpt .settings .service .watsonx .WatsonxSettingsState ) o ;
173
- return Objects .equals (apiVersion , that .apiVersion ) && Objects .equals (spaceId , that .spaceId ) && Objects .equals (projectId , that .projectId ) && Objects .equals (model , that .model ) && Objects .equals (temperature ,that .temperature ) && Objects .equals (topP ,that .topP ) && Objects .equals (topK ,that .topK ) && Objects .equals (randomSeed ,that .randomSeed ) && Objects .equals (repetitionPenalty ,that .repetitionPenalty ) && Objects .equals (maxNewTokens , that .maxNewTokens ) && Objects .equals (minNewTokens ,that .minNewTokens ) && Objects .equals (isGreedyDecoding ,that .isGreedyDecoding ) && Objects .equals (isOnPrem ,that .isOnPrem ) && Objects .equals (isZenApiKey ,that .isZenApiKey );
174
-
180
+ return Objects .equals (apiVersion , that .apiVersion ) && Objects .equals (region , that .region ) && Objects .equals (spaceId , that .spaceId ) && Objects .equals (projectId , that .projectId ) && Objects .equals (model , that .model ) && Objects .equals (temperature ,that .temperature ) && Objects .equals (topP ,that .topP ) && Objects .equals (topK ,that .topK ) && Objects .equals (randomSeed ,that .randomSeed ) && Objects .equals (repetitionPenalty ,that .repetitionPenalty ) && Objects .equals (maxNewTokens , that .maxNewTokens ) && Objects .equals (minNewTokens ,that .minNewTokens ) && Objects .equals (isGreedyDecoding ,that .isGreedyDecoding ) && Objects .equals (isOnPrem ,that .isOnPrem ) && Objects .equals (isZenApiKey ,that .isZenApiKey );
175
181
}
176
182
177
183
@ Override
178
184
public int hashCode () {
179
- return Objects .hash (apiVersion , model , apiVersion , projectId , spaceId ,temperature ,topP ,topK ,randomSeed ,includeStopSequence ,stopSequences ,repetitionPenalty , maxNewTokens ,minNewTokens ,isGreedyDecoding ,isOnPrem ,isZenApiKey );
180
- }
185
+ return Objects .hash (apiVersion , region , model , apiVersion , projectId , spaceId ,temperature ,topP ,topK ,randomSeed ,includeStopSequence ,stopSequences ,repetitionPenalty , maxNewTokens ,minNewTokens ,isGreedyDecoding ,isOnPrem ,isZenApiKey ); }
181
186
}
0 commit comments