|
...
|
...
|
@@ -115,9 +115,9 @@ class GeoQuestionRes extends Command |
|
|
|
$hit_data[] = $result['text'];
|
|
|
|
if(!empty($taskInfo['expect_result'])){
|
|
|
|
$str = "客户提出的问题:{$question},客户得到的回复:{$result['text']},客户需要预期:{$taskInfo['expect_result']},请分析得到的回复和预期是否一致,仅回复我是或者否";
|
|
|
|
$data = $geo_service->getChatResult($str, 'gpt-4o-mini');
|
|
|
|
if(isset($data['text']) && !empty($data['text'])){
|
|
|
|
switch ($data['text']){
|
|
|
|
$strResult = $geo_service->getChatResult($str, 'gpt-4o-mini');
|
|
|
|
if(isset($strResult['text']) && !empty($strResult['text'])){
|
|
|
|
switch ($strResult['text']){
|
|
|
|
case '是':
|
|
|
|
$is_match = 1;
|
|
|
|
break;
|
...
|
...
|
|