]> git.ipfire.org Git - thirdparty/rspamd.git/commit
Update gpt.lua to support newer models with max_completion_tokens
authorhunter-nl <junobox@gmail.com>
Thu, 14 Aug 2025 10:36:16 +0000 (12:36 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Aug 2025 10:36:16 +0000 (12:36 +0200)
commitd09b5d24fdaff9dff842fb994c2783ddcc7db4dd
tree8e2c6c5454c25a62f087fb14c3fd7e725db43de1
parent03c75e1c473651276137d6dd57dd1a84910c895a
Update gpt.lua to support newer models with max_completion_tokens

Newer and reasoning models requires max_completion_tokens instead of max_tokens attribute.
src/plugins/lua/gpt.lua