feat:隔离用户空间
This commit is contained in:
@@ -14,8 +14,8 @@ public class ChatController {
|
||||
private final BaseAgent baseAgent;
|
||||
|
||||
@GetMapping("/chat")
|
||||
public String chatDemo(@RequestParam("question") String question, @RequestParam("id") Long id) {
|
||||
baseAgent.chat(ModelTypeEnum.OPEN_AI, id, question);
|
||||
public String chatDemo(@RequestParam("question") String question, @RequestParam("memoryId") Long memoryId, @RequestParam("userId") Long userId) {
|
||||
baseAgent.chat(ModelTypeEnum.OPEN_AI, memoryId, userId, question);
|
||||
return "321";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
spring:
|
||||
|
||||
datasource:
|
||||
url: jdbc:mysql://rm-bp15t34gqx62jm069ro.mysql.rds.aliyuncs.com:3306/xservice-ai-center?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: xb#UWqnhH24&XpX
|
||||
password: sdkljfikdfn@123
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
ai:
|
||||
dashscope:
|
||||
api-key: sk-07353fd191074c9c930b134230ba88ea
|
||||
chat:
|
||||
options:
|
||||
model: qwen-plus
|
||||
http:
|
||||
connect-timeout: 30s
|
||||
read-timeout: 60s
|
||||
|
||||
ai:
|
||||
openai:
|
||||
configs:
|
||||
bai-lian:
|
||||
apiKey: sk-70cb426d7d1e4b54b4ffe71022e7d815
|
||||
modelName: qwen3.5-plus
|
||||
baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
|
||||
@@ -1,16 +1,14 @@
|
||||
spring:
|
||||
|
||||
datasource:
|
||||
url: jdbc:mysql://rm-bp15t34gqx62jm069ro.mysql.rds.aliyuncs.com:3306/xservice-ai-center?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
url: jdbc:mysql://120.27.153.87:3306/xe-service-ai?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
|
||||
username: root
|
||||
password: xb#UWqnhH24&XpX
|
||||
password: sdkljfikdfn@123
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
ai:
|
||||
dashscope:
|
||||
api-key: sk-07353fd191074c9c930b134230ba88ea
|
||||
chat:
|
||||
options:
|
||||
model: qwen-plus
|
||||
http:
|
||||
connect-timeout: 30s
|
||||
read-timeout: 60s
|
||||
|
||||
ai:
|
||||
openai:
|
||||
configs:
|
||||
bai-lian:
|
||||
apiKey: sk-70cb426d7d1e4b54b4ffe71022e7d815
|
||||
modelName: qwen3.5-plus
|
||||
baseUrl: https://dashscope.aliyuncs.com/compatible-mode/v1
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
spring:
|
||||
|
||||
application:
|
||||
name: xservice-ai-center
|
||||
|
||||
|
||||
Reference in New Issue
Block a user