Files
openclaw/src/commands/auth-choice.apply-helpers.ts
2026-02-15 13:46:13 +00:00

16 lines
415 B
TypeScript

import type { ApplyAuthChoiceParams } from "./auth-choice.apply.js";
export function createAuthChoiceAgentModelNoter(
params: ApplyAuthChoiceParams,
): (model: string) => Promise<void> {
return async (model: string) => {
if (!params.agentId) {
return;
}
await params.prompter.note(
`Default model set to ${model} for agent "${params.agentId}".`,
"Model configured",
);
};
}