fix: config option setCacheKey not being respected (#5686)

This commit is contained in:
Shantur Rathore 2025-12-17 16:20:10 +00:00 committed by GitHub
parent fe8c5c143e
commit b8204c0bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,6 +73,8 @@ export namespace LLM {
system.push(header, rest.join("\n"))
}
const provider = await Provider.getProvider(input.model.providerID)
const params = await Plugin.trigger(
"chat.params",
{
@ -90,7 +92,7 @@ export namespace LLM {
topK: ProviderTransform.topK(input.model),
options: pipe(
{},
mergeDeep(ProviderTransform.options(input.model, input.sessionID)),
mergeDeep(ProviderTransform.options(input.model, input.sessionID, provider.options)),
input.small ? mergeDeep(ProviderTransform.smallOptions(input.model)) : mergeDeep({}),
mergeDeep(input.model.options),
mergeDeep(input.agent.options),