chore(addon/aikefu): 优化请求参数说明
This commit is contained in:
@@ -339,7 +339,10 @@ class Kefu extends BaseApi
|
||||
|
||||
// 验证参数
|
||||
if (empty($query)) {
|
||||
return $this->response($this->error('请输入消息内容,参数项: query'));
|
||||
return $this->response($this->error('参数错误,请检查 `query` 参数是否设置正确'));
|
||||
}
|
||||
if (empty($site_id)) {
|
||||
return $this->response($this->error('参数错误,请检查 `uniacid` 参数是否设置正确'));
|
||||
}
|
||||
|
||||
// 验证事件是否存在
|
||||
@@ -348,8 +351,8 @@ class Kefu extends BaseApi
|
||||
}
|
||||
|
||||
try {
|
||||
// 是否启用流式响应
|
||||
$enable_stream = $stream && $response_mode == 'streaming';
|
||||
// 是否启用流式响应 (stream 参数为 true 或 response_mode 为 streaming)
|
||||
$enable_stream = $stream || $response_mode == 'streaming';
|
||||
|
||||
// 准备事件数据
|
||||
$event_data = [
|
||||
|
||||
Reference in New Issue
Block a user