mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-26 16:19:40 +00:00
add ability to set topK
This commit is contained in:
parent
813c330c47
commit
31ddd0798a
2 changed files with 3 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ export namespace LLM {
|
|||
? (input.agent.temperature ?? ProviderTransform.temperature(input.model))
|
||||
: undefined,
|
||||
topP: input.agent.topP ?? ProviderTransform.topP(input.model),
|
||||
topK: ProviderTransform.topK(input.model),
|
||||
options: pipe(
|
||||
{},
|
||||
mergeDeep(ProviderTransform.options(input.model, input.sessionID)),
|
||||
|
|
@ -132,6 +133,7 @@ export namespace LLM {
|
|||
},
|
||||
temperature: params.temperature,
|
||||
topP: params.topP,
|
||||
topK: params.topK,
|
||||
providerOptions: ProviderTransform.providerOptions(input.model, params.options),
|
||||
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
|
||||
tools,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue