mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:48:27 +00:00
16 lines
415 B
TypeScript
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",
|
|
);
|
|
};
|
|
}
|