fix: update config.lua default value for gpt-5-chat (#2594)

This commit is contained in:
you-n-g
2025-08-12 15:13:44 +08:00
committed by GitHub
parent dd151e7f45
commit 16c58c2e6f

View File

@@ -271,7 +271,7 @@ M._defaults = {
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
extra_request_body = {
temperature = 0.75,
max_completion_tokens = 20480, -- Increase this to include reasoning tokens (for reasoning models)
max_completion_tokens = 16384, -- Increase this toinclude reasoning tokens (for reasoning models); but too large default value will not fit for some models (e.g. gpt-5-chat supports at most 16384 completion tokens)
reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
},
},