add topK function to transform, add temp defaults for glm and minimax

This commit is contained in:
Aiden Cline
2025-12-13 23:26:57 -06:00
parent 210b3e905b
commit 3d2ef28fa8
2 changed files with 17 additions and 5 deletions

View File

@@ -506,6 +506,7 @@ export namespace SessionPrompt {
? (agent.temperature ?? ProviderTransform.temperature(model))
: undefined,
topP: agent.topP ?? ProviderTransform.topP(model),
topK: ProviderTransform.topK(model),
options: pipe(
{},
mergeDeep(ProviderTransform.options(model, sessionID, provider?.options)),
@@ -611,6 +612,7 @@ export namespace SessionPrompt {
stopWhen: stepCountIs(1),
temperature: params.temperature,
topP: params.topP,
topK: params.topK,
toolChoice: isLastStep ? "none" : undefined,
messages,
tools: model.capabilities.toolcall === false ? undefined : tools,