fixed
This commit is contained in:
@@ -34,6 +34,7 @@ class Reporttt
|
||||
//header('Cache-Control: no-cache');
|
||||
//header('Connection: keep-alive');
|
||||
//header('X-Accel-Buffering: no');
|
||||
Tools::log_to_write_txt(['input'=>input()]);
|
||||
$config = config('ai_num_report_config');
|
||||
|
||||
$question = '';//input('question','');
|
||||
@@ -84,7 +85,9 @@ class Reporttt
|
||||
return json(Tools::set_fail('content必须'));
|
||||
}
|
||||
$content = json_decode($contentstr,true);
|
||||
|
||||
//$content = [
|
||||
// //["role" => "user", "content" => '']
|
||||
//];
|
||||
$chatobj->setBefore($content);
|
||||
|
||||
$chatobj->chat($question,$config,$answer_json_arr);
|
||||
|
||||
Reference in New Issue
Block a user