Skip to content

Commit

Permalink
feat:上下文
Browse files Browse the repository at this point in the history
  • Loading branch information
1045078399 committed Jul 10, 2023
1 parent d8cc001 commit e486f8d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
19 changes: 9 additions & 10 deletions mallchat-common/src/main/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ mallchat.mysql.ip=127.0.0.1
mallchat.mysql.port=3306
mallchat.mysql.db=mallchat
mallchat.mysql.username=root
mallchat.mysql.password=root
mallchat.mysql.password=123456
##################redis配置##################
mallchat.redis.host=127.0.0.1
mallchat.redis.port=6379
mallchat.redis.password=123456
##################jwt##################
mallchat.jwt.secret=dsfsdfsdfsdfsd
##################微信公众号信息##################
mallchat.wx.callback=http://vastmiao.natapp1.cc
mallchat.wx.appId=wxcf8d045747fb2ae4
mallchat.wx.secret=e484463d627787f50a8cc3a869cf82a8
mallchat.wx.callback=http://127.0.0.1:8080
mallchat.wx.appId=appid
mallchat.wx.secret=380bfc1c9147fdsf4sf07
# 接口配置里的Token值
mallchat.wx.token=sdfsf
# 接口配置里的EncodingAESKey值
Expand All @@ -27,11 +27,10 @@ oss.access-key=BEZ213
oss.secret-key=Ii4vCMIXuFe241dsfEZ8e7RXI2342342kV
oss.bucketName=default
##################gpt配置##################
mallchat.chatgpt.use=true
mallchat.chatgpt.uid=10451
mallchat.chatgpt.modelName=gpt-3.5-turbo
mallchat.chatgpt.key=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
mallchat.chatgpt.use=false
mallchat.chatgpt.uid=10001
mallchat.chatgpt.key=sk-wvWM0xGcxFfsddfsgxixbXK5tHovM
mallchat.chatgpt.proxyUrl=https://123.cc
mallchat.chatglm2.use=true
mallchat.chatglm2.use=false
mallchat.chatglm2.url=http://v32134.cc
mallchat.chatglm2.uid=10452
mallchat.chatglm2.uid=10002
9 changes: 3 additions & 6 deletions mallchat-common/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mybatis-plus:
spring:
profiles:
#运行的环境
active: test
active: my-prod
application:
name: mallchat
datasource:
Expand All @@ -38,7 +38,7 @@ spring:
# 连接超时时间
timeout: 1800000
# 设置密码
# password: ${mallchat.redis.password}
password: ${mallchat.redis.password}
lettuce:
pool:
# 最大阻塞等待时间,负数表示没有限制
Expand Down Expand Up @@ -68,12 +68,9 @@ chatai:
use: ${mallchat.chatgpt.use}
AIUserId: ${mallchat.chatgpt.uid}
key: ${mallchat.chatgpt.key}
# proxyUrl: ${mallchat.chatgpt.proxyUrl}
context: ${mallchat.chatgpt.context}
modelName: ${mallchat.chatgpt.modelName}
proxyUrl: ${mallchat.chatgpt.proxyUrl}
chatglm2:
use: ${mallchat.chatglm2.use}
url: ${mallchat.chatglm2.url}
minute: 3 # 每个用户每3分钟可以请求一次
AIUserId: ${mallchat.chatglm2.uid}
context: ${mallchat.chatglm2.context}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ChatGLM2Properties {
/**
* 使用
*/
private boolean use;
private boolean use = false;

/**
* url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ChatGPTProperties {
/**
* 是否使用openAI
*/
private boolean use;
private boolean use = false;
/**
* 机器人 id
*/
Expand Down

0 comments on commit e486f8d

Please sign in to comment.