mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 17:40:05 +08:00
【优化】星火兼容 ChatOptions 配置
This commit is contained in:
parent
eef9ed1b3e
commit
e4bb7262c3
@ -6,7 +6,7 @@ import lombok.experimental.Accessors;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 讯飞星火
|
* 讯飞星火
|
||||||
*
|
* <p>
|
||||||
* author: fansili
|
* author: fansili
|
||||||
* time: 2024/3/16 20:29
|
* time: 2024/3/16 20:29
|
||||||
*/
|
*/
|
||||||
@ -16,7 +16,7 @@ public class XingHuoOptions implements ChatOptions {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* https://www.xfyun.cn/doc/spark/Web.html#_1-%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E
|
* https://www.xfyun.cn/doc/spark/Web.html#_1-%E6%8E%A5%E5%8F%A3%E8%AF%B4%E6%98%8E
|
||||||
*
|
* <p>
|
||||||
* 指定访问的领域:
|
* 指定访问的领域:
|
||||||
* general指向V1.5版本;
|
* general指向V1.5版本;
|
||||||
* generalv2指向V2版本;
|
* generalv2指向V2版本;
|
||||||
@ -33,25 +33,25 @@ public class XingHuoOptions implements ChatOptions {
|
|||||||
* V1.5取值为[1,4096]
|
* V1.5取值为[1,4096]
|
||||||
* V2.0、V3.0和V3.5取值为[1,8192],默认为2048。
|
* V2.0、V3.0和V3.5取值为[1,8192],默认为2048。
|
||||||
*/
|
*/
|
||||||
private Integer max_tokens;
|
private Integer maxTokens;
|
||||||
/**
|
/**
|
||||||
* 取值为[1,6],默认为4
|
* 取值为[1,6],默认为4
|
||||||
*/
|
*/
|
||||||
private Integer top_k;
|
private Integer topK;
|
||||||
/**
|
/**
|
||||||
* 需要保障用户下的唯一性,用于关联用户会话
|
* 需要保障用户下的唯一性,用于关联用户会话
|
||||||
*/
|
*/
|
||||||
private String chat_id;
|
private String chatId;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Float getTemperature() {
|
public Float getTemperature() {
|
||||||
return null;
|
return this.temperature;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTemperature(Float temperature) {
|
public void setTemperature(Float temperature) {
|
||||||
|
this.temperature = temperature;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -66,11 +66,11 @@ public class XingHuoOptions implements ChatOptions {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getTopK() {
|
public Integer getTopK() {
|
||||||
return null;
|
return this.topK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTopK(Integer topK) {
|
public void setTopK(Integer topK) {
|
||||||
|
this.topK = topK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user