chore(gemini): allow overrides from config (#350)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-29 01:17:31 -04:00 committed by GitHub
parent 1e009822e4
commit 76a5ccda5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,13 +61,12 @@ end
M.parse_curl_args = function(provider, code_opts)
local base, body_opts = P.parse_config(provider)
body_opts = {
body_opts = vim.tbl_deep_extend("force", body_opts, {
generationConfig = {
temperature = body_opts.temperature,
maxOutputTokens = body_opts.max_tokens,
},
}
})
body_opts.temperature = nil
body_opts.max_tokens = nil