mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-07 00:37:33 +00:00
feat: 支持coze,dify,派欧云等三方模型调用
This commit is contained in:
@@ -71,6 +71,18 @@
|
||||
<artifactId>spring-ai-starter-model-openai</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.imfangs</groupId>
|
||||
<artifactId>dify-java-client</artifactId>
|
||||
<version>1.0.7</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.coze</groupId>
|
||||
<artifactId>coze-api</artifactId>
|
||||
<version>0.3.1</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* 描述:用户密码修改bo
|
||||
* 用户密码修改bo
|
||||
*
|
||||
* @author ageerle@163.com
|
||||
* date 2025/3/9
|
||||
|
||||
Reference in New Issue
Block a user