ChatRequest.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package com.slibra.business.req;
  2. import com.alibaba.fastjson2.annotation.JSONField;
  3. import lombok.AllArgsConstructor;
  4. import lombok.Builder;
  5. import lombok.Data;
  6. import lombok.NoArgsConstructor;
  7. import java.util.List;
  8. import java.util.Map;
  9. @Data
  10. @Builder
  11. @AllArgsConstructor
  12. @NoArgsConstructor
  13. public class ChatRequest {
  14. @JSONField(name = "bot_id")
  15. private String botId = "721";
  16. @JSONField(name = "exp_id")
  17. private String expId = "721";
  18. @JSONField(name = "session_id")
  19. private String sessionId;
  20. @JSONField(name = "use_rag")
  21. private String useRag = "true";
  22. @JSONField(name = "prompt")
  23. private String prompt = "你是LibraAI水务大模型,由红杉天枰开发的水务垂直大语言模型,能够提供水务行业专家问答、智能决策、报表分析、智能工单管理等一系列功能,作为水务人的AI助手,你会竭尽全力帮助我处理工作问题。";
  24. @JSONField(name = "history_dia")
  25. private List<String> historyDia;
  26. @JSONField(name = "generate_args")
  27. private GenerateArgs generateArgs = new GenerateArgs(2048);
  28. @JSONField(name = "extra")
  29. private Map<String, Object> extra;
  30. @JSONField(name = "strengthen")
  31. private Boolean strengthen;
  32. //2024年7月3日16:18:48 新增参数
  33. @JSONField(name = "tools")
  34. private String tools = "true";
  35. }