perf: 更新 AI 支持更多模型和支持提示词

This commit is contained in:
kuaifan
2024-11-30 12:01:29 +08:00
parent 0d4b005f4e
commit 62c50bb4e6
4 changed files with 39 additions and 17 deletions
@@ -957,7 +957,7 @@ class DialogController extends AbstractController
* @apiGroup dialog
* @apiName msg__stream
*
* @apiParam {String} [type] 消息类型(暂时无用,预留)
* @apiParam {String} [source] 消息来源
* - ai: 默认
* @apiParam {Number} userid 通知会员ID
* @apiParam {String} stream_url 流动消息地址
@@ -975,7 +975,7 @@ class DialogController extends AbstractController
return Base::retError('参数错误');
}
//
$stream_url = '/ai' . preg_replace('/^\/ai/?', '/', $stream_url);
$stream_url = '/ai' . preg_replace('/^\/ai\/?/', '/', $stream_url);
//
$params = [
'userid' => $userid,