作者 lyh

gxgeo设置

@@ -98,6 +98,10 @@ class GeoQuestionRes extends Command @@ -98,6 +98,10 @@ class GeoQuestionRes extends Command
98 $data = $geo_service->getDeepSeekResult($question); 98 $data = $geo_service->getDeepSeekResult($question);
99 $result = $this->dealDeepSeek($data); 99 $result = $this->dealDeepSeek($data);
100 break; 100 break;
  101 + case 'gpt-4o-mini':
  102 + $data = $geo_service->getDeepSeekResult($question,'gpt-4o-mini');
  103 + $result = $this->dealDeepSeek($data,'gpt-4o-mini');
  104 + break;
101 default: 105 default:
102 $result = $geo_service->getAiPlatformResult($question, $platform); 106 $result = $geo_service->getAiPlatformResult($question, $platform);
103 break; 107 break;
@@ -215,10 +219,10 @@ class GeoQuestionRes extends Command @@ -215,10 +219,10 @@ class GeoQuestionRes extends Command
215 * @method :post 219 * @method :post
216 * @time :2025/7/15 10:58 220 * @time :2025/7/15 10:58
217 */ 221 */
218 - public function dealDeepSeek($data){ 222 + public function dealDeepSeek($data,$model = 'DeepSeek'){
219 $result = [ 223 $result = [
220 'code' => 200, 224 'code' => 200,
221 - 'model' => 'DeepSeek', 225 + 'model' => $model,
222 'text' => '', 226 'text' => '',
223 ]; 227 ];
224 $texts = []; 228 $texts = [];
@@ -76,7 +76,7 @@ class GeoService @@ -76,7 +76,7 @@ class GeoService
76 * @method :post 76 * @method :post
77 * @time :2025/7/15 10:59 77 * @time :2025/7/15 10:59
78 */ 78 */
79 - public function getDeepSeekResult($content){ 79 + public function getDeepSeekResult($content,$model = 'deepseek-r1'){
80 $url = $this->api_url . 'v1/chat'; 80 $url = $this->api_url . 'v1/chat';
81 $header = [ 81 $header = [
82 'accept: application/json', 82 'accept: application/json',
@@ -91,7 +91,7 @@ class GeoService @@ -91,7 +91,7 @@ class GeoService
91 'role'=>'user' 91 'role'=>'user'
92 ], 92 ],
93 ], 93 ],
94 - 'model' => 'deepseek-r1', 94 + 'model' => $model,
95 "supplier"=> "bailian", 95 "supplier"=> "bailian",
96 'security_check' => true 96 'security_check' => true
97 ]; 97 ];