mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-14 06:03:42 +08:00
feat:上下文
This commit is contained in:
@@ -4,7 +4,7 @@ mallchat.mysql.ip=127.0.0.1
|
|||||||
mallchat.mysql.port=3306
|
mallchat.mysql.port=3306
|
||||||
mallchat.mysql.db=mallchat
|
mallchat.mysql.db=mallchat
|
||||||
mallchat.mysql.username=root
|
mallchat.mysql.username=root
|
||||||
mallchat.mysql.password=root
|
mallchat.mysql.password=123456
|
||||||
##################redis配置##################
|
##################redis配置##################
|
||||||
mallchat.redis.host=127.0.0.1
|
mallchat.redis.host=127.0.0.1
|
||||||
mallchat.redis.port=6379
|
mallchat.redis.port=6379
|
||||||
@@ -12,9 +12,9 @@ mallchat.redis.password=123456
|
|||||||
##################jwt##################
|
##################jwt##################
|
||||||
mallchat.jwt.secret=dsfsdfsdfsdfsd
|
mallchat.jwt.secret=dsfsdfsdfsdfsd
|
||||||
##################微信公众号信息##################
|
##################微信公众号信息##################
|
||||||
mallchat.wx.callback=http://vastmiao.natapp1.cc
|
mallchat.wx.callback=http://127.0.0.1:8080
|
||||||
mallchat.wx.appId=wxcf8d045747fb2ae4
|
mallchat.wx.appId=appid
|
||||||
mallchat.wx.secret=e484463d627787f50a8cc3a869cf82a8
|
mallchat.wx.secret=380bfc1c9147fdsf4sf07
|
||||||
# 接口配置里的Token值
|
# 接口配置里的Token值
|
||||||
mallchat.wx.token=sdfsf
|
mallchat.wx.token=sdfsf
|
||||||
# 接口配置里的EncodingAESKey值
|
# 接口配置里的EncodingAESKey值
|
||||||
@@ -27,11 +27,10 @@ oss.access-key=BEZ213
|
|||||||
oss.secret-key=Ii4vCMIXuFe241dsfEZ8e7RXI2342342kV
|
oss.secret-key=Ii4vCMIXuFe241dsfEZ8e7RXI2342342kV
|
||||||
oss.bucketName=default
|
oss.bucketName=default
|
||||||
##################gpt配置##################
|
##################gpt配置##################
|
||||||
mallchat.chatgpt.use=true
|
mallchat.chatgpt.use=false
|
||||||
mallchat.chatgpt.uid=10451
|
mallchat.chatgpt.uid=10001
|
||||||
mallchat.chatgpt.modelName=gpt-3.5-turbo
|
mallchat.chatgpt.key=sk-wvWM0xGcxFfsddfsgxixbXK5tHovM
|
||||||
mallchat.chatgpt.key=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
|
|
||||||
mallchat.chatgpt.proxyUrl=https://123.cc
|
mallchat.chatgpt.proxyUrl=https://123.cc
|
||||||
mallchat.chatglm2.use=true
|
mallchat.chatglm2.use=false
|
||||||
mallchat.chatglm2.url=http://v32134.cc
|
mallchat.chatglm2.url=http://v32134.cc
|
||||||
mallchat.chatglm2.uid=10452
|
mallchat.chatglm2.uid=10002
|
||||||
@@ -12,7 +12,7 @@ mybatis-plus:
|
|||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
#运行的环境
|
#运行的环境
|
||||||
active: test
|
active: my-prod
|
||||||
application:
|
application:
|
||||||
name: mallchat
|
name: mallchat
|
||||||
datasource:
|
datasource:
|
||||||
@@ -38,7 +38,7 @@ spring:
|
|||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 1800000
|
timeout: 1800000
|
||||||
# 设置密码
|
# 设置密码
|
||||||
# password: ${mallchat.redis.password}
|
password: ${mallchat.redis.password}
|
||||||
lettuce:
|
lettuce:
|
||||||
pool:
|
pool:
|
||||||
# 最大阻塞等待时间,负数表示没有限制
|
# 最大阻塞等待时间,负数表示没有限制
|
||||||
@@ -68,12 +68,9 @@ chatai:
|
|||||||
use: ${mallchat.chatgpt.use}
|
use: ${mallchat.chatgpt.use}
|
||||||
AIUserId: ${mallchat.chatgpt.uid}
|
AIUserId: ${mallchat.chatgpt.uid}
|
||||||
key: ${mallchat.chatgpt.key}
|
key: ${mallchat.chatgpt.key}
|
||||||
# proxyUrl: ${mallchat.chatgpt.proxyUrl}
|
proxyUrl: ${mallchat.chatgpt.proxyUrl}
|
||||||
context: ${mallchat.chatgpt.context}
|
|
||||||
modelName: ${mallchat.chatgpt.modelName}
|
|
||||||
chatglm2:
|
chatglm2:
|
||||||
use: ${mallchat.chatglm2.use}
|
use: ${mallchat.chatglm2.use}
|
||||||
url: ${mallchat.chatglm2.url}
|
url: ${mallchat.chatglm2.url}
|
||||||
minute: 3 # 每个用户每3分钟可以请求一次
|
minute: 3 # 每个用户每3分钟可以请求一次
|
||||||
AIUserId: ${mallchat.chatglm2.uid}
|
AIUserId: ${mallchat.chatglm2.uid}
|
||||||
context: ${mallchat.chatglm2.context}
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class ChatGLM2Properties {
|
|||||||
/**
|
/**
|
||||||
* 使用
|
* 使用
|
||||||
*/
|
*/
|
||||||
private boolean use;
|
private boolean use = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* url
|
* url
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class ChatGPTProperties {
|
|||||||
/**
|
/**
|
||||||
* 是否使用openAI
|
* 是否使用openAI
|
||||||
*/
|
*/
|
||||||
private boolean use;
|
private boolean use = false;
|
||||||
/**
|
/**
|
||||||
* 机器人 id
|
* 机器人 id
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user