-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
790 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package cms.bean.ai; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.Lob; | ||
|
||
/** | ||
* AI大模型 | ||
* @author Gao | ||
* | ||
*/ | ||
@Entity | ||
public class AiInterface implements Serializable{ | ||
private static final long serialVersionUID = -7340690365799696749L; | ||
|
||
/** Id **/ | ||
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Integer id; | ||
/** 名称 **/ | ||
@Column(length=100) | ||
private String name; | ||
/** 接口产品 10:阿里云百炼大模型 20.火山方舟大模型 **/ | ||
private Integer interfaceProduct; | ||
/** 是否选择 true:启用 false: 禁用 **/ | ||
private boolean enable = true; | ||
/** 接口动态参数 **/ | ||
@Lob | ||
private String dynamicParameter; | ||
/** 版本 **/ | ||
private Integer version = 0; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
public Integer getInterfaceProduct() { | ||
return interfaceProduct; | ||
} | ||
public void setInterfaceProduct(Integer interfaceProduct) { | ||
this.interfaceProduct = interfaceProduct; | ||
} | ||
public boolean isEnable() { | ||
return enable; | ||
} | ||
public void setEnable(boolean enable) { | ||
this.enable = enable; | ||
} | ||
public String getDynamicParameter() { | ||
return dynamicParameter; | ||
} | ||
public void setDynamicParameter(String dynamicParameter) { | ||
this.dynamicParameter = dynamicParameter; | ||
} | ||
public Integer getVersion() { | ||
return version; | ||
} | ||
public void setVersion(Integer version) { | ||
this.version = version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cms.bean.ai; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* AI大模型产品 | ||
* @author Gao | ||
* | ||
*/ | ||
public class AiProduct implements Serializable{ | ||
private static final long serialVersionUID = -8649233994892624474L; | ||
|
||
/** 接口产品 **/ | ||
private Integer interfaceProduct; | ||
/** 名称 **/ | ||
private String name; | ||
|
||
|
||
public Integer getInterfaceProduct() { | ||
return interfaceProduct; | ||
} | ||
public void setInterfaceProduct(Integer interfaceProduct) { | ||
this.interfaceProduct = interfaceProduct; | ||
} | ||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package cms.bean.ai; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 阿里云百炼大模型参数 | ||
* | ||
*/ | ||
public class BaiLian implements Serializable{ | ||
private static final long serialVersionUID = -2282654527249181999L; | ||
|
||
/** API密钥(API-KEY) **/ | ||
private String apiKey; | ||
/** 应用Id **/ | ||
private String appId; | ||
/** 业务空间Id **/ | ||
private String workspaceId; | ||
|
||
public String getApiKey() { | ||
return apiKey; | ||
} | ||
public void setApiKey(String apiKey) { | ||
this.apiKey = apiKey; | ||
} | ||
public String getAppId() { | ||
return appId; | ||
} | ||
public void setAppId(String appId) { | ||
this.appId = appId; | ||
} | ||
public String getWorkspaceId() { | ||
return workspaceId; | ||
} | ||
public void setWorkspaceId(String workspaceId) { | ||
this.workspaceId = workspaceId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package cms.bean.ai; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 对话信息 | ||
* @author Gao | ||
* | ||
*/ | ||
public class ChatInfo implements Serializable{ | ||
private static final long serialVersionUID = 7432882984799611317L; | ||
|
||
/** 系统生成的标识。请求ID **/ | ||
private String requestId; | ||
|
||
/** 模型生成的回复内容(Markdown格式) **/ | ||
private String text; | ||
|
||
/** 接口产品 10:阿里云百炼大模型 20.火山方舟大模型 **/ | ||
private Integer interfaceProduct; | ||
|
||
|
||
|
||
/** 表示状态码,调用成功时为空值 **/ | ||
private Integer statusCode; | ||
/** 表示错误码,调用成功时为空值 **/ | ||
private String errorCode; | ||
/** 表示失败详细信息,成功忽略。 **/ | ||
private String errorMessage; | ||
|
||
|
||
|
||
public String getRequestId() { | ||
return requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text; | ||
} | ||
|
||
public Integer getInterfaceProduct() { | ||
return interfaceProduct; | ||
} | ||
|
||
public void setInterfaceProduct(Integer interfaceProduct) { | ||
this.interfaceProduct = interfaceProduct; | ||
} | ||
|
||
public String getErrorCode() { | ||
return errorCode; | ||
} | ||
|
||
public void setErrorCode(String errorCode) { | ||
this.errorCode = errorCode; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public Integer getStatusCode() { | ||
return statusCode; | ||
} | ||
|
||
public void setStatusCode(Integer statusCode) { | ||
this.statusCode = statusCode; | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.