backend-manager 5.0.166 → 5.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/manager/libraries/openai.js +13 -4
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.0.167] - 2026-03-20
|
|
18
|
+
### Changed
|
|
19
|
+
- Extracted `resolveTemperature()` helper for consistency with `resolveFormatting()` and `resolveReasoning()`
|
|
20
|
+
|
|
17
21
|
# [5.0.166] - 2026-03-20
|
|
18
22
|
### Added
|
|
19
23
|
- `reasoning: true` feature flag to GPT-5.x and o-series models in MODEL_TABLE
|
package/package.json
CHANGED
|
@@ -821,8 +821,6 @@ function makeRequest(mode, options, self, prompt, message, user, _log) {
|
|
|
821
821
|
const history = formatHistory(options, prompt, message, _log);
|
|
822
822
|
|
|
823
823
|
// Set request
|
|
824
|
-
const modelConfig = getModelConfig(options.model);
|
|
825
|
-
|
|
826
824
|
request.url = 'https://api.openai.com/v1/responses';
|
|
827
825
|
request.body = {
|
|
828
826
|
model: options.model,
|
|
@@ -833,8 +831,9 @@ function makeRequest(mode, options, self, prompt, message, user, _log) {
|
|
|
833
831
|
}
|
|
834
832
|
|
|
835
833
|
// Only include temperature if the model supports it
|
|
836
|
-
|
|
837
|
-
|
|
834
|
+
const temperature = resolveTemperature(options);
|
|
835
|
+
if (temperature !== undefined) {
|
|
836
|
+
request.body.temperature = temperature;
|
|
838
837
|
}
|
|
839
838
|
|
|
840
839
|
// Only include reasoning if the model supports it
|
|
@@ -901,6 +900,16 @@ function resolveFormatting(options) {
|
|
|
901
900
|
return undefined;
|
|
902
901
|
}
|
|
903
902
|
|
|
903
|
+
function resolveTemperature(options) {
|
|
904
|
+
// Check if the model supports temperature
|
|
905
|
+
const modelConfig = getModelConfig(options.model);
|
|
906
|
+
if (modelConfig.features?.temperature === false) {
|
|
907
|
+
return undefined;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
return options.temperature;
|
|
911
|
+
}
|
|
912
|
+
|
|
904
913
|
function resolveReasoning(options) {
|
|
905
914
|
// If reasoning is not requested, return undefined
|
|
906
915
|
if (!options.reasoning) {
|