mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 03:12:37 +00:00
update
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 16:16:26
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-04-19 11:47:23
|
||||
* @LastEditTime: 2025-04-20 07:43:58
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -90,10 +90,16 @@ public class RobotEntity extends BaseEntity {
|
||||
@Column(name = "robot_type", nullable = false)
|
||||
private String type = RobotTypeEnum.SERVICE.name();
|
||||
|
||||
// stream, 使用流式返回
|
||||
@Builder.Default
|
||||
private boolean published = false;
|
||||
@Column(name = "is_stream")
|
||||
private boolean stream = true;
|
||||
|
||||
// @Builder.Default
|
||||
// private boolean published = false;
|
||||
|
||||
@Builder.Default
|
||||
@Column(name = "is_kb_enabled")
|
||||
private boolean kbEnabled = false;
|
||||
|
||||
private String kbUid; // 对应知识库
|
||||
|
||||
@@ -65,8 +65,8 @@ public class RobotRequest extends BaseRequest {
|
||||
// 机器人分类
|
||||
private String categoryUid;
|
||||
|
||||
@Builder.Default
|
||||
private Boolean published = false;
|
||||
// @Builder.Default
|
||||
// private Boolean published = false;
|
||||
|
||||
@Builder.Default
|
||||
private Boolean kbEnabled = false;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 16:45:18
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-04-19 11:47:52
|
||||
* @LastEditTime: 2025-04-20 07:44:32
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -57,7 +57,7 @@ public class RobotResponse extends BaseResponse {
|
||||
// 机器人分类
|
||||
private String categoryUid;
|
||||
|
||||
private Boolean published;
|
||||
// private Boolean published;
|
||||
|
||||
private Boolean kbEnabled;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-03-22 16:44:41
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-04-19 11:45:55
|
||||
* @LastEditTime: 2025-04-20 07:44:20
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -339,7 +339,7 @@ public class RobotRestService extends BaseRestService<RobotEntity, RobotRequest,
|
||||
robot.setNickname(request.getNickname());
|
||||
robot.setAvatar(request.getAvatar());
|
||||
robot.setDescription(request.getDescription());
|
||||
robot.setPublished(request.getPublished());
|
||||
// robot.setPublished(request.getPublished());
|
||||
robot.setDefaultReply(request.getDefaultReply());
|
||||
robot.setKbEnabled(request.getKbEnabled());
|
||||
robot.setKbUid(request.getKbUid());
|
||||
@@ -677,10 +677,8 @@ public class RobotRestService extends BaseRestService<RobotEntity, RobotRequest,
|
||||
.categoryUid(categoryUid)
|
||||
.level(level)
|
||||
.llm(llm)
|
||||
.published(true)
|
||||
// .published(true)
|
||||
.build();
|
||||
// robot.setUid(uid);
|
||||
// robot.setOrgUid(orgUid);
|
||||
|
||||
// RobotEntity savedRobot =
|
||||
save(robot);
|
||||
|
||||
Reference in New Issue
Block a user