Skip to content

Commit

Permalink
fix: 불필요한 응답 멤버변수 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Mar 9, 2024
1 parent eab408e commit 0d95d03
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.isp.backend.domain.gpt.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.isp.backend.domain.gpt.entity.GptMessage;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand All @@ -13,30 +12,11 @@
@NoArgsConstructor
@AllArgsConstructor
public class GptResponseDTO {
private String id;
private String object;
private long created;
private String model;
private Usage usage;
private List<Choice> choices;

@Getter
@Setter
public static class Usage {
@JsonProperty("prompt_tokens")
private int promptTokens;
@JsonProperty("completion_tokens")
private int completionTokens;
@JsonProperty("total_tokens")
private int totalTokens;
}

@Getter
@Setter
public static class Choice {
private GptMessage message;
@JsonProperty("finish_reason")
private String finishReason;
private int index;
}
}

0 comments on commit 0d95d03

Please sign in to comment.