作者 lyh

gxgeo设置

... ... @@ -98,6 +98,10 @@ class GeoQuestionRes extends Command
$data = $geo_service->getDeepSeekResult($question);
$result = $this->dealDeepSeek($data);
break;
case 'gpt-4o-mini':
$data = $geo_service->getDeepSeekResult($question,'gpt-4o-mini');
$result = $this->dealDeepSeek($data,'gpt-4o-mini');
break;
default:
$result = $geo_service->getAiPlatformResult($question, $platform);
break;
... ... @@ -215,10 +219,10 @@ class GeoQuestionRes extends Command
* @method :post
* @time :2025/7/15 10:58
*/
public function dealDeepSeek($data){
public function dealDeepSeek($data,$model = 'DeepSeek'){
$result = [
'code' => 200,
'model' => 'DeepSeek',
'model' => $model,
'text' => '',
];
$texts = [];
... ...
... ... @@ -76,7 +76,7 @@ class GeoService
* @method :post
* @time :2025/7/15 10:59
*/
public function getDeepSeekResult($content){
public function getDeepSeekResult($content,$model = 'deepseek-r1'){
$url = $this->api_url . 'v1/chat';
$header = [
'accept: application/json',
... ... @@ -91,7 +91,7 @@ class GeoService
'role'=>'user'
],
],
'model' => 'deepseek-r1',
'model' => $model,
"supplier"=> "bailian",
'security_check' => true
];
... ...