Skip to content

Commit 194163f

Browse files
committed
remove comments
1 parent 27b4ccd commit 194163f

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

src/main/java/ee/carlrobert/llm/client/watsonx/WatsonxAuthenticator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public String getBearerTokenValue() {
7575
if (!isZenApiKey && (this.bearerToken == null || (this.bearerToken.getExpiration() * 1000) < new Date().getTime() + 1000000)) {//TODO add correct number of seconds
7676
generateNewBearerToken();
7777
}
78-
//generateNewBearerToken();
7978
return this.bearerToken.getAccessToken();
8079
}
8180
}

src/main/java/ee/carlrobert/llm/client/watsonx/completion/WatsonxCompletionErrorDetails.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class WatsonxCompletionErrorDetails extends BaseError {
1212

1313
String code;
1414
String message;
15-
//String target;//field,query,header
1615

1716
public WatsonxCompletionErrorDetails(String message) {
1817
this(message, null);
@@ -36,12 +35,4 @@ public String getCode() {
3635
return code;
3736
}
3837

39-
/*@Override
40-
public String toString() {
41-
return new StringJoiner(", ", ErrorDetails.class.getSimpleName() + "[", "]")
42-
.add("message='" + message + "'")
43-
.add("code='" + code + "'")
44-
.toString();
45-
}*/
46-
4738
}

src/main/java/ee/carlrobert/llm/client/watsonx/completion/WatsonxCompletionResponse.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
@JsonIgnoreProperties(ignoreUnknown = true)
1010
public class WatsonxCompletionResponse implements CompletionResponse {
1111
private final String modelId;
12-
//model version
1312
private String createdAt;
1413
private List<WatsonxCompletionResult> results;
1514

src/main/java/ee/carlrobert/llm/client/watsonx/completion/WatsonxCompletionResult.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ public class WatsonxCompletionResult {
1111
int generatedTokenCount;
1212
int inputTokenCount;
1313
int seed;
14-
//WatsonxCompletionTokenInfo[] generatedTokens;
15-
//WatsonxCompletionTokenInfo[] inputTokens;
16-
//moderations
1714

1815
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
1916
public WatsonxCompletionResult(
@@ -29,18 +26,8 @@ public WatsonxCompletionResult(
2926
this.generatedTokenCount=generatedTokenCount;
3027
this.inputTokenCount=inputTokenCount;
3128
this.seed=seed;
32-
// this.generatedTokens=generatedTokens;
33-
// this.inputTokens=inputTokens;
3429
}
3530

36-
/*@JsonIgnoreProperties(ignoreUnknown = true)
37-
public class WatsonxCompletionTokenInfo {
38-
double logprob;
39-
String text;
40-
int rank;
41-
//top_tokens
42-
}*/
43-
4431
public String getGeneratedText() {
4532
return this.generatedText;
4633
}

src/main/java/ee/carlrobert/llm/client/watsonx/completion/WatsonxCompletionStreamResponse.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class WatsonxCompletionStreamResponse {
1111

1212
private List<WatsonxCompletionResponse> items;
1313
private final String modelId;
14-
//model version
1514
private String createdAt;
1615

1716
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)

0 commit comments

Comments
 (0)