main
朱子楚\zhuzi 2023-03-17 23:01:48 +08:00
parent f2bbbd5250
commit c789d53d6a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void ChatController::sendMessage(const QString& text){
QJsonObject jsonObj = doc.object();
QString text = jsonObj.value("choices").toArray().at(0).toObject().value("message").toObject().value("content").toString();
if(text.isEmpty()){
text = "不好意思,我似乎听不懂您的意思";
text = "响应错误content为空数据";
}else{
messages.append(createMessage("assistant",text));
}