From 8a809e3cc09478234093c34d79c14cf5b75920f2 Mon Sep 17 00:00:00 2001 From: lkddi Date: Thu, 2 Apr 2026 13:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=20AI=20=E9=A2=84=E6=B5=8B=E5=BC=BA=E5=88=B6=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=20response=5Fformat=20JSON=20=E7=BA=A6=E6=9D=9F?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=9B=BD=E5=86=85=E5=BC=80=E6=BA=90?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=EF=BC=88GLM=E3=80=81StepFun=EF=BC=89?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=AC=AC=E4=B8=89=E6=96=B9=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=97=B6=E9=9D=99=E9=BB=98=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=A9=BA=E4=B8=B2=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/BaccaratPredictionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/BaccaratPredictionService.php b/app/Services/BaccaratPredictionService.php index 9161a79..a678acf 100644 --- a/app/Services/BaccaratPredictionService.php +++ b/app/Services/BaccaratPredictionService.php @@ -193,7 +193,7 @@ PROMPT; 'model' => $config->model, 'temperature' => 0.6, // 预测任务需要生成推理和灵活评估,适当提高温度 'max_tokens' => 300, // 输出 JSON 包含 reason,加大 token 限制 - 'response_format' => ['type' => 'json_object'], // 强制平台尝试规范 JSON 输出(对某些模型自动生效) + // 不硬性强制 response_format (经测试某些平台代理对于非原生支持 JSON Mode 的模型,配置此参数会返回空白内容) 'messages' => [ [ 'role' => 'system',