mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-27 11:33:45 +08:00
feat: 支持coze,dify,派欧云等三方模型调用
This commit is contained in:
@@ -47,7 +47,7 @@ public class ChatModel extends BaseEntity {
|
||||
/**
|
||||
* 模型价格
|
||||
*/
|
||||
private Long modelPrice;
|
||||
private Double modelPrice;
|
||||
|
||||
/**
|
||||
* 计费类型
|
||||
@@ -69,11 +69,6 @@ public class ChatModel extends BaseEntity {
|
||||
*/
|
||||
private String apiHost;
|
||||
|
||||
/**
|
||||
* 请求地址后缀 - 兼容多平台
|
||||
*/
|
||||
@ExcelProperty(value = "请求地址后缀")
|
||||
private String apiUrl;
|
||||
|
||||
/**
|
||||
* 密钥
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ChatModelBo extends BaseEntity {
|
||||
* 模型价格
|
||||
*/
|
||||
@NotNull(message = "模型价格不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long modelPrice;
|
||||
private Double modelPrice;
|
||||
|
||||
/**
|
||||
* 计费类型
|
||||
@@ -80,11 +80,6 @@ public class ChatModelBo extends BaseEntity {
|
||||
@NotBlank(message = "密钥不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String apiKey;
|
||||
|
||||
/**
|
||||
* 请求地址后缀 - 兼容多平台
|
||||
*/
|
||||
@ExcelProperty(value = "请求地址后缀")
|
||||
private String apiUrl;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.ruoyi.domain.request;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 描述:翻译请求对象
|
||||
* 翻译请求对象
|
||||
*
|
||||
* @author ageerle@163.com
|
||||
* date 2025/1/13
|
||||
|
||||
@@ -56,7 +56,7 @@ public class ChatModelVo implements Serializable {
|
||||
* 模型价格
|
||||
*/
|
||||
@ExcelProperty(value = "模型价格")
|
||||
private Long modelPrice;
|
||||
private Double modelPrice;
|
||||
|
||||
/**
|
||||
* 计费类型
|
||||
@@ -88,12 +88,6 @@ public class ChatModelVo implements Serializable {
|
||||
@ExcelProperty(value = "密钥")
|
||||
private String apiKey;
|
||||
|
||||
/**
|
||||
* 请求地址后缀 - 兼容多平台
|
||||
*/
|
||||
@ExcelProperty(value = "请求地址后缀")
|
||||
private String apiUrl;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user