|
|
@@ -3916,6 +3916,10 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
|
|
|
if (isset($post_data['reasoning_effort'])) {
|
|
|
unset($post_data['reasoning_effort']);
|
|
|
}
|
|
|
+ // GPT-5.x(推理型上游)只接受默认 temperature(1),传入其他值会返回 400:
|
|
|
+ // Unsupported value: 'temperature' does not support 1.35 with this model.
|
|
|
+ // Only the default (1) value is supported.
|
|
|
+ unset($post_data['temperature']);
|
|
|
// 流式场景下保留 response_format(json 输出时强制模型输出完整 JSON,与非流式 gpt54ChatOnly 对齐)
|
|
|
// 中转站对 response_format 的兼容性由请求方控制:仅在需要 json 输出时传入
|
|
|
$post_data['max_completion_tokens'] = 100000;
|
|
|
@@ -13863,7 +13867,7 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
|
|
|
$post_data = [
|
|
|
'model' => $model,
|
|
|
'messages' => $messages,
|
|
|
- 'temperature' => 1,
|
|
|
+ 'temperature' => 1.4,
|
|
|
'frequency_penalty' => 0.3,
|
|
|
'presence_penalty' => 0,
|
|
|
'response_format' => ['type' => 'text'],
|
|
|
@@ -16326,6 +16330,10 @@ Q版卡通风格,头大身小,造型圆润可爱,线条简单,色彩明
|
|
|
if (isset($post_data['reasoning_effort'])) {
|
|
|
unset($post_data['reasoning_effort']);
|
|
|
}
|
|
|
+ // GPT-5.x(推理型上游)只接受默认 temperature(1),传入其他值会返回 400:
|
|
|
+ // Unsupported value: 'temperature' does not support 1.35 with this model.
|
|
|
+ // Only the default (1) value is supported.
|
|
|
+ unset($post_data['temperature']);
|
|
|
$post_data['max_completion_tokens'] = 100000;
|
|
|
// GPT-5.x 上游不支持 max_tokens,与 gpt54StreamResponse 保持一致,显式移除避免 400。
|
|
|
unset($post_data['max_tokens']);
|