Commit a33ea4aa820ce49d4bc42d0a6b89e4f206374eaf
1 parent
e8f4dd79
删除 对话类型
Showing
1 changed file
with
7 additions
and
10 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/vo/ChatReq.java
| ... | ... | @@ -17,26 +17,23 @@ import lombok.experimental.Accessors; |
| 17 | 17 | @Accessors(chain = true) |
| 18 | 18 | public class ChatReq { |
| 19 | 19 | |
| 20 | - @Schema(description = "chat角色模板") | |
| 21 | - private Long chatRoleId; | |
| 20 | + @Schema(description = "ai模型(查看 AiClientNameEnum)") | |
| 21 | + @NotNull(message = "模型不能为空!") | |
| 22 | + @Size(max = 30, message = "模型字符最大30个字符!") | |
| 23 | + private String modal; | |
| 22 | 24 | |
| 23 | 25 | @Schema(description = "对话Id") |
| 26 | + @NotNull(message = "对话id不能为空") | |
| 24 | 27 | private Long conversationId; |
| 25 | 28 | |
| 26 | - @Schema(description = "对话类型(new、continue),如果是new会创建一个新的对话,continue就会继续对话!") | |
| 27 | - @NotNull(message = "对话类型,不能为空!") | |
| 28 | - private String conversationType; | |
| 29 | + @Schema(description = "chat角色模板") | |
| 30 | + private Long chatRoleId; | |
| 29 | 31 | |
| 30 | 32 | @NotNull(message = "提示词不能为空!") |
| 31 | 33 | @Size(max = 5000, message = "提示词最大5000个字符!") |
| 32 | 34 | @Schema(description = "填入固定值,1 issues, 2 pr") |
| 33 | 35 | private String prompt; |
| 34 | 36 | |
| 35 | - @Schema(description = "ai模型(查看 AiClientNameEnum)") | |
| 36 | - @NotNull(message = "模型不能为空!") | |
| 37 | - @Size(max = 30, message = "模型字符最大30个字符!") | |
| 38 | - private String modal; | |
| 39 | - | |
| 40 | 37 | @Schema(description = "用于控制随机性和多样性的温度参数") |
| 41 | 38 | private Double temperature; |
| 42 | 39 | ... | ... |