Skip to content

Commit

Permalink
Remove superfluous call super
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Sep 3, 2024
1 parent f843061 commit 5edcf71
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** OpenAI function signature. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiChatCompletionFunction {
/**
* Name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private enum ToolChoiceType implements ToolChoice {
}

@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
private static class FunctionToolChoice implements ToolChoice {
@JsonProperty("function")
@Setter(onParam_ = @Nonnull)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/** OpenAI tool signature. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiChatCompletionTool {
/** Specifies a tool the model should use. Use to force the model to call a specific function. */
@JsonProperty("type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** The name of the function to call, or, the function that the model called. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiChatFunctionCall {
/** Name of the function call. */
@JsonProperty("name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public interface OpenAiChatMessage {
/** OpenAI system message. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
class OpenAiChatSystemMessage implements OpenAiChatMessage {
/** The role of the messages author. */
@Getter(onMethod_ = @Nonnull)
Expand All @@ -75,7 +75,7 @@ class OpenAiChatSystemMessage implements OpenAiChatMessage {
/** OpenAI user message. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
class OpenAiChatUserMessage implements OpenAiChatMessage {
/** The role of the messages author. */
@Getter(onMethod_ = @Nonnull)
Expand Down Expand Up @@ -235,7 +235,7 @@ public enum ImageDetailLevel {
/** OpenAI assistant message. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
class OpenAiChatAssistantMessage implements OpenAiChatMessage {
/** The role of the messages author. */
@Getter(onMethod_ = @Nonnull)
Expand Down Expand Up @@ -277,7 +277,7 @@ void addDelta(@Nonnull final OpenAiChatAssistantMessage delta) {
/** OpenAI tool message. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
class OpenAiChatToolMessage implements OpenAiChatMessage {
/** The role of the messages author. */
@Getter(onMethod_ = @Nonnull)
Expand All @@ -298,7 +298,7 @@ class OpenAiChatToolMessage implements OpenAiChatMessage {
/** OpenAI function message. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
class OpenAiChatFunctionMessage implements OpenAiChatMessage {
/** The role of the messages author. */
@Getter(onMethod_ = @Nonnull)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** OpenAI tool call by AI. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiChatToolCall {
/** The ID of the tool call. */
@JsonProperty("id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Result for OpenAI chat completion output. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiCompletionChoice {
/**
* Reason for finish. The possible values are:
Expand All @@ -33,7 +33,7 @@ public class OpenAiCompletionChoice {

/** Index of choice. */
@JsonProperty("index")
@Getter // Nullable
@Getter(onMethod_ = @Nullable)
private Integer index;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/** OpenAI completion output . */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiCompletionOutput {
/** Creation date Unix timestamp. */
@JsonProperty("created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/** OpenAI completion input parameters. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiCompletionParameters {
/**
* The maximum number of [tokens](/tokenizer) that can be generated in the completion. The token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** OpenAI content filter result. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiContentFilterResultBase {
/** Whether the content was filtered. */
@JsonProperty("filtered")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Information about the content filtering results. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiContentFilterResultsBase {
/** Sexual content filter result. */
@JsonProperty("sexual")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Result candidates for OpenAI embedding output. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiEmbeddingData {
/** Embedding object. */
@JsonProperty("object")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** OpenAI embedding output. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiEmbeddingOutput {
/** List object. */
@JsonProperty("object")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/** OpenAI embedding input parameters. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiEmbeddingParameters {
/**
* Input text to get embeddings for, encoded as a string. The number of input tokens varies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** OpenAI error. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiError {
/** The error object. */
@JsonProperty("error")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** OpenAI error. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiErrorBase {
/** The error code. */
@JsonProperty("code")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** Content filtering results for a single prompt in the request. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiPromptFilterResult {
/** Index of the prompt in the request. */
@JsonProperty("prompt_index")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Usage statistics for the completion request. */
@Accessors(chain = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@ToString
public class OpenAiUsage {
/** Tokens consumed for output text completion. */
@JsonProperty("completion_tokens")
Expand Down

0 comments on commit 5edcf71

Please sign in to comment.