chore(gemini): allow overrides from config (#350)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
1e009822e4
commit
76a5ccda5f
@ -61,13 +61,12 @@ end
|
|||||||
M.parse_curl_args = function(provider, code_opts)
|
M.parse_curl_args = function(provider, code_opts)
|
||||||
local base, body_opts = P.parse_config(provider)
|
local base, body_opts = P.parse_config(provider)
|
||||||
|
|
||||||
body_opts = {
|
body_opts = vim.tbl_deep_extend("force", body_opts, {
|
||||||
generationConfig = {
|
generationConfig = {
|
||||||
temperature = body_opts.temperature,
|
temperature = body_opts.temperature,
|
||||||
maxOutputTokens = body_opts.max_tokens,
|
maxOutputTokens = body_opts.max_tokens,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
body_opts.temperature = nil
|
body_opts.temperature = nil
|
||||||
body_opts.max_tokens = nil
|
body_opts.max_tokens = nil
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user