OutSendChatOK.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.goafanti.baiduAI.bo;
  2. public class OutSendChatOK extends OutSendChat {
  3. private String id;
  4. private String object;
  5. private String created;
  6. private String sentence_id;
  7. private String is_end;
  8. private String result;
  9. private String need_clear_history;
  10. private Usage usage;
  11. private class Usage {
  12. private Integer prompt_tokens;
  13. private Integer completion_tokens;
  14. private Integer total_tokens;
  15. public Integer getPrompt_tokens() {
  16. return prompt_tokens;
  17. }
  18. public void setPrompt_tokens(Integer prompt_tokens) {
  19. this.prompt_tokens = prompt_tokens;
  20. }
  21. public Integer getCompletion_tokens() {
  22. return completion_tokens;
  23. }
  24. public void setCompletion_tokens(Integer completion_tokens) {
  25. this.completion_tokens = completion_tokens;
  26. }
  27. public Integer getTotal_tokens() {
  28. return total_tokens;
  29. }
  30. public void setTotal_tokens(Integer total_tokens) {
  31. this.total_tokens = total_tokens;
  32. }
  33. }
  34. }