Skip to content

Commit 23a0ec9

Browse files
Jeremias-A-Queirozkarthink
authored andcommitted
gptel-gemini: Fix Temperature parameter mapping
* gptel-gemini.el (gptel--request-data): Ensure the Gemini backend respects temperature settings below 1.0. Previously, the code used (max gptel-temperature 1.0), which effectively ignored any user setting in the 0.0-0.9 range. Fixes #1312.
1 parent 4a0d805 commit 23a0ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gptel-gemini.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ list."
152152
(when gptel-temperature
153153
(setq params
154154
(plist-put params
155-
:temperature (max gptel-temperature 1.0))))
155+
:temperature (max 0.0 gptel-temperature))))
156156
(when gptel-max-tokens
157157
(setq params
158158
(plist-put params

0 commit comments

Comments
 (0)