|
...
|
...
|
@@ -52,6 +52,13 @@ class ChatLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$message[] = ['role' => 'user', 'content' => $this->param['message']];
|
|
|
|
$chatId = $chatInfo['id'];
|
|
|
|
}else{
|
|
|
|
$chatId = $this->saveChat($this->param['message']);
|
|
|
|
$this->saveChatItem($chatId, $this->param['message']);
|
|
|
|
$message = [
|
|
|
|
['role' => 'system', 'content' => "You are now the marketing customer service of 深圳创贸集团"],
|
|
|
|
['role' => 'user', 'content' => $this->param['message']],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$chatId = $this->saveChat($this->param['message']);
|
...
|
...
|
|